Index
BNF for
suc_ub5_1_1.gram
A := B | B 'x' B := 'y'
LR(0) Automaton
As Postscript
As Graphviz DOT
SLR(1) Parser Table
Rules:
1
A := B
2
A := B 'x'
3
B := 'y'
Parser Table:
State
ACTIONS
GOTO
y
x
$
A
B
0
s3
1
2
1
A
2
s4
r1
3
r3
r3
4
r2
LR(0) Automaton with Lookahead
As Postscript
As Graphviz DOT
LALR(1) Parser Table
Rules:
1
A := B
2
A := B 'x'
3
B := 'y'
Parser Table:
State
ACTIONS
GOTO
y
x
$
A
B
0
s3
1
2
1
A
2
s4
r1
3
r3
r3
4
r2