diff options
author | Adam NAILI | 2018-06-05 17:27:48 +0200 |
---|---|---|
committer | Adam NAILI | 2018-06-05 17:27:48 +0200 |
commit | 7138ea2f185c6963cfd09a13cfc289d4d1452858 (patch) | |
tree | 1fa52c86ca5d01c52d0137fedd303bfc8728d3d8 /src | |
parent | 244887d732dd410a3621bb7a3b59c9980c0162a8 (diff) | |
download | tpc-compiler-7138ea2f185c6963cfd09a13cfc289d4d1452858.tar.gz |
Minor adjustement for array implementing
Diffstat (limited to 'src')
-rw-r--r-- | src/tpc.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -166,8 +166,8 @@ F: | |||
166 | | IDENT '(' Arguments ')' { $$ = gen_function_call($<ident>1,$<num>3); } | 166 | | IDENT '(' Arguments ')' { $$ = gen_function_call($<ident>1,$<num>3); } |
167 | ; | 167 | ; |
168 | LValue: | 168 | LValue: |
169 | IDENT { gen_check($<ident>1, scope); } | 169 | IDENT { $$ = $1; gen_check($<ident>1, scope); } |
170 | | IDENT '[' Exp ']' { gen_check($<ident>1, scope); } | 170 | | IDENT '[' Exp ']' { $$ = $1; gen_check($<ident>1, scope); } |
171 | ; | 171 | ; |
172 | Arguments: | 172 | Arguments: |
173 | ListExp | 173 | ListExp |