From 3e6469e2390fee9eeb9aad55aaea0cc16e7f6e00 Mon Sep 17 00:00:00 2001 From: servostar Date: Mon, 29 Apr 2024 14:12:27 +0200 Subject: [PATCH] added parser rule for function calling --- src/yacc/parser.y | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/yacc/parser.y b/src/yacc/parser.y index 2ee4e7d..154cff8 100644 --- a/src/yacc/parser.y +++ b/src/yacc/parser.y @@ -65,6 +65,12 @@ expr: ValFloat | ValStr | Ident; +exprlist: expr ',' exprlist + | expr + | ; + +funcall: Ident '(' exprlist ')' { DEBUG("Function call"); }; + assign: Ident '=' expr { DEBUG("Assignment"); }; identlist: Ident ',' identlist