Debian Codegraph @

example/rr/parser/actiontable.go

raw symbols SCIP
1 // Code generated by gocc; DO NOT EDIT.
2
3 package parser
4
5 type (
6 actionTable [numStates]actionRow
7 actionRow struct {
8 canRecover bool
9 actions [numSymbols]action
10 }
11 )
12
13 var actionTab = actionTable{
14 actionRow{ // S0
15 canRecover: false,
16 actions: [numSymbols]action{
17 nil, // INVALID
18 nil, // ␚
19 shift(4), // a
20 shift(5), // c
21 },
22 },
23 actionRow{ // S1
24 canRecover: false,
25 actions: [numSymbols]action{
26 nil, // INVALID
27 accept(true), // ␚
28 nil, // a
29 nil, // c
30 },
31 },
32 actionRow{ // S2
33 canRecover: false,
34 actions: [numSymbols]action{
35 nil, // INVALID
36 reduce(1), // ␚, reduce: RR
37 shift(6), // a
38 nil, // c
39 },
40 },
41 actionRow{ // S3
42 canRecover: false,
43 actions: [numSymbols]action{
44 nil, // INVALID
45 reduce(2), // ␚, reduce: RR
46 nil, // a
47 nil, // c
48 },
49 },
50 actionRow{ // S4
51 canRecover: false,
52 actions: [numSymbols]action{
53 nil, // INVALID
54 reduce(3), // ␚, reduce: B
55 reduce(4), // a, reduce: A
56 nil, // c
57 },
58 },
59 actionRow{ // S5
60 canRecover: false,
61 actions: [numSymbols]action{
62 nil, // INVALID
63 reduce(6), // ␚, reduce: A
64 reduce(6), // a, reduce: A
65 nil, // c
66 },
67 },
68 actionRow{ // S6
69 canRecover: false,
70 actions: [numSymbols]action{
71 nil, // INVALID
72 reduce(5), // ␚, reduce: A
73 reduce(5), // a, reduce: A
74 nil, // c
75 },
76 },
77 }