summary refs log tree commit diff
path: root/grammar.ebnf
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-19 13:55:58 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-19 14:09:32 +0100
commit538b822e837c42f29f5285198a39cfb601685620 (patch)
treea2ed9a4817f770d141af7b59e210439534d28ee0 /grammar.ebnf
parentExample: Get fibonacci example working (diff)
downloadinterpreter-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.ebnf2
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