Debian Codegraph @

example/rr/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/rr/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/rr/lexer`/TransitionTable# [NumStatesscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/NumStates.]func(rune) int
11
12 var TransTabscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/TransTab. = TransitionTablescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/TransitionTable#{
13 // S0
14 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/TransTab:r. rune) int {
15 switch {
16 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/TransTab:r. == 9: // ['\t','\t']
17 return 1
18 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/TransTab:r. == 10: // ['\n','\n']
19 return 1
20 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/TransTab:r. == 13: // ['\r','\r']
21 return 1
22 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/TransTab:r. == 32: // [' ',' ']
23 return 1
24 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/TransTab:r. == 97: // ['a','a']
25 return 2
26 case rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/TransTab:r. == 99: // ['c','c']
27 return 3
28 }
29 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/NoState.
30 },
31 // S1
32 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/TransTab:r. rune) int {
33 switch {
34 }
35 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/NoState.
36 },
37 // S2
38 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/TransTab:r. rune) int {
39 switch {
40 }
41 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/NoState.
42 },
43 // S3
44 func(rscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/TransTab:r. rune) int {
45 switch {
46 }
47 return NoStatescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/rr/lexer`/NoState.
48 },
49 }