Debian Codegraph @

example/rr/parser/productionstable.go

raw symbols SCIP
1 // Code generated by gocc; DO NOT EDIT.
2
3 package parser
4
5 type (
6 ProdTab [numProductions]ProdTabEntry
7 ProdTabEntry struct {
8 String string
9 Id string
10 NTType int
11 Index int
12 NumSymbols int
13 ReduceFunc func([]Attrib, interface{}) (Attrib, error)
14 }
15 Attrib interface {
16 }
17 )
18
19 var productionsTable = ProdTab{
20 ProdTabEntry{
21 String: `S' : RR << >>`,
22 Id: "S'",
23 NTType: 0,
24 Index: 0,
25 NumSymbols: 1,
26 ReduceFunc: func(X []Attrib, C interface{}) (Attrib, error) {
27 return X[0], nil
28 },
29 },
30 ProdTabEntry{
31 String: `RR : A << >>`,
32 Id: "RR",
33 NTType: 1,
34 Index: 1,
35 NumSymbols: 1,
36 ReduceFunc: func(X []Attrib, C interface{}) (Attrib, error) {
37 return X[0], nil
38 },
39 },
40 ProdTabEntry{
41 String: `RR : B << >>`,
42 Id: "RR",
43 NTType: 1,
44 Index: 2,
45 NumSymbols: 1,
46 ReduceFunc: func(X []Attrib, C interface{}) (Attrib, error) {
47 return X[0], nil
48 },
49 },
50 ProdTabEntry{
51 String: `B : a << "B ", nil >>`,
52 Id: "B",
53 NTType: 2,
54 Index: 3,
55 NumSymbols: 1,
56 ReduceFunc: func(X []Attrib, C interface{}) (Attrib, error) {
57 return "B ", nil
58 },
59 },
60 ProdTabEntry{
61 String: `A : a << "A0 ", nil >>`,
62 Id: "A",
63 NTType: 3,
64 Index: 4,
65 NumSymbols: 1,
66 ReduceFunc: func(X []Attrib, C interface{}) (Attrib, error) {
67 return "A0 ", nil
68 },
69 },
70 ProdTabEntry{
71 String: `A : A a << "A1 ", nil >>`,
72 Id: "A",
73 NTType: 3,
74 Index: 5,
75 NumSymbols: 2,
76 ReduceFunc: func(X []Attrib, C interface{}) (Attrib, error) {
77 return "A1 ", nil
78 },
79 },
80 ProdTabEntry{
81 String: `A : c << "A2 ", nil >>`,
82 Id: "A",
83 NTType: 3,
84 Index: 6,
85 NumSymbols: 1,
86 ReduceFunc: func(X []Attrib, C interface{}) (Attrib, error) {
87 return "A2 ", nil
88 },
89 },
90 }