diff options
author | pacien | 2018-06-05 14:35:02 +0200 |
---|---|---|
committer | pacien | 2018-06-05 14:35:02 +0200 |
commit | 13b4fc0a1e32008f125f73148d01f12bdac3a80e (patch) | |
tree | dd3dc79a76805220bcf825710e9e0c23f86a5d7f /src/tpc.y | |
parent | 53e859913d6eb7141dbd1ed48f28c336f1322534 (diff) | |
download | tpc-compiler-13b4fc0a1e32008f125f73148d01f12bdac3a80e.tar.gz |
Simplify return type state on call
Diffstat (limited to 'src/tpc.y')
-rw-r--r-- | src/tpc.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -164,7 +164,7 @@ F: | |||
164 | | LValue { $$ = gen_value($<ident>1, scope); } | 164 | | LValue { $$ = gen_value($<ident>1, scope); } |
165 | | NUM { $$ = gen_num($1, scope); } | 165 | | NUM { $$ = gen_num($1, scope); } |
166 | | CARACTERE { $$ = gen_char($1, scope); } | 166 | | CARACTERE { $$ = gen_char($1, scope); } |
167 | | IDENT '(' Arguments ')' { return_type = fun_lookup($<ident>1,$<num>3);$$ = gen_function_call($<ident>1,$<num>3); } | 167 | | IDENT '(' Arguments ')' { $$ = (return_type = gen_function_call($<ident>1,$<num>3)); } |
168 | ; | 168 | ; |
169 | LValue: | 169 | LValue: |
170 | IDENT { gen_check($<ident>1, scope); } | 170 | IDENT { gen_check($<ident>1, scope); } |