From ece99692f775b3cbf9ba5cc2e957d6598d87ecaa Mon Sep 17 00:00:00 2001
From: Youssef <youssef.sellami@student-cs.fr>
Date: Mon, 3 Mar 2025 17:15:10 +0100
Subject: [PATCH] grammar correction : use of Targ tag

---
 expr_grammar_action.g | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/expr_grammar_action.g b/expr_grammar_action.g
index d1d0e24..9d5d588 100644
--- a/expr_grammar_action.g
+++ b/expr_grammar_action.g
@@ -31,11 +31,11 @@ axiom S
 
 rules
 S -> FUNDEFS SYM_EOF { Node(Tlistglobdef, $1) }
-FUNDEFS -> FUNDEF FUNDEFS { Node(Tfundef, $1)::$2 }
+FUNDEFS -> FUNDEF FUNDEFS { $1::$2 }
 FUNDEFS -> { [] }
-FUNDEF -> IDENTIFIER SYM_LPARENTHESIS LPARAMS SYM_RPARENTHESIS INSTR { [Node(Tfunname, [$1]); Node(Tfunargs, $3); Node(Tfunbody, [$5])] }
+FUNDEF -> IDENTIFIER SYM_LPARENTHESIS LPARAMS SYM_RPARENTHESIS INSTR { Node(Tfundef, [Node(Tfunname, [$1]); Node(Tfunargs, $3); Node(Tfunbody, [$5])]) }
 
-LPARAMS -> IDENTIFIER REST_PARAMS { $1::$2 }
+LPARAMS -> IDENTIFIER REST_PARAMS { Node(Targ, [$1])::$2 }
 LPARAMS -> { [] }
 REST_PARAMS -> SYM_COMMA LPARAMS { $2 }
 REST_PARAMS -> { [] }
-- 
GitLab