diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2025-01-19 13:55:58 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2025-01-19 14:09:32 +0100 |
commit | 538b822e837c42f29f5285198a39cfb601685620 (patch) | |
tree | a2ed9a4817f770d141af7b59e210439534d28ee0 /grammar.ebnf | |
parent | Example: Get fibonacci example working (diff) | |
download | interpreter-538b822e837c42f29f5285198a39cfb601685620.tar.gz interpreter-538b822e837c42f29f5285198a39cfb601685620.tar.bz2 interpreter-538b822e837c42f29f5285198a39cfb601685620.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 |