about summary refs log tree commit diff
path: root/grammar.ebnf
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-04-01 23:46:55 +0200
committerBaitinq <[email protected]>2025-04-01 23:47:14 +0200
commitd4ec81f8453ecc5ded0d2c2843c952ab27d19642 (patch)
tree89af68c5f2b9c5552e95c70d6f2fba44b3d1d7a2 /grammar.ebnf
parentEvaluator: Remove evaluator (diff)
downloadinterpreter-d4ec81f8453ecc5ded0d2c2843c952ab27d19642.tar.gz
interpreter-d4ec81f8453ecc5ded0d2c2843c952ab27d19642.tar.bz2
interpreter-d4ec81f8453ecc5ded0d2c2843c952ab27d19642.zip
Feature: Start adding support for assigning to pointers with arithmetic
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 85d824d..f421d28 100644
--- a/grammar.ebnf
+++ b/grammar.ebnf
@@ -2,7 +2,7 @@ Program      ::= Statement+
 
 Statement    ::= (AssignmentStatement | ExternDeclaration | FunctionCallStatement | IfStatement | WhileStatement | ReturnStatement) SEMICOLON
 
-AssignmentStatement ::= ("let")? ("*")? IDENTIFIER EQUALS Expression
+AssignmentStatement ::= ("let")? ("*")? Expression EQUALS Expression
 
 ExternDeclaration ::= "extern" IDENTIFIER EQUALS Type