@@ -4007,7 +4007,7 @@ unsigned_number: TOK_NUMBER
4007
4007
// A.8.2 Subroutine calls
4008
4008
4009
4009
tf_call:
4010
- hierarchical_tf_identifier list_of_arguments_paren
4010
+ hierarchical_identifier list_of_arguments_paren_opt
4011
4011
{ init ($$, ID_function_call);
4012
4012
stack_expr ($$).operands ().reserve (2 );
4013
4013
mto ($$, $1 ); mto ($$, $2 ); }
@@ -4020,6 +4020,7 @@ list_of_arguments_paren:
4020
4020
4021
4021
list_of_arguments_paren_opt:
4022
4022
/* Optional */
4023
+ { init ($$); }
4023
4024
| list_of_arguments_paren
4024
4025
;
4025
4026
@@ -4054,7 +4055,26 @@ subroutine_call:
4054
4055
| system_tf_call
4055
4056
;
4056
4057
4057
- function_subroutine_call: subroutine_call
4058
+ function_subroutine_call:
4059
+ hierarchical_tf_identifier list_of_arguments_paren
4060
+ { init ($$, ID_function_call);
4061
+ stack_expr ($$).operands ().reserve (2 );
4062
+ mto ($$, $1 ); mto ($$, $2 ); }
4063
+ | system_task_name list_of_arguments_paren
4064
+ { init ($$, ID_function_call);
4065
+ stack_expr ($$).operands ().reserve (2 );
4066
+ mto ($$, $1 ); mto ($$, $2 ); }
4067
+ | system_task_name ' (' data_type ' )'
4068
+ { init ($$, ID_function_call);
4069
+ stack_expr ($$).operands ().reserve (2 );
4070
+ mto ($$, $1 );
4071
+ unary_exprt arguments (ID_arguments, exprt (ID_type, stack_type ($3 )));
4072
+ stack_expr ($$).add_to_operands (arguments); }
4073
+ | system_task_name
4074
+ { init ($$, ID_function_call);
4075
+ stack_expr ($$).operands ().reserve (2 );
4076
+ mto ($$, $1 );
4077
+ }
4058
4078
;
4059
4079
4060
4080
event_trigger: TOK_MINUSGREATER hierarchical_event_identifier ' ;'
0 commit comments