Documentation ¶
Index ¶
Constants ¶
View Source
const ( NoState = -1 NumStates = 32 NumSymbols = 61 )
Variables ¶
View Source
var ActTab = ActionTable{ ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: -1, Ignore: "!whitespace", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 8, Ignore: "", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: -1, Ignore: "!comment", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 7, Ignore: "", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 0, Ignore: "", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 9, Ignore: "", }, ActionRow{ Accept: 4, Ignore: "", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 2, Ignore: "", }, ActionRow{ Accept: 6, Ignore: "", }, ActionRow{ Accept: 5, Ignore: "", }, ActionRow{ Accept: 3, 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 1 case r == 33: return 2 case r == 34: return 3 case r == 35: return 4 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 44: return 5 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case r == 97: return 6 case 98 <= r && r <= 114: return 2 case r == 115: return 7 case r == 116: return 8 case r == 117: return 2 case r == 118: return 9 case r == 119: return 10 case 120 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 92: return 11 default: return 12 } }, func(r rune) int { switch { case r == 10: return 13 default: return 4 } }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 107: return 2 case r == 108: return 14 case 109 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 100: return 2 case r == 101: return 15 case 102 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 110: return 2 case r == 111: return 16 case 112 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 104: return 2 case r == 105: return 17 case 106 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 104: return 2 case r == 105: return 18 case 106 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { default: return 19 } }, func(r rune) int { switch { case r == 34: return 20 case r == 92: return 21 default: return 12 } }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 100: return 2 case r == 101: return 22 case 102 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 109: return 2 case r == 110: return 23 case 111 <= r && r <= 115: return 2 case r == 116: return 24 case 117 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case r == 97: return 25 case 98 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 115: return 2 case r == 116: return 26 case 117 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 34: return 20 case r == 92: return 21 default: return 12 } }, func(r rune) int { switch { } return NoState }, func(r rune) int { switch { default: return 19 } }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 113: return 2 case r == 114: return 27 case 115 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 99: return 2 case r == 100: return 28 case 101 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 103: return 2 case r == 104: return 29 case 105 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 115: return 2 case r == 116: return 30 case 117 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 114: return 2 case r == 115: return 31 case 116 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } return NoState }, func(r rune) int { switch { case r == 33: return 2 case r == 36: return 2 case r == 37: return 2 case r == 38: return 2 case r == 39: return 2 case r == 42: return 2 case r == 43: return 2 case r == 45: return 2 case r == 46: return 2 case r == 47: return 2 case 48 <= r && r <= 57: return 2 case r == 58: return 2 case r == 59: return 2 case r == 60: return 2 case r == 61: return 2 case r == 62: return 2 case r == 63: return 2 case r == 64: return 2 case 65 <= r && r <= 90: return 2 case r == 94: return 2 case r == 95: return 2 case r == 96: return 2 case 97 <= r && r <= 122: return 2 case r == 123: return 2 case r == 124: return 2 case r == 125: return 2 case r == 126: return 2 case 256 <= r && r <= 1114111: return 2 } 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.