function calls can now have more than 1 parameter list

This commit is contained in:
Sven Vogel 2024-05-05 21:11:28 +02:00
parent 3e6469e239
commit 6f6b34792f
1 changed files with 5 additions and 3 deletions

View File

@ -56,8 +56,7 @@
%token FunExtsupport
%%
program: assign
| definition;
program: funcall;
expr: ValFloat
| ValInt
@ -69,7 +68,10 @@ exprlist: expr ',' exprlist
| expr
| ;
funcall: Ident '(' exprlist ')' { DEBUG("Function call"); };
paramlist: paramlist '(' exprlist ')'
| ;
funcall: Ident paramlist { DEBUG("Function call"); };
assign: Ident '=' expr { DEBUG("Assignment"); };