~kameliya/kyuubey

5c186f2ce0bc43617194d400148f8e9ce923c18a — Yuki Izumi 6 years ago d9a0d7a
Fix exprlist bug.
1 files changed, 3 insertions(+), 3 deletions(-)

M lang.y
M lang.y => lang.y +3 -3
@@ 44,9 44,9 @@ stmt:           TOKEN opt_exprlist      { $$ = ast_stmt_alloc(STMT_CALL); $$->ca
;

exprlist:       EXPR                    { $$ = $1; }
              | exprlist ',' EXPR       { $$ = $1; $1->next = $3; $1->nexttype = ','; }
              | exprlist ';' EXPR       { $$ = $1; $1->next = $3; $1->nexttype = ';'; }
              | exprlist EXPR           { $$ = $1; $1->next = $2; $1->nexttype = ';'; }
              | EXPR ',' exprlist       { $$ = $1; $1->next = $3; $1->nexttype = ','; }
              | EXPR ';' exprlist       { $$ = $1; $1->next = $3; $1->nexttype = ';'; }
              | EXPR exprlist           { $$ = $1; $1->next = $2; $1->nexttype = ';'; }
;

opt_exprlist:   /* empty */             { $$ = 0; }