From 7138ea2f185c6963cfd09a13cfc289d4d1452858 Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Tue, 5 Jun 2018 17:27:48 +0200 Subject: Minor adjustement for array implementing --- src/tpc.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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: | IDENT '(' Arguments ')' { $$ = gen_function_call($1,$3); } ; LValue: - IDENT { gen_check($1, scope); } -| IDENT '[' Exp ']' { gen_check($1, scope); } + IDENT { $$ = $1; gen_check($1, scope); } +| IDENT '[' Exp ']' { $$ = $1; gen_check($1, scope); } ; Arguments: ListExp -- cgit v1.2.3