Documentation ¶
Index ¶
Constants ¶
View Source
const ( NoState = -1 NumStates = 90 NumSymbols = 81 )
Variables ¶
View Source
var ActTab = ActionTable{ ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: -1, Ignore: "!whitespace", }, ActionRow{ Accept: 15, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 29, Ignore: "", }, ActionRow{ Accept: 14, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 17, Ignore: "", }, ActionRow{ Accept: 18, Ignore: "", }, ActionRow{ Accept: 12, Ignore: "", }, ActionRow{ Accept: 10, Ignore: "", }, ActionRow{ Accept: 33, Ignore: "", }, ActionRow{ Accept: 11, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 13, Ignore: "", }, ActionRow{ Accept: 26, Ignore: "", }, ActionRow{ Accept: 26, Ignore: "", }, ActionRow{ Accept: 21, Ignore: "", }, ActionRow{ Accept: 6, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 8, Ignore: "", }, ActionRow{ Accept: 20, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 28, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 29, Ignore: "", }, ActionRow{ Accept: 3, Ignore: "", }, ActionRow{ Accept: 28, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 27, Ignore: "", }, ActionRow{ Accept: 30, Ignore: "", }, ActionRow{ Accept: 27, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 7, Ignore: "", }, ActionRow{ Accept: 4, Ignore: "", }, ActionRow{ Accept: 9, Ignore: "", }, ActionRow{ Accept: 19, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 28, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 29, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 30, Ignore: "", }, ActionRow{ Accept: 27, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 27, Ignore: "", }, ActionRow{ Accept: 19, Ignore: "", }, ActionRow{ Accept: 19, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 31, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 24, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 27, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 27, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 16, Ignore: "", }, ActionRow{ Accept: 25, Ignore: "", }, ActionRow{ Accept: 22, Ignore: "", }, ActionRow{ Accept: 23, Ignore: "", }, }
View Source
var TransTab = TransitionTable{ func(r rune) int { switch { case r == 9: return 1 case r == 10: return 1 case r == 11: return 1 case r == 12: return 1 case r == 13: return 1 case r == 32: return 1 case r == 33: return 2 case r == 34: return 3 case r == 36: return 4 case r == 37: return 5 case r == 38: return 6 case r == 39: return 7 case r == 40: return 8 case r == 41: return 9 case r == 42: return 10 case r == 43: return 11 case r == 44: return 12 case r == 45: return 13 case r == 46: return 14 case r == 47: return 15 case r == 48: return 16 case 49 <= r && r <= 57: return 17 case r == 58: return 18 case r == 60: return 19 case r == 61: return 20 case r == 62: return 21 case r == 63: return 22 case 65 <= r && r <= 90: return 23 case r == 91: return 24 case r == 95: return 23 case r == 96: return 25 case 97 <= r && r <= 101: return 23 case r == 102: return 26 case 103 <= r && r <= 109: return 23 case r == 110: return 27 case 111 <= r && r <= 115: return 23 case r == 116: return 28 case 117 <= r && r <= 122: return 23 case r == 124: return 29 } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 61: return 30 } return NoState }, func(r rune) int { switch { case r == 34: return 31 case r == 92: return 32 default: return 3 } }, func(r rune) int { switch { case 65 <= r && r <= 90: return 33 case r == 95: return 33 case 97 <= r && r <= 122: return 33 } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 38: return 34 } return NoState }, func(r rune) int { switch { case r == 39: return 35 case r == 92: return 36 default: return 7 } }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 37 case 65 <= r && r <= 90: return 38 case r == 95: return 38 case 97 <= r && r <= 122: return 38 } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 46: return 39 case 48 <= r && r <= 57: return 40 case r == 69: return 41 case r == 101: return 41 } return NoState }, func(r rune) int { switch { case r == 46: return 39 case 48 <= r && r <= 57: return 17 case r == 69: return 41 case r == 101: return 41 } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 61: return 42 } return NoState }, func(r rune) int { switch { case r == 61: return 43 } return NoState }, func(r rune) int { switch { case r == 61: return 44 } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case 97 <= r && r <= 122: return 23 } return NoState }, func(r rune) int { switch { case r == 34: return 47 case r == 39: return 48 case 48 <= r && r <= 57: return 49 case 65 <= r && r <= 90: return 50 case r == 95: return 50 case r == 96: return 51 case 97 <= r && r <= 122: return 50 } return NoState }, func(r rune) int { switch { case r == 96: return 52 default: return 25 } }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case r == 97: return 53 case 98 <= r && r <= 122: return 23 } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case 97 <= r && r <= 104: return 23 case r == 105: return 54 case 106 <= r && r <= 116: return 23 case r == 117: return 55 case 118 <= r && r <= 122: return 23 } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case 97 <= r && r <= 113: return 23 case r == 114: return 56 case 115 <= r && r <= 122: return 23 } return NoState }, func(r rune) int { switch { case r == 124: return 57 } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 34: return 3 case r == 110: return 58 case r == 114: return 58 case r == 116: return 58 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 59 case 65 <= r && r <= 90: return 33 case r == 95: return 33 case 97 <= r && r <= 122: return 33 } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 39: return 7 case r == 110: return 60 case r == 114: return 60 case r == 116: return 60 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 37 case r == 69: return 61 case r == 101: return 61 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 62 case 65 <= r && r <= 90: return 38 case r == 95: return 38 case 97 <= r && r <= 122: return 38 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 63 case r == 69: return 64 case r == 101: return 64 } return NoState }, func(r rune) int { switch { case r == 46: return 39 case 48 <= r && r <= 57: return 40 case r == 69: return 41 case r == 101: return 41 } return NoState }, func(r rune) int { switch { case r == 43: return 65 case r == 45: return 65 case 48 <= r && r <= 57: return 66 } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 67 case 65 <= r && r <= 90: return 68 case r == 95: return 68 case 97 <= r && r <= 122: return 68 } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case 97 <= r && r <= 122: return 23 } return NoState }, func(r rune) int { switch { case r == 34: return 69 case r == 92: return 70 default: return 47 } }, func(r rune) int { switch { case r == 39: return 71 case r == 92: return 72 default: return 48 } }, func(r rune) int { switch { case 48 <= r && r <= 57: return 49 case r == 93: return 73 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 74 case 65 <= r && r <= 90: return 50 case r == 93: return 73 case r == 95: return 50 case 97 <= r && r <= 122: return 50 } return NoState }, func(r rune) int { switch { case r == 96: return 75 default: return 51 } }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case 97 <= r && r <= 107: return 23 case r == 108: return 76 case 109 <= r && r <= 122: return 23 } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case 97 <= r && r <= 107: return 23 case r == 108: return 77 case 109 <= r && r <= 122: return 23 } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case 97 <= r && r <= 107: return 23 case r == 108: return 78 case 109 <= r && r <= 122: return 23 } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case 97 <= r && r <= 116: return 23 case r == 117: return 79 case 118 <= r && r <= 122: return 23 } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 34: return 31 case r == 92: return 32 default: return 3 } }, func(r rune) int { switch { case 48 <= r && r <= 57: return 59 case 65 <= r && r <= 90: return 33 case r == 95: return 33 case 97 <= r && r <= 122: return 33 } return NoState }, func(r rune) int { switch { case r == 39: return 35 case r == 92: return 36 default: return 7 } }, func(r rune) int { switch { case r == 43: return 80 case r == 45: return 80 case 48 <= r && r <= 57: return 81 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 62 case 65 <= r && r <= 90: return 38 case r == 95: return 38 case 97 <= r && r <= 122: return 38 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 63 case r == 69: return 64 case r == 101: return 64 } return NoState }, func(r rune) int { switch { case r == 43: return 82 case r == 45: return 82 case 48 <= r && r <= 57: return 83 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 66 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 66 } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 67 case 65 <= r && r <= 90: return 68 case r == 95: return 68 case 97 <= r && r <= 122: return 68 } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 67 case 65 <= r && r <= 90: return 68 case r == 95: return 68 case 97 <= r && r <= 122: return 68 } return NoState }, func(r rune) int { switch { case r == 93: return 73 } return NoState }, func(r rune) int { switch { case r == 34: return 47 case r == 110: return 84 case r == 114: return 84 case r == 116: return 84 } return NoState }, func(r rune) int { switch { case r == 93: return 73 } return NoState }, func(r rune) int { switch { case r == 39: return 48 case r == 110: return 85 case r == 114: return 85 case r == 116: return 85 } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 74 case 65 <= r && r <= 90: return 50 case r == 93: return 73 case r == 95: return 50 case 97 <= r && r <= 122: return 50 } return NoState }, func(r rune) int { switch { case r == 93: return 73 } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case 97 <= r && r <= 114: return 23 case r == 115: return 86 case 116 <= r && r <= 122: return 23 } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case 97 <= r && r <= 122: return 23 } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case 97 <= r && r <= 107: return 23 case r == 108: return 87 case 109 <= r && r <= 122: return 23 } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case 97 <= r && r <= 100: return 23 case r == 101: return 88 case 102 <= r && r <= 122: return 23 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 81 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 81 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 83 } return NoState }, func(r rune) int { switch { case 48 <= r && r <= 57: return 83 } return NoState }, func(r rune) int { switch { case r == 34: return 69 case r == 92: return 70 default: return 47 } }, func(r rune) int { switch { case r == 39: return 71 case r == 92: return 72 default: return 48 } }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case 97 <= r && r <= 100: return 23 case r == 101: return 89 case 102 <= r && r <= 122: return 23 } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case 97 <= r && r <= 122: return 23 } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case 97 <= r && r <= 122: return 23 } return NoState }, func(r rune) int { switch { case r == 46: return 45 case 48 <= r && r <= 57: return 46 case 65 <= r && r <= 90: return 23 case r == 95: return 23 case 97 <= r && r <= 122: return 23 } 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.