jLexUndSo/y.output
2023-12-06 13:10:50 +01:00

211 lines
2.5 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

0 $accept : S $end
1 S : Exp Op Exp
2 | BROP Exp Op Exp BRCL
3 Num : NUM
4 | BROP MIN NUM BRCL
5 Exp : S
6 | Num
7 Op : PLS
8 | MIN
9 | MUL
10 | DIV
state 0
$accept : . S $end (0)
NUM shift 1
BROP shift 2
. error
S goto 3
Exp goto 4
Num goto 5
state 1
Num : NUM . (3)
. reduce 3
state 2
S : BROP . Exp Op Exp BRCL (2)
Num : BROP . MIN NUM BRCL (4)
NUM shift 1
MIN shift 6
BROP shift 2
. error
S goto 7
Exp goto 8
Num goto 5
state 3
$accept : S . $end (0)
Exp : S . (5)
$end accept
. reduce 5
state 4
S : Exp . Op Exp (1)
PLS shift 9
MIN shift 10
MUL shift 11
DIV shift 12
. error
Op goto 13
state 5
Exp : Num . (6)
. reduce 6
state 6
Num : BROP MIN . NUM BRCL (4)
NUM shift 14
. error
state 7
Exp : S . (5)
. reduce 5
state 8
S : Exp . Op Exp (1)
S : BROP Exp . Op Exp BRCL (2)
PLS shift 9
MIN shift 10
MUL shift 11
DIV shift 12
. error
Op goto 15
state 9
Op : PLS . (7)
. reduce 7
state 10
Op : MIN . (8)
. reduce 8
state 11
Op : MUL . (9)
. reduce 9
state 12
Op : DIV . (10)
. reduce 10
state 13
S : Exp Op . Exp (1)
NUM shift 1
BROP shift 2
. error
S goto 7
Exp goto 16
Num goto 5
state 14
Num : BROP MIN NUM . BRCL (4)
BRCL shift 17
. error
state 15
S : Exp Op . Exp (1)
S : BROP Exp Op . Exp BRCL (2)
NUM shift 1
BROP shift 2
. error
S goto 7
Exp goto 18
Num goto 5
16: shift/reduce conflict (shift 9, reduce 1) on PLS
16: shift/reduce conflict (shift 10, reduce 1) on MIN
16: shift/reduce conflict (shift 11, reduce 1) on MUL
16: shift/reduce conflict (shift 12, reduce 1) on DIV
state 16
S : Exp . Op Exp (1)
S : Exp Op Exp . (1)
PLS shift 9
MIN shift 10
MUL shift 11
DIV shift 12
$end reduce 1
BRCL reduce 1
Op goto 13
state 17
Num : BROP MIN NUM BRCL . (4)
. reduce 4
18: shift/reduce conflict (shift 9, reduce 1) on PLS
18: shift/reduce conflict (shift 10, reduce 1) on MIN
18: shift/reduce conflict (shift 11, reduce 1) on MUL
18: shift/reduce conflict (shift 12, reduce 1) on DIV
state 18
S : Exp . Op Exp (1)
S : Exp Op Exp . (1)
S : BROP Exp Op Exp . BRCL (2)
PLS shift 9
MIN shift 10
MUL shift 11
DIV shift 12
BRCL shift 19
Op goto 13
state 19
S : BROP Exp Op Exp BRCL . (2)
. reduce 2
State 16 contains 4 shift/reduce conflicts.
State 18 contains 4 shift/reduce conflicts.
9 terminals, 5 nonterminals
11 grammar rules, 20 states