aboutsummaryrefslogtreecommitdiff
path: root/grammar.ebnf
diff options
context:
space:
mode:
Diffstat (limited to 'grammar.ebnf')
-rw-r--r--grammar.ebnf6
1 files changed, 6 insertions, 0 deletions
diff --git a/grammar.ebnf b/grammar.ebnf
index ed4260e..b16a85b 100644
--- a/grammar.ebnf
+++ b/grammar.ebnf
@@ -34,6 +34,7 @@ prototype
statement
= declaration
| assignment
+ | funcall
| 'return', [expression], ';'
;
@@ -43,6 +44,11 @@ expression
| unop, expression
| expression, binop, expression
| '(', expression, ')'
+ | funcall
+ ;
+
+funcall
+ = expression '(' ')'
;
unop