debut resolution conflict

This commit is contained in:
Nicolas PENELOUX 2023-10-23 11:25:18 +02:00
parent 5a1dbcf6de
commit edc2664613

View file

@ -15,10 +15,27 @@
%token<string> ID TID CID STRING
%token<char> CHAR
%start<HopixAST.t> 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
%%