forked from goccmack/gocc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
actiontable.go
executable file
·64 lines (61 loc) · 1.14 KB
/
actiontable.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Code generated by gocc; DO NOT EDIT.
package parser
type (
actionTable [numStates]actionRow
actionRow struct {
canRecover bool
actions [numSymbols]action
}
)
var actionTab = actionTable{
actionRow{ // S0
canRecover: false,
actions: [numSymbols]action{
nil, // INVALID
nil, // $
reduce(2), // c, reduce: B
nil, // empty
shift(3), // b
},
},
actionRow{ // S1
canRecover: false,
actions: [numSymbols]action{
nil, // INVALID
accept(true), // $
nil, // c
nil, // empty
nil, // b
},
},
actionRow{ // S2
canRecover: false,
actions: [numSymbols]action{
nil, // INVALID
nil, // $
shift(4), // c
nil, // empty
nil, // b
},
},
actionRow{ // S3
canRecover: false,
actions: [numSymbols]action{
nil, // INVALID
nil, // $
reduce(3), // c, reduce: B
nil, // empty
nil, // b
},
},
actionRow{ // S4
canRecover: false,
actions: [numSymbols]action{
nil, // INVALID
reduce(1), // $, reduce: A
nil, // c
nil, // empty
nil, // b
},
},
}