summary refs log tree commit diff
path: root/grammar.ebnf
diff options
context:
space:
mode:
Diffstat (limited to 'grammar.ebnf')
-rw-r--r--grammar.ebnf4
1 files changed, 1 insertions, 3 deletions
diff --git a/grammar.ebnf b/grammar.ebnf
index caf8c73..86710a2 100644
--- a/grammar.ebnf
+++ b/grammar.ebnf
@@ -12,11 +12,9 @@ ReturnStatement ::= RETURN Expression
 
 FunctionArguments ::= Expression ("," Expression)*
 
---TODO: ==
-
 Expression   ::= AdditiveExpression | FunctionDefinition
 
-AdditiveExpression ::= PrimaryExpression ("+" AdditiveExpression)
+AdditiveExpression ::= PrimaryExpression (("+" | "-") AdditiveExpression)
 
 PrimaryExpression ::= NUMBER | IDENTIFIER | FunctionCallStatement