| 1 | // Code generated by gocc; DO NOT EDIT. |
| 2 | |
| 3 | package lexerscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/ |
| 4 | |
| 5 | /* |
| 6 | Let s be the current state |
| 7 | Let r be the current input rune |
| 8 | transitionTable[s](r) returns the next state. |
| 9 | */ |
| 10 | type TransitionTablescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransitionTable# [NumStatesscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/NumStates.]func(rune) int |
| 11 | |
| 12 | var TransTabscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab. = TransitionTablescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransitionTable#{ |
| 13 | // S0 |
| 14 | func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. rune) int { |
| 15 | switch { |
| 16 | case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. == 9: // ['\t','\t'] |
| 17 | return 1 |
| 18 | case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. == 10: // ['\n','\n'] |
| 19 | return 1 |
| 20 | case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. == 13: // ['\r','\r'] |
| 21 | return 1 |
| 22 | case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. == 32: // [' ',' '] |
| 23 | return 1 |
| 24 | case 65 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 90: // ['A','Z'] |
| 25 | return 2 |
| 26 | case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. == 95: // ['_','_'] |
| 27 | return 3 |
| 28 | case 97 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 122: // ['a','z'] |
| 29 | return 2 |
| 30 | } |
| 31 | return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/NoState. |
| 32 | }, |
| 33 | // S1 |
| 34 | func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. rune) int { |
| 35 | switch { |
| 36 | } |
| 37 | return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/NoState. |
| 38 | }, |
| 39 | // S2 |
| 40 | func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. rune) int { |
| 41 | switch { |
| 42 | case 48 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 57: // ['0','9'] |
| 43 | return 4 |
| 44 | case 65 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 90: // ['A','Z'] |
| 45 | return 5 |
| 46 | case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. == 95: // ['_','_'] |
| 47 | return 6 |
| 48 | case 97 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 122: // ['a','z'] |
| 49 | return 5 |
| 50 | } |
| 51 | return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/NoState. |
| 52 | }, |
| 53 | // S3 |
| 54 | func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. rune) int { |
| 55 | switch { |
| 56 | case 48 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 57: // ['0','9'] |
| 57 | return 4 |
| 58 | case 65 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 90: // ['A','Z'] |
| 59 | return 5 |
| 60 | case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. == 95: // ['_','_'] |
| 61 | return 6 |
| 62 | case 97 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 122: // ['a','z'] |
| 63 | return 5 |
| 64 | } |
| 65 | return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/NoState. |
| 66 | }, |
| 67 | // S4 |
| 68 | func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. rune) int { |
| 69 | switch { |
| 70 | case 48 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 57: // ['0','9'] |
| 71 | return 4 |
| 72 | case 65 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 90: // ['A','Z'] |
| 73 | return 5 |
| 74 | case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. == 95: // ['_','_'] |
| 75 | return 6 |
| 76 | case 97 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 122: // ['a','z'] |
| 77 | return 5 |
| 78 | } |
| 79 | return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/NoState. |
| 80 | }, |
| 81 | // S5 |
| 82 | func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. rune) int { |
| 83 | switch { |
| 84 | case 48 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 57: // ['0','9'] |
| 85 | return 4 |
| 86 | case 65 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 90: // ['A','Z'] |
| 87 | return 5 |
| 88 | case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. == 95: // ['_','_'] |
| 89 | return 6 |
| 90 | case 97 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 122: // ['a','z'] |
| 91 | return 5 |
| 92 | } |
| 93 | return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/NoState. |
| 94 | }, |
| 95 | // S6 |
| 96 | func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. rune) int { |
| 97 | switch { |
| 98 | case 48 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 57: // ['0','9'] |
| 99 | return 4 |
| 100 | case 65 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 90: // ['A','Z'] |
| 101 | return 5 |
| 102 | case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. == 95: // ['_','_'] |
| 103 | return 6 |
| 104 | case 97 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/TransTab:r. <= 122: // ['a','z'] |
| 105 | return 5 |
| 106 | } |
| 107 | return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/lexer`/NoState. |
| 108 | }, |
| 109 | } |