Debian Codegraph @

example/astx/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(3), // id
20 },
21 },
22 actionRow{ // S1
23 canRecover: false,
24 actions: [numSymbols]action{
25 nil, // INVALID
26 accept(true), // ␚
27 shift(3), // id
28 },
29 },
30 actionRow{ // S2
31 canRecover: false,
32 actions: [numSymbols]action{
33 nil, // INVALID
34 reduce(1), // ␚, reduce: StmtList
35 reduce(1), // id, reduce: StmtList
36 },
37 },
38 actionRow{ // S3
39 canRecover: false,
40 actions: [numSymbols]action{
41 nil, // INVALID
42 reduce(3), // ␚, reduce: Stmt
43 reduce(3), // id, reduce: Stmt
44 },
45 },
46 actionRow{ // S4
47 canRecover: false,
48 actions: [numSymbols]action{
49 nil, // INVALID
50 reduce(2), // ␚, reduce: StmtList
51 reduce(2), // id, reduce: StmtList
52 },
53 },
54 }