summary refs log tree commit diff
path: root/grammar.ebnf
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-06 17:14:21 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-06 17:14:21 +0100
commitc8373bca8a2de3de516f38e8f703794eeaa0bbb6 (patch)
tree814cba5c6df910d34b2c6ae43c4c92b0a16f2479 /grammar.ebnf
parentParser: implement parse_number (diff)
downloadinterpreter-c8373bca8a2de3de516f38e8f703794eeaa0bbb6.tar.gz
interpreter-c8373bca8a2de3de516f38e8f703794eeaa0bbb6.tar.bz2
interpreter-c8373bca8a2de3de516f38e8f703794eeaa0bbb6.zip
Parser: Change grammar and implement print and expression parsing
Diffstat (limited to 'grammar.ebnf')
-rw-r--r--grammar.ebnf2
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