function calls can now have more than 1 parameter list
This commit is contained in:
parent
3e6469e239
commit
6f6b34792f
|
@ -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"); };
|
||||
|
||||
|
|
Loading…
Reference in New Issue