-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrammarTCLLexer.interp
122 lines (117 loc) · 7.12 KB
/
grammarTCLLexer.interp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
token literal names:
null
'('
')'
'{'
','
'}'
'['
']'
'int main()'
'print'
';'
null
null
null
'||'
'&&'
'*'
'/'
'%'
'+'
'-'
'>='
'<='
'>'
'<'
'=='
'!='
'!'
'='
null
'if'
'else'
'while'
'for'
'return'
null
token symbolic names:
null
null
null
null
null
null
null
null
null
PRINT
SEMICOL
NEWLINE
INT
BOOL
OR
AND
MUL
DIV
MODULO
ADD
SUB
SUPEQ
INFEQ
SUP
INF
EQUALS
DIFF
NOT
ASSIGN
BASE_TYPE
IF
ELSE
WHILE
FOR
RETURN
VAR
rule names:
T__0
T__1
T__2
T__3
T__4
T__5
T__6
T__7
PRINT
SEMICOL
NEWLINE
INT
BOOL
OR
AND
MUL
DIV
MODULO
ADD
SUB
SUPEQ
INFEQ
SUP
INF
EQUALS
DIFF
NOT
ASSIGN
BASE_TYPE
IF
ELSE
WHILE
FOR
RETURN
VAR
channel names:
DEFAULT_TOKEN_CHANNEL
HIDDEN
mode names:
DEFAULT_MODE
atn:
[4, 0, 35, 211, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 1, 0, 1, 0, 1, 1, 1, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 4, 1, 4, 1, 5, 1, 5, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 10, 4, 10, 106, 8, 10, 11, 10, 12, 10, 107, 1, 10, 1, 10, 1, 11, 3, 11, 113, 8, 11, 1, 11, 4, 11, 116, 8, 11, 11, 11, 12, 11, 117, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 129, 8, 12, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 16, 1, 16, 1, 17, 1, 17, 1, 18, 1, 18, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 3, 28, 178, 8, 28, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 5, 34, 207, 8, 34, 10, 34, 12, 34, 210, 9, 34, 0, 0, 35, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 15, 31, 16, 33, 17, 35, 18, 37, 19, 39, 20, 41, 21, 43, 22, 45, 23, 47, 24, 49, 25, 51, 26, 53, 27, 55, 28, 57, 29, 59, 30, 61, 31, 63, 32, 65, 33, 67, 34, 69, 35, 1, 0, 4, 3, 0, 9, 10, 13, 13, 32, 32, 1, 0, 48, 57, 3, 0, 65, 90, 95, 95, 97, 122, 4, 0, 48, 57, 65, 90, 95, 95, 97, 122, 217, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 29, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 51, 1, 0, 0, 0, 0, 53, 1, 0, 0, 0, 0, 55, 1, 0, 0, 0, 0, 57, 1, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 61, 1, 0, 0, 0, 0, 63, 1, 0, 0, 0, 0, 65, 1, 0, 0, 0, 0, 67, 1, 0, 0, 0, 0, 69, 1, 0, 0, 0, 1, 71, 1, 0, 0, 0, 3, 73, 1, 0, 0, 0, 5, 75, 1, 0, 0, 0, 7, 77, 1, 0, 0, 0, 9, 79, 1, 0, 0, 0, 11, 81, 1, 0, 0, 0, 13, 83, 1, 0, 0, 0, 15, 85, 1, 0, 0, 0, 17, 96, 1, 0, 0, 0, 19, 102, 1, 0, 0, 0, 21, 105, 1, 0, 0, 0, 23, 112, 1, 0, 0, 0, 25, 128, 1, 0, 0, 0, 27, 130, 1, 0, 0, 0, 29, 133, 1, 0, 0, 0, 31, 136, 1, 0, 0, 0, 33, 138, 1, 0, 0, 0, 35, 140, 1, 0, 0, 0, 37, 142, 1, 0, 0, 0, 39, 144, 1, 0, 0, 0, 41, 146, 1, 0, 0, 0, 43, 149, 1, 0, 0, 0, 45, 152, 1, 0, 0, 0, 47, 154, 1, 0, 0, 0, 49, 156, 1, 0, 0, 0, 51, 159, 1, 0, 0, 0, 53, 162, 1, 0, 0, 0, 55, 164, 1, 0, 0, 0, 57, 177, 1, 0, 0, 0, 59, 179, 1, 0, 0, 0, 61, 182, 1, 0, 0, 0, 63, 187, 1, 0, 0, 0, 65, 193, 1, 0, 0, 0, 67, 197, 1, 0, 0, 0, 69, 204, 1, 0, 0, 0, 71, 72, 5, 40, 0, 0, 72, 2, 1, 0, 0, 0, 73, 74, 5, 41, 0, 0, 74, 4, 1, 0, 0, 0, 75, 76, 5, 123, 0, 0, 76, 6, 1, 0, 0, 0, 77, 78, 5, 44, 0, 0, 78, 8, 1, 0, 0, 0, 79, 80, 5, 125, 0, 0, 80, 10, 1, 0, 0, 0, 81, 82, 5, 91, 0, 0, 82, 12, 1, 0, 0, 0, 83, 84, 5, 93, 0, 0, 84, 14, 1, 0, 0, 0, 85, 86, 5, 105, 0, 0, 86, 87, 5, 110, 0, 0, 87, 88, 5, 116, 0, 0, 88, 89, 5, 32, 0, 0, 89, 90, 5, 109, 0, 0, 90, 91, 5, 97, 0, 0, 91, 92, 5, 105, 0, 0, 92, 93, 5, 110, 0, 0, 93, 94, 5, 40, 0, 0, 94, 95, 5, 41, 0, 0, 95, 16, 1, 0, 0, 0, 96, 97, 5, 112, 0, 0, 97, 98, 5, 114, 0, 0, 98, 99, 5, 105, 0, 0, 99, 100, 5, 110, 0, 0, 100, 101, 5, 116, 0, 0, 101, 18, 1, 0, 0, 0, 102, 103, 5, 59, 0, 0, 103, 20, 1, 0, 0, 0, 104, 106, 7, 0, 0, 0, 105, 104, 1, 0, 0, 0, 106, 107, 1, 0, 0, 0, 107, 105, 1, 0, 0, 0, 107, 108, 1, 0, 0, 0, 108, 109, 1, 0, 0, 0, 109, 110, 6, 10, 0, 0, 110, 22, 1, 0, 0, 0, 111, 113, 5, 45, 0, 0, 112, 111, 1, 0, 0, 0, 112, 113, 1, 0, 0, 0, 113, 115, 1, 0, 0, 0, 114, 116, 7, 1, 0, 0, 115, 114, 1, 0, 0, 0, 116, 117, 1, 0, 0, 0, 117, 115, 1, 0, 0, 0, 117, 118, 1, 0, 0, 0, 118, 24, 1, 0, 0, 0, 119, 120, 5, 116, 0, 0, 120, 121, 5, 114, 0, 0, 121, 122, 5, 117, 0, 0, 122, 129, 5, 101, 0, 0, 123, 124, 5, 102, 0, 0, 124, 125, 5, 97, 0, 0, 125, 126, 5, 108, 0, 0, 126, 127, 5, 115, 0, 0, 127, 129, 5, 101, 0, 0, 128, 119, 1, 0, 0, 0, 128, 123, 1, 0, 0, 0, 129, 26, 1, 0, 0, 0, 130, 131, 5, 124, 0, 0, 131, 132, 5, 124, 0, 0, 132, 28, 1, 0, 0, 0, 133, 134, 5, 38, 0, 0, 134, 135, 5, 38, 0, 0, 135, 30, 1, 0, 0, 0, 136, 137, 5, 42, 0, 0, 137, 32, 1, 0, 0, 0, 138, 139, 5, 47, 0, 0, 139, 34, 1, 0, 0, 0, 140, 141, 5, 37, 0, 0, 141, 36, 1, 0, 0, 0, 142, 143, 5, 43, 0, 0, 143, 38, 1, 0, 0, 0, 144, 145, 5, 45, 0, 0, 145, 40, 1, 0, 0, 0, 146, 147, 5, 62, 0, 0, 147, 148, 5, 61, 0, 0, 148, 42, 1, 0, 0, 0, 149, 150, 5, 60, 0, 0, 150, 151, 5, 61, 0, 0, 151, 44, 1, 0, 0, 0, 152, 153, 5, 62, 0, 0, 153, 46, 1, 0, 0, 0, 154, 155, 5, 60, 0, 0, 155, 48, 1, 0, 0, 0, 156, 157, 5, 61, 0, 0, 157, 158, 5, 61, 0, 0, 158, 50, 1, 0, 0, 0, 159, 160, 5, 33, 0, 0, 160, 161, 5, 61, 0, 0, 161, 52, 1, 0, 0, 0, 162, 163, 5, 33, 0, 0, 163, 54, 1, 0, 0, 0, 164, 165, 5, 61, 0, 0, 165, 56, 1, 0, 0, 0, 166, 167, 5, 105, 0, 0, 167, 168, 5, 110, 0, 0, 168, 178, 5, 116, 0, 0, 169, 170, 5, 98, 0, 0, 170, 171, 5, 111, 0, 0, 171, 172, 5, 111, 0, 0, 172, 178, 5, 108, 0, 0, 173, 174, 5, 97, 0, 0, 174, 175, 5, 117, 0, 0, 175, 176, 5, 116, 0, 0, 176, 178, 5, 111, 0, 0, 177, 166, 1, 0, 0, 0, 177, 169, 1, 0, 0, 0, 177, 173, 1, 0, 0, 0, 178, 58, 1, 0, 0, 0, 179, 180, 5, 105, 0, 0, 180, 181, 5, 102, 0, 0, 181, 60, 1, 0, 0, 0, 182, 183, 5, 101, 0, 0, 183, 184, 5, 108, 0, 0, 184, 185, 5, 115, 0, 0, 185, 186, 5, 101, 0, 0, 186, 62, 1, 0, 0, 0, 187, 188, 5, 119, 0, 0, 188, 189, 5, 104, 0, 0, 189, 190, 5, 105, 0, 0, 190, 191, 5, 108, 0, 0, 191, 192, 5, 101, 0, 0, 192, 64, 1, 0, 0, 0, 193, 194, 5, 102, 0, 0, 194, 195, 5, 111, 0, 0, 195, 196, 5, 114, 0, 0, 196, 66, 1, 0, 0, 0, 197, 198, 5, 114, 0, 0, 198, 199, 5, 101, 0, 0, 199, 200, 5, 116, 0, 0, 200, 201, 5, 117, 0, 0, 201, 202, 5, 114, 0, 0, 202, 203, 5, 110, 0, 0, 203, 68, 1, 0, 0, 0, 204, 208, 7, 2, 0, 0, 205, 207, 7, 3, 0, 0, 206, 205, 1, 0, 0, 0, 207, 210, 1, 0, 0, 0, 208, 206, 1, 0, 0, 0, 208, 209, 1, 0, 0, 0, 209, 70, 1, 0, 0, 0, 210, 208, 1, 0, 0, 0, 7, 0, 107, 112, 117, 128, 177, 208, 1, 6, 0, 0]