| 1 | // Code generated by gocc; DO NOT EDIT. |
| 2 | |
| 3 | package lexer |
| 4 | |
| 5 | import ( |
| 6 | "fmt" |
| 7 | |
| 8 | "github.com/goccmack/gocc/example/astx/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: 2, |
| 37 | Ignore: "", |
| 38 | }, |
| 39 | ActionRow{ // S4 |
| 40 | Accept: 2, |
| 41 | Ignore: "", |
| 42 | }, |
| 43 | ActionRow{ // S5 |
| 44 | Accept: 2, |
| 45 | Ignore: "", |
| 46 | }, |
| 47 | ActionRow{ // S6 |
| 48 | Accept: 2, |
| 49 | Ignore: "", |
| 50 | }, |
| 51 | } |