Debian Codegraph @

example/errorrecovery/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: true,
16 actions: [numSymbols]action{
17 nil, // INVALID
18 nil, // ␚
19 shift(3), // id
20 shift(4), // error
21 },
22 },
23 actionRow{ // S1
24 canRecover: true,
25 actions: [numSymbols]action{
26 nil, // INVALID
27 accept(true), // ␚
28 shift(3), // id
29 shift(4), // error
30 },
31 },
32 actionRow{ // S2
33 canRecover: false,
34 actions: [numSymbols]action{
35 nil, // INVALID
36 reduce(1), // ␚, reduce: StmtList
37 reduce(1), // id, reduce: StmtList
38 reduce(1), // error, reduce: StmtList
39 },
40 },
41 actionRow{ // S3
42 canRecover: false,
43 actions: [numSymbols]action{
44 nil, // INVALID
45 reduce(3), // ␚, reduce: Stmt
46 reduce(3), // id, reduce: Stmt
47 reduce(3), // error, reduce: Stmt
48 },
49 },
50 actionRow{ // S4
51 canRecover: true,
52 actions: [numSymbols]action{
53 nil, // INVALID
54 reduce(4), // ␚, reduce: Stmt
55 reduce(4), // id, reduce: Stmt
56 reduce(4), // error, reduce: Stmt
57 },
58 },
59 actionRow{ // S5
60 canRecover: false,
61 actions: [numSymbols]action{
62 nil, // INVALID
63 reduce(2), // ␚, reduce: StmtList
64 reduce(2), // id, reduce: StmtList
65 reduce(2), // error, reduce: StmtList
66 },
67 },
68 }