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
|
%token FunExtsupport
|
||||||
|
|
||||||
%%
|
%%
|
||||||
program: assign
|
program: funcall;
|
||||||
| definition;
|
|
||||||
|
|
||||||
expr: ValFloat
|
expr: ValFloat
|
||||||
| ValInt
|
| ValInt
|
||||||
|
@ -69,7 +68,10 @@ exprlist: expr ',' exprlist
|
||||||
| expr
|
| expr
|
||||||
| ;
|
| ;
|
||||||
|
|
||||||
funcall: Ident '(' exprlist ')' { DEBUG("Function call"); };
|
paramlist: paramlist '(' exprlist ')'
|
||||||
|
| ;
|
||||||
|
|
||||||
|
funcall: Ident paramlist { DEBUG("Function call"); };
|
||||||
|
|
||||||
assign: Ident '=' expr { DEBUG("Assignment"); };
|
assign: Ident '=' expr { DEBUG("Assignment"); };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue