// recognized through "type_specifier".
function_call_header:
function_identifier '('
- {
- $$ = new ast_expression(ast_function_call,
- (struct ast_expression *) $1,
- NULL, NULL);
- }
;
function_identifier:
type_specifier
{
- $$ = (struct ast_node *) $1;
+ $$ = new ast_function_expression($1);
}
| IDENTIFIER
{
- $$ = new ast_expression($1);
+ ast_expression *callee = new ast_expression($1);
+ $$ = new ast_function_expression(callee);
}
| FIELD_SELECTION
{
- $$ = new ast_expression($1);
+ ast_expression *callee = new ast_expression($1);
+ $$ = new ast_function_expression(callee);
}
;