Debian Codegraph @

example/sr/lexer/acttab.go

raw symbols SCIP
1 // Code generated by gocc; DO NOT EDIT.
2
3 package lexer
4
5 import (
6 "fmt"
7
8 "github.com/goccmack/gocc/example/sr/token"
9 )
10
11 type ActionTable [NumStates]ActionRow
12
13 type ActionRow struct {
14 Accept token.Type
15 Ignore string
16 }
17
18 func (a ActionRow) String() string {
19 return fmt.Sprintf("Accept=%d, Ignore=%s", a.Accept, a.Ignore)
20 }
21
22 var ActTab = ActionTable{
23 ActionRow{ // S0
24 Accept: 0,
25 Ignore: "",
26 },
27 ActionRow{ // S1
28 Accept: -1,
29 Ignore: "!whitespace",
30 },
31 ActionRow{ // S2
32 Accept: 3,
33 Ignore: "",
34 },
35 ActionRow{ // S3
36 Accept: 3,
37 Ignore: "",
38 },
39 ActionRow{ // S4
40 Accept: 3,
41 Ignore: "",
42 },
43 ActionRow{ // S5
44 Accept: 3,
45 Ignore: "",
46 },
47 ActionRow{ // S6
48 Accept: 3,
49 Ignore: "",
50 },
51 ActionRow{ // S7
52 Accept: 3,
53 Ignore: "",
54 },
55 ActionRow{ // S8
56 Accept: 3,
57 Ignore: "",
58 },
59 ActionRow{ // S9
60 Accept: 3,
61 Ignore: "",
62 },
63 ActionRow{ // S10
64 Accept: 3,
65 Ignore: "",
66 },
67 ActionRow{ // S11
68 Accept: 2,
69 Ignore: "",
70 },
71 ActionRow{ // S12
72 Accept: 3,
73 Ignore: "",
74 },
75 ActionRow{ // S13
76 Accept: 3,
77 Ignore: "",
78 },
79 ActionRow{ // S14
80 Accept: 3,
81 Ignore: "",
82 },
83 ActionRow{ // S15
84 Accept: 5,
85 Ignore: "",
86 },
87 ActionRow{ // S16
88 Accept: 4,
89 Ignore: "",
90 },
91 }