diff --git a/src/yacc/parser.y b/src/yacc/parser.y index 1faa60f..d6226e4 100644 --- a/src/yacc/parser.y +++ b/src/yacc/parser.y @@ -65,7 +65,6 @@ %% program: statementlist; - expr: ValFloat | ValInt | ValMultistr @@ -73,6 +72,17 @@ expr: ValFloat | Ident | operation; +exprlist: expr ',' exprlist + | expr + | ; + +paramlist: paramlist '(' exprlist ')' + | ; + +funcall: Ident paramlist { DEBUG("Function call"); }; + +assign: Ident '=' expr { DEBUG("Assignment"); }; + statementlist: statementlist statement | ;