diff options
| author | Baitinq <[email protected]> | 2025-01-06 17:14:21 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-01-06 17:14:21 +0100 |
| commit | c8635fe43447f879251ad049cdf42043b62522fa (patch) | |
| tree | 814cba5c6df910d34b2c6ae43c4c92b0a16f2479 /grammar.ebnf | |
| parent | Parser: implement parse_number (diff) | |
| download | pry-lang-c8635fe43447f879251ad049cdf42043b62522fa.tar.gz pry-lang-c8635fe43447f879251ad049cdf42043b62522fa.tar.bz2 pry-lang-c8635fe43447f879251ad049cdf42043b62522fa.zip | |
Parser: Change grammar and implement print and expression parsing
Diffstat (limited to 'grammar.ebnf')
| -rw-r--r-- | grammar.ebnf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grammar.ebnf b/grammar.ebnf index cc087fe..1423e74 100644 --- a/grammar.ebnf +++ b/grammar.ebnf @@ -6,4 +6,4 @@ VariableStatement ::= ("let" IDENTIFIER | IDENTIFIER) EQUALS Expression PrintStatement :== PRINT LPAREN Expression RPAREN -Expression :== NUMBER | IDENTIFIER | LPAREN Expression RPAREN +Expression :== NUMBER | IDENTIFIER |