Skip to content

Commit

Permalink
format style
Browse files Browse the repository at this point in the history
  • Loading branch information
shenao78 committed Jul 20, 2021
1 parent 7f7d073 commit 0405763
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/grammar.y
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ stmt:
;

if_stmt:
IF '(' bool_expr ')' block { $$ = allocIfStatement($3, $5, NULL, NULL); }
| IF '(' bool_expr ')' block ELSE block { $$ = allocIfStatement($3, $5, NULL, $7); }
| IF '(' bool_expr ')' block elseif_list { $$ = allocIfStatement($3, $5, $6, NULL); }
IF '(' bool_expr ')' block { $$ = allocIfStatement($3, $5, NULL, NULL); }
| IF '(' bool_expr ')' block ELSE block { $$ = allocIfStatement($3, $5, NULL, $7); }
| IF '(' bool_expr ')' block elseif_list { $$ = allocIfStatement($3, $5, $6, NULL); }
| IF '(' bool_expr ')' block elseif_list ELSE block { $$ = allocIfStatement($3, $5, $6, $8); }
;

Expand Down

0 comments on commit 0405763

Please sign in to comment.