about summary refs log tree commit diff
path: root/grammar.ebnf
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-02-15 23:09:35 +0100
committerBaitinq <[email protected]>2025-02-15 23:12:27 +0100
commitadfde11dd5495cbe28e7faba6dd14b48897b8b7b (patch)
tree7c818a6892938a840dd35f7e631ba6bbb532075d /grammar.ebnf
parentCodegen: depend on libc for entrypoint (diff)
downloadinterpreter-adfde11dd5495cbe28e7faba6dd14b48897b8b7b.tar.gz
interpreter-adfde11dd5495cbe28e7faba6dd14b48897b8b7b.tar.bz2
interpreter-adfde11dd5495cbe28e7faba6dd14b48897b8b7b.zip
Codegen: start supporting types for function params
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 9265242..a169199 100644
--- a/grammar.ebnf
+++ b/grammar.ebnf
@@ -28,4 +28,4 @@ PrimaryExpression ::= NUMBER | BOOLEAN | IDENTIFIER | FunctionCallStatement | Fu
 
 FunctionDefinition ::= LPAREN FunctionParameters? RPAREN ARROW IDENTIFIER LBRACE Statement* ReturnStatement SEMICOLON RBRACE
 
-FunctionParameters ::= IDENTIFIER ("," IDENTIFIER)*
+FunctionParameters ::= IDENTIFIER ":" IDENTIFIER ("," IDENTIFIER ":" IDENTIFIER)*