diff options
| author | Baitinq <[email protected]> | 2025-01-19 13:55:58 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-01-19 14:09:32 +0100 |
| commit | 01d27c6e43771353ad9ce1d63f546a122735f0ce (patch) | |
| tree | a2ed9a4817f770d141af7b59e210439534d28ee0 /grammar.ebnf | |
| parent | Example: Get fibonacci example working (diff) | |
| download | interpreter-01d27c6e43771353ad9ce1d63f546a122735f0ce.tar.gz interpreter-01d27c6e43771353ad9ce1d63f546a122735f0ce.tar.bz2 interpreter-01d27c6e43771353ad9ce1d63f546a122735f0ce.zip | |
Feature: Add support for boolean values
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 86710a2..eee1103 100644 --- a/grammar.ebnf +++ b/grammar.ebnf @@ -16,7 +16,7 @@ Expression ::= AdditiveExpression | FunctionDefinition AdditiveExpression ::= PrimaryExpression (("+" | "-") AdditiveExpression) -PrimaryExpression ::= NUMBER | IDENTIFIER | FunctionCallStatement +PrimaryExpression ::= NUMBER | BOOLEAN | IDENTIFIER | FunctionCallStatement FunctionDefinition ::= LPAREN FunctionParamters? RPAREN ARROW LBRACE Statement* ReturnStatement SEMICOLON RBRACE |