diff options
| author | Baitinq <[email protected]> | 2025-03-21 20:22:45 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-03-22 20:30:56 +0100 |
| commit | 95999cb6a286871e245e8b9e20d79bc6cd22252c (patch) | |
| tree | b9ae565e1284fc58c255725fb78ee877a3bd960f /grammar.ebnf | |
| parent | Misc: Improve error handling (diff) | |
| download | interpreter-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.ebnf | 2 |
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 |