From edc2664613c44e0d028371b45acb9b48c1ec46e6 Mon Sep 17 00:00:00 2001 From: Nicolas PENELOUX Date: Mon, 23 Oct 2023 11:25:18 +0200 Subject: [PATCH] debut resolution conflict --- flap/src/hopix/hopixParser.mly | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/flap/src/hopix/hopixParser.mly b/flap/src/hopix/hopixParser.mly index 61ba393..c072d96 100644 --- a/flap/src/hopix/hopixParser.mly +++ b/flap/src/hopix/hopixParser.mly @@ -15,10 +15,27 @@ %token ID TID CID STRING %token CHAR + + + %start program /* TODO: Résoudre tout les shift/reduce conflits */ +%right ARROW +%right SEMICOLON +%left ASSIGN +%left LPAREN + +/* priorités binop */ + +%left OR +%left AND +%left EQUAL_OP INF_EQUAL_OP INF_OP SUP_EQUAL_OP SUP_OP +%left PLUS MINUS +%left DIV STAR + + %%