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 + + %%