First try

This commit is contained in:
Jan-Niclas Loosen
2026-01-16 16:48:34 +01:00
parent a2cc0adb52
commit 530c597fc1
12 changed files with 330 additions and 42 deletions

View File

@@ -781,6 +781,7 @@ state 38
(4) E -> E . AOP E
(8) E -> E . SEMICOLON E
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 .)
@@ -792,10 +793,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
@@ -1056,11 +1056,10 @@ state 56
(16) V -> V COMMA V .
(16) V -> V . COMMA V
! shift/reduce conflict for COMMA resolved as shift
RPAREN reduce using rule 16 (V -> V COMMA V .)
COMMA shift and go to state 51
COMMA reduce using rule 16 (V -> V COMMA V .)
! COMMA [ reduce using rule 16 (V -> V COMMA V .) ]
! COMMA [ shift and go to state 51 ]
state 57
@@ -1069,8 +1068,7 @@ state 57
(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 9 (E -> IF B THEN E ELSE E .)
$end reduce using rule 9 (E -> IF B THEN E ELSE E .)
RPAREN reduce using rule 9 (E -> IF B THEN E ELSE E .)
EQOP reduce using rule 9 (E -> IF B THEN E ELSE E .)
@@ -1082,10 +1080,9 @@ state 57
DO reduce using rule 9 (E -> IF B THEN E ELSE E .)
RBRACE reduce using rule 9 (E -> IF B THEN E ELSE E .)
AOP shift and go to state 8
SEMICOLON shift and go to state 9
! AOP [ reduce using rule 9 (E -> IF B THEN E ELSE E .) ]
! SEMICOLON [ reduce using rule 9 (E -> IF B THEN E ELSE E .) ]
! SEMICOLON [ shift and go to state 9 ]
state 58
@@ -1130,6 +1127,3 @@ WARNING:
WARNING: shift/reduce conflict for ID in state 23 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
WARNING: shift/reduce conflict for AOP in state 57 resolved as shift
WARNING: shift/reduce conflict for SEMICOLON in state 57 resolved as shift