Debian Codegraph @

example/usercontext/lexer/transitiontable.go

raw symbols SCIP
1 // Code generated by gocc; DO NOT EDIT.
2
3 package lexerscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/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/usercontext/lexer`/TransitionTable# [NumStatesscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/NumStates.]func(rune) int
11
12 var TransTabscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab. = TransitionTablescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransitionTable#{
13 // S0
14 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. rune) int {
15 switch {
16 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. == 10: // ['\n','\n']
17 return 1
18 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. == 13: // ['\r','\r']
19 return 2
20 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. == 32: // [' ',' ']
21 return 1
22 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. == 46: // ['.','.']
23 return 3
24 case 65 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. <= 90: // ['A','Z']
25 return 4
26 case 97 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. <= 122: // ['a','z']
27 return 5
28 }
29 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/NoState.
30 },
31 // S1
32 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. rune) int {
33 switch {
34 }
35 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/NoState.
36 },
37 // S2
38 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. rune) int {
39 switch {
40 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. == 10: // ['\n','\n']
41 return 1
42 }
43 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/NoState.
44 },
45 // S3
46 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. rune) int {
47 switch {
48 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. == 46: // ['.','.']
49 return 6
50 }
51 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/NoState.
52 },
53 // S4
54 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. rune) int {
55 switch {
56 case 65 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. <= 90: // ['A','Z']
57 return 4
58 case 97 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. <= 122: // ['a','z']
59 return 4
60 }
61 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/NoState.
62 },
63 // S5
64 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. rune) int {
65 switch {
66 case 97 <= rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. && rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. <= 122: // ['a','z']
67 return 5
68 }
69 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/NoState.
70 },
71 // S6
72 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. rune) int {
73 switch {
74 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. == 46: // ['.','.']
75 return 7
76 }
77 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/NoState.
78 },
79 // S7
80 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. rune) int {
81 switch {
82 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. == 52: // ['4','4']
83 return 8
84 }
85 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/NoState.
86 },
87 // S8
88 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. rune) int {
89 switch {
90 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. == 50: // ['2','2']
91 return 9
92 }
93 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/NoState.
94 },
95 // S9
96 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. rune) int {
97 switch {
98 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. == 46: // ['.','.']
99 return 10
100 }
101 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/NoState.
102 },
103 // S10
104 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. rune) int {
105 switch {
106 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. == 46: // ['.','.']
107 return 11
108 }
109 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/NoState.
110 },
111 // S11
112 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. rune) int {
113 switch {
114 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. == 46: // ['.','.']
115 return 12
116 }
117 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/NoState.
118 },
119 // S12
120 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/TransTab:r. rune) int {
121 switch {
122 }
123 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/usercontext/lexer`/NoState.
124 },
125 }