about summary refs log tree commit diff
path: root/grammar.ebnf
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-03-21 20:22:45 +0100
committerBaitinq <[email protected]>2025-03-22 20:30:56 +0100
commit95999cb6a286871e245e8b9e20d79bc6cd22252c (patch)
treeb9ae565e1284fc58c255725fb78ee877a3bd960f /grammar.ebnf
parentMisc: Improve error handling (diff)
downloadinterpreter-95999cb6a286871e245e8b9e20d79bc6cd22252c.tar.gz
interpreter-95999cb6a286871e245e8b9e20d79bc6cd22252c.tar.bz2
interpreter-95999cb6a286871e245e8b9e20d79bc6cd22252c.zip
Feature: Add initial support for linking external symbols
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 bbfe488..562f2f8 100644
--- a/grammar.ebnf
+++ b/grammar.ebnf
@@ -2,7 +2,7 @@ Program      ::= Statement+
 
 Statement    ::= (AssignmentStatement | FunctionCallStatement | IfStatement | WhileStatement | ReturnStatement) SEMICOLON
 
-AssignmentStatement ::= "let" IDENTIFIER EQUALS Expression
+AssignmentStatement ::= "let" IDENTIFIER EQUALS (Type | Expression)
 
 FunctionCallStatement ::= (IDENTIFIER | FunctionDefinition) LPAREN FunctionArguments? RPAREN