Skip to content

Commit

Permalink
fix: use left recursion for statements
Browse files Browse the repository at this point in the history
Please see
#12 (comment)
  • Loading branch information
sillydan1 committed Jul 7, 2024
1 parent ad86a0d commit 8d27e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expr-lang/expr.y
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ unit:

statements:
%empty { }
| statement statements { }
| statements statement { }
;

statement:
Expand Down

0 comments on commit 8d27e99

Please sign in to comment.