Change priority of tokens

This commit is contained in:
Jan-Niclas Loosen
2025-12-03 21:10:07 +01:00
parent 3cf18b9678
commit 6e9f0331ed
4 changed files with 31 additions and 37 deletions

View File

@@ -480,8 +480,7 @@ state 22
(4) E -> E . AOP E
(8) E -> E . SEMICOLON E
! shift/reduce conflict for AOP resolved as shift
! shift/reduce conflict for SEMICOLON resolved as shift
SEMICOLON reduce using rule 8 (E -> E SEMICOLON E .)
$end reduce using rule 8 (E -> E SEMICOLON E .)
RPAREN reduce using rule 8 (E -> E SEMICOLON E .)
EQOP reduce using rule 8 (E -> E SEMICOLON E .)
@@ -493,10 +492,9 @@ state 22
DO reduce using rule 8 (E -> E SEMICOLON E .)
RBRACE reduce using rule 8 (E -> E SEMICOLON E .)
AOP shift and go to state 8
SEMICOLON shift and go to state 9
! AOP [ reduce using rule 8 (E -> E SEMICOLON E .) ]
! SEMICOLON [ reduce using rule 8 (E -> E SEMICOLON E .) ]
! SEMICOLON [ shift and go to state 9 ]
state 23
@@ -785,8 +783,7 @@ state 38
(4) E -> E . AOP E
(8) E -> E . SEMICOLON E
! shift/reduce conflict for AOP resolved as shift
! shift/reduce conflict for SEMICOLON resolved as shift
SEMICOLON reduce using rule 1 (E -> LET D IN E .)
$end reduce using rule 1 (E -> LET D IN E .)
RPAREN reduce using rule 1 (E -> LET D IN E .)
EQOP reduce using rule 1 (E -> LET D IN E .)
@@ -798,10 +795,9 @@ state 38
DO reduce using rule 1 (E -> LET D IN E .)
RBRACE reduce using rule 1 (E -> LET D IN E .)
AOP shift and go to state 8
SEMICOLON shift and go to state 9
! AOP [ reduce using rule 1 (E -> LET D IN E .) ]
! SEMICOLON [ reduce using rule 1 (E -> LET D IN E .) ]
! SEMICOLON [ shift and go to state 9 ]
state 39
@@ -1133,13 +1129,9 @@ state 60
WARNING:
WARNING: Conflicts:
WARNING:
WARNING: shift/reduce conflict for AOP in state 22 resolved as shift
WARNING: shift/reduce conflict for SEMICOLON in state 22 resolved as shift
WARNING: shift/reduce conflict for ID in state 23 resolved as shift
WARNING: shift/reduce conflict for AOP in state 28 resolved as shift
WARNING: shift/reduce conflict for SEMICOLON in state 28 resolved as shift
WARNING: shift/reduce conflict for AOP in state 38 resolved as shift
WARNING: shift/reduce conflict for SEMICOLON in state 38 resolved as shift
WARNING: shift/reduce conflict for EQOP in state 45 resolved as shift
WARNING: shift/reduce conflict for LOP in state 45 resolved as shift
WARNING: shift/reduce conflict for COMMA in state 56 resolved as shift