summary refs log tree commit diff
path: root/grammar.ebnf
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-19 23:40:05 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-19 23:40:05 +0100
commitfcead42285fe37990d1843c3d3da39f65fd426c0 (patch)
tree3d15851970de503613be095b25b7b4d2753b06fa /grammar.ebnf
parentBug: Fix bug with accept_parse (diff)
downloadinterpreter-fcead42285fe37990d1843c3d3da39f65fd426c0.tar.gz
interpreter-fcead42285fe37990d1843c3d3da39f65fd426c0.tar.bz2
interpreter-fcead42285fe37990d1843c3d3da39f65fd426c0.zip
Start working on proper operator precedence
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 aaa0e78..bde99cb 100644
--- a/grammar.ebnf
+++ b/grammar.ebnf
@@ -12,7 +12,7 @@ ReturnStatement ::= RETURN Expression
 
 FunctionArguments ::= Expression ("," Expression)*
 
-Expression   ::= EqualityExpression | AdditiveExpression | FunctionDefinition
+Expression   ::= EqualityExpression | AdditiveExpression | FunctionDefinition | LPAREN Expression RPAREN
 
 EqualityExpression ::= AdditiveExpression "==" AdditiveExpression