aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam NAILI2018-06-05 17:27:48 +0200
committerAdam NAILI2018-06-05 17:27:48 +0200
commit7138ea2f185c6963cfd09a13cfc289d4d1452858 (patch)
tree1fa52c86ca5d01c52d0137fedd303bfc8728d3d8
parent244887d732dd410a3621bb7a3b59c9980c0162a8 (diff)
downloadtpc-compiler-7138ea2f185c6963cfd09a13cfc289d4d1452858.tar.gz
Minor adjustement for array implementing
-rw-r--r--src/tpc.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tpc.y b/src/tpc.y
index b2065e7..979e696 100644
--- a/src/tpc.y
+++ b/src/tpc.y
@@ -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;
168LValue: 168LValue:
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;
172Arguments: 172Arguments:
173 ListExp 173 ListExp