debut resolution conflict
This commit is contained in:
parent
5a1dbcf6de
commit
edc2664613
1 changed files with 17 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
%%
|
||||
|
||||
|
||||
|
|
Reference in a new issue