| 1 | // Code generated by gocc; DO NOT EDIT. |
| 2 | |
| 3 | package lexer |
| 4 | |
| 5 | import ( |
| 6 | "fmt" |
| 7 | |
| 8 | "github.com/goccmack/gocc/example/bools/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: 0, |
| 33 | Ignore: "", |
| 34 | }, |
| 35 | ActionRow{ // S3 |
| 36 | Accept: 2, |
| 37 | Ignore: "", |
| 38 | }, |
| 39 | ActionRow{ // S4 |
| 40 | Accept: 4, |
| 41 | Ignore: "", |
| 42 | }, |
| 43 | ActionRow{ // S5 |
| 44 | Accept: 5, |
| 45 | Ignore: "", |
| 46 | }, |
| 47 | ActionRow{ // S6 |
| 48 | Accept: 8, |
| 49 | Ignore: "", |
| 50 | }, |
| 51 | ActionRow{ // S7 |
| 52 | Accept: 9, |
| 53 | Ignore: "", |
| 54 | }, |
| 55 | ActionRow{ // S8 |
| 56 | Accept: 10, |
| 57 | Ignore: "", |
| 58 | }, |
| 59 | ActionRow{ // S9 |
| 60 | Accept: 0, |
| 61 | Ignore: "", |
| 62 | }, |
| 63 | ActionRow{ // S10 |
| 64 | Accept: 0, |
| 65 | Ignore: "", |
| 66 | }, |
| 67 | ActionRow{ // S11 |
| 68 | Accept: 0, |
| 69 | Ignore: "", |
| 70 | }, |
| 71 | ActionRow{ // S12 |
| 72 | Accept: 3, |
| 73 | Ignore: "", |
| 74 | }, |
| 75 | ActionRow{ // S13 |
| 76 | Accept: 11, |
| 77 | Ignore: "", |
| 78 | }, |
| 79 | ActionRow{ // S14 |
| 80 | Accept: 0, |
| 81 | Ignore: "", |
| 82 | }, |
| 83 | ActionRow{ // S15 |
| 84 | Accept: 12, |
| 85 | Ignore: "", |
| 86 | }, |
| 87 | ActionRow{ // S16 |
| 88 | Accept: 0, |
| 89 | Ignore: "", |
| 90 | }, |
| 91 | ActionRow{ // S17 |
| 92 | Accept: 0, |
| 93 | Ignore: "", |
| 94 | }, |
| 95 | ActionRow{ // S18 |
| 96 | Accept: 0, |
| 97 | Ignore: "", |
| 98 | }, |
| 99 | ActionRow{ // S19 |
| 100 | Accept: 0, |
| 101 | Ignore: "", |
| 102 | }, |
| 103 | ActionRow{ // S20 |
| 104 | Accept: 6, |
| 105 | Ignore: "", |
| 106 | }, |
| 107 | ActionRow{ // S21 |
| 108 | Accept: 7, |
| 109 | Ignore: "", |
| 110 | }, |
| 111 | } |