Skip to content

Commit 93c4559

Browse files
committed
add optional semicolon
1 parent c4b270b commit 93c4559

File tree

4 files changed

+1144
-1129
lines changed

4 files changed

+1144
-1129
lines changed

more_math/Parser/MathExpr.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
grammar MathExpr;
22

33
// Top-level entry point
4-
start: (funcDef | varDef | stmt)* expr EOF;
4+
start: (funcDef | varDef | stmt)* expr SEMICOLON? EOF;
55

66
funcDef:
77
VARIABLE LPAREN paramList? RPAREN ARROW (block | expr) SEMICOLON # FunctionDef;

more_math/Parser/MathExpr.interp

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)