equal
deleted
inserted
replaced
7903 statement: |
7903 statement: |
7904 assignment_statement |
7904 assignment_statement |
7905 | subprogram_control_statement |
7905 | subprogram_control_statement |
7906 | selection_statement |
7906 | selection_statement |
7907 | iteration_statement |
7907 | iteration_statement |
7908 | function_invocation /* TODO: this must be conditional on command line parameter! */ |
7908 | function_invocation |
|
7909 { /* This is a non-standard extension (calling a function outside an ST expression!) */ |
|
7910 /* Only allow this if command line option has been selected... */ |
|
7911 $$ = $1; |
|
7912 if (!runtime_options.allow_void_datatype) { |
|
7913 print_err_msg(locf(@1), locl(@1), "Function invocation in ST code is not allowed outside an expression. To allow this non-standard syntax, activate the apropriate command line option."); |
|
7914 yynerrs++; |
|
7915 } |
|
7916 } |
7909 ; |
7917 ; |
7910 |
7918 |
7911 |
7919 |
7912 /*********************************/ |
7920 /*********************************/ |
7913 /* B 3.2.1 Assignment Statements */ |
7921 /* B 3.2.1 Assignment Statements */ |