Documentation ¶
Index ¶
Constants ¶
View Source
const ( NoState = -1 NumStates = 65 NumSymbols = 73 )
Variables ¶
View Source
var ActTab = ActionTable{ ActionRow{ Accept: 7, Ignore: "", }, ActionRow{ Accept: -1, Ignore: "!whitespace", }, ActionRow{ Accept: -1, Ignore: "!whitespace", }, ActionRow{ Accept: 7, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 3, Ignore: "", }, ActionRow{ Accept: 4, Ignore: "", }, ActionRow{ Accept: 6, Ignore: "", }, ActionRow{ Accept: 7, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 12, Ignore: "", }, ActionRow{ Accept: 9, Ignore: "", }, ActionRow{ Accept: 8, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 10, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 13, Ignore: "", }, ActionRow{ Accept: 13, Ignore: "", }, ActionRow{ Accept: 11, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 13, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 17, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 18, Ignore: "", }, ActionRow{ Accept: 14, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 15, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, }
View Source
var TransTab = TransitionTable{ func(r rune) int { switch { case r == 9: return 1 case r == 10: return 1 case r == 13: return 1 case r == 32: return 2 case r == 33: return 3 case r == 34: return 4 case r == 36: return 5 case r == 38: return 3 case r == 39: return 6 case r == 40: return 7 case r == 41: return 8 case r == 42: return 3 case r == 43: return 3 case r == 44: return 9 case r == 45: return 10 case r == 46: return 11 case r == 47: return 3 case 48 <= r && r <= 57: return 12 case r == 58: return 13 case r == 60: return 3 case r == 61: return 3 case r == 62: return 3 case r == 63: return 14 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 101: return 15 case r == 102: return 16 case 103 <= r && r <= 109: return 15 case r == 110: return 17 case 111 <= r && r <= 115: return 15 case r == 116: return 18 case 117 <= r && r <= 122: return 15 case r == 124: return 3 } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 32: return 3 case r == 33: return 3 case r == 38: return 3 case r == 42: return 3 case r == 43: return 3 case r == 45: return 3 case r == 47: return 3 case r == 60: return 3 case r == 61: return 3 case r == 62: return 3 case r == 124: return 3 } return NoState }, func(r rune) int { switch { case r == 32: return 3 case r == 33: return 3 case r == 38: return 3 case r == 42: return 3 case r == 43: return 3 case r == 45: return 3 case r == 47: return 3 case r == 60: return 3 case r == 61: return 3 case r == 62: return 3 case r == 124: return 3 } return NoState }, func(r rune) int { switch { case r == 34: return 19 case r == 92: return 20 default: return 4 } }, func(r rune) int { switch { case r == 32: return 21 case r == 36: return 21 case r == 45: return 21 case r == 46: return 21 case 48 <= r && r <= 57: return 21 case 65 <= r && r <= 90: return 21 case r == 91: return 22 case r == 93: return 21 case r == 95: return 21 case 97 <= r && r <= 122: return 21 case r == 123: return 21 case r == 125: return 21 } return NoState }, func(r rune) int { switch { case r == 39: return 23 case r == 92: return 24 default: return 6 } }, func(r rune) int { switch { case r == 41: return 25 } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 32: return 3 case r == 33: return 3 case r == 38: return 3 case r == 42: return 3 case r == 43: return 3 case r == 45: return 10 case r == 46: return 15 case r == 47: return 3 case 48 <= r && r <= 57: return 15 case r == 60: return 3 case r == 61: return 3 case r == 62: return 3 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 case r == 124: return 3 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 26 case 65 <= r && r <= 68: return 15 case r == 69: return 27 case 70 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 100: return 15 case r == 101: return 27 case 102 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 28 case 48 <= r && r <= 57: return 12 case 65 <= r && r <= 68: return 15 case r == 69: return 29 case 70 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 100: return 15 case r == 101: return 29 case 102 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 15 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 15 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case r == 97: return 30 case 98 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 15 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 104: return 15 case r == 105: return 31 case 106 <= r && r <= 116: return 15 case r == 117: return 32 case 118 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 15 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 113: return 15 case r == 114: return 33 case 115 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { default: return 34 } }, func(r rune) int { switch { case r == 32: return 21 case r == 36: return 21 case r == 45: return 21 case r == 46: return 21 case 48 <= r && r <= 57: return 21 case 65 <= r && r <= 90: return 21 case r == 91: return 22 case r == 93: return 21 case r == 95: return 21 case 97 <= r && r <= 122: return 21 case r == 123: return 21 case r == 125: return 21 } return NoState }, func(r rune) int { switch { case r == 93: return 35 default: return 36 } }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { default: return 37 } }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 26 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 43: return 38 case r == 45: return 39 case r == 46: return 15 case 48 <= r && r <= 57: return 40 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 41 case 65 <= r && r <= 68: return 15 case r == 69: return 42 case 70 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 100: return 15 case r == 101: return 42 case 102 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 43: return 43 case r == 45: return 44 case r == 46: return 15 case 48 <= r && r <= 57: return 45 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 15 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 107: return 15 case r == 108: return 46 case 109 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 15 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 107: return 15 case r == 108: return 47 case 109 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 15 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 107: return 15 case r == 108: return 48 case 109 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 15 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 116: return 15 case r == 117: return 49 case 118 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 34: return 19 case r == 92: return 20 default: return 4 } }, func(r rune) int { switch { case r == 32: return 21 case r == 36: return 21 case r == 45: return 21 case r == 46: return 21 case 48 <= r && r <= 57: return 21 case 65 <= r && r <= 90: return 21 case r == 91: return 22 case r == 93: return 21 case r == 95: return 21 case 97 <= r && r <= 122: return 21 case r == 123: return 21 case r == 125: return 21 } return NoState }, func(r rune) int { switch { case r == 93: return 35 default: return 36 } }, func(r rune) int { switch { case r == 39: return 23 case r == 92: return 24 default: return 6 } }, func(r rune) int { switch { case 48 <= r && r <= 57: return 50 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 40 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 40 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 41 case 65 <= r && r <= 68: return 15 case r == 69: return 51 case 70 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 100: return 15 case r == 101: return 51 case 102 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 43: return 52 case r == 45: return 53 case r == 46: return 15 case 48 <= r && r <= 57: return 54 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 55 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 45 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 45 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 15 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 114: return 15 case r == 115: return 56 case 116 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 15 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 15 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 107: return 15 case r == 108: return 57 case 109 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 15 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 100: return 15 case r == 101: return 58 case 102 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 50 } return NoState }, func(r rune) int { switch { case r == 43: return 59 case r == 45: return 60 case r == 46: return 15 case 48 <= r && r <= 57: return 61 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 62 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 54 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 54 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 55 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 15 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 100: return 15 case r == 101: return 63 case 102 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 15 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 15 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 64 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 61 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 61 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 62 } return NoState }, func(r rune) int { switch { case r == 45: return 15 case r == 46: return 15 case 48 <= r && r <= 57: return 15 case 65 <= r && r <= 90: return 15 case r == 95: return 15 case 97 <= r && r <= 122: return 15 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 64 } return NoState }, }
Functions ¶
This section is empty.
Types ¶
type ActionTable ¶
type TransitionTable ¶
Let s be the current state Let r be the current input rune transitionTable[s](r) returns the next state.
Click to show internal directories.
Click to hide internal directories.