Debian Codegraph @

example/rr/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/rr/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: 2,
33 Ignore: "",
34 },
35 ActionRow{ // S3
36 Accept: 3,
37 Ignore: "",
38 },
39 }