Debian Codegraph @

example/sr/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(2), // if
20 shift(3), // id
21 nil, // then
22 nil, // else
23 },
24 },
25 actionRow{ // S1
26 canRecover: false,
27 actions: [numSymbols]action{
28 nil, // INVALID
29 accept(true), // ␚
30 nil, // if
31 nil, // id
32 nil, // then
33 nil, // else
34 },
35 },
36 actionRow{ // S2
37 canRecover: false,
38 actions: [numSymbols]action{
39 nil, // INVALID
40 nil, // ␚
41 nil, // if
42 shift(4), // id
43 nil, // then
44 nil, // else
45 },
46 },
47 actionRow{ // S3
48 canRecover: false,
49 actions: [numSymbols]action{
50 nil, // INVALID
51 reduce(3), // ␚, reduce: Stmt
52 nil, // if
53 nil, // id
54 nil, // then
55 nil, // else
56 },
57 },
58 actionRow{ // S4
59 canRecover: false,
60 actions: [numSymbols]action{
61 nil, // INVALID
62 nil, // ␚
63 nil, // if
64 nil, // id
65 shift(5), // then
66 nil, // else
67 },
68 },
69 actionRow{ // S5
70 canRecover: false,
71 actions: [numSymbols]action{
72 nil, // INVALID
73 nil, // ␚
74 shift(7), // if
75 shift(8), // id
76 nil, // then
77 nil, // else
78 },
79 },
80 actionRow{ // S6
81 canRecover: false,
82 actions: [numSymbols]action{
83 nil, // INVALID
84 reduce(1), // ␚, reduce: Stmt
85 nil, // if
86 nil, // id
87 nil, // then
88 shift(9), // else
89 },
90 },
91 actionRow{ // S7
92 canRecover: false,
93 actions: [numSymbols]action{
94 nil, // INVALID
95 nil, // ␚
96 nil, // if
97 shift(10), // id
98 nil, // then
99 nil, // else
100 },
101 },
102 actionRow{ // S8
103 canRecover: false,
104 actions: [numSymbols]action{
105 nil, // INVALID
106 reduce(3), // ␚, reduce: Stmt
107 nil, // if
108 nil, // id
109 nil, // then
110 reduce(3), // else, reduce: Stmt
111 },
112 },
113 actionRow{ // S9
114 canRecover: false,
115 actions: [numSymbols]action{
116 nil, // INVALID
117 nil, // ␚
118 shift(2), // if
119 shift(3), // id
120 nil, // then
121 nil, // else
122 },
123 },
124 actionRow{ // S10
125 canRecover: false,
126 actions: [numSymbols]action{
127 nil, // INVALID
128 nil, // ␚
129 nil, // if
130 nil, // id
131 shift(12), // then
132 nil, // else
133 },
134 },
135 actionRow{ // S11
136 canRecover: false,
137 actions: [numSymbols]action{
138 nil, // INVALID
139 reduce(2), // ␚, reduce: Stmt
140 nil, // if
141 nil, // id
142 nil, // then
143 nil, // else
144 },
145 },
146 actionRow{ // S12
147 canRecover: false,
148 actions: [numSymbols]action{
149 nil, // INVALID
150 nil, // ␚
151 shift(7), // if
152 shift(8), // id
153 nil, // then
154 nil, // else
155 },
156 },
157 actionRow{ // S13
158 canRecover: false,
159 actions: [numSymbols]action{
160 nil, // INVALID
161 reduce(1), // ␚, reduce: Stmt
162 nil, // if
163 nil, // id
164 nil, // then
165 shift(14), // else
166 },
167 },
168 actionRow{ // S14
169 canRecover: false,
170 actions: [numSymbols]action{
171 nil, // INVALID
172 nil, // ␚
173 shift(7), // if
174 shift(8), // id
175 nil, // then
176 nil, // else
177 },
178 },
179 actionRow{ // S15
180 canRecover: false,
181 actions: [numSymbols]action{
182 nil, // INVALID
183 reduce(2), // ␚, reduce: Stmt
184 nil, // if
185 nil, // id
186 nil, // then
187 reduce(2), // else, reduce: Stmt
188 },
189 },
190 }