-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcnf.txt
249 lines (249 loc) · 7.4 KB
/
cnf.txt
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
S -> ENTER S
S -> S ENTER
DELETE -> delete
TRY -> try
CATCH -> catch
FINALLY -> finally
TRUE -> true
FALSE -> false
NUMBERS -> numbers
FUNCTION -> function
STRING -> string
EQUAL -> equal
ISEQ -> iseq
LB -> lb
RB -> rb
SWITCH -> switch
CASE -> case
DEFAULT -> default
COLON -> colon
SEMICOLON -> semicolon
LE -> le
L -> l
MOD -> mod
GE -> ge
G -> g
NEQ -> neq
SUBTREQ -> subtreq
MULEQ -> muleq
SUMEQ -> sumeq
DIVEQ -> diveq
INCREMENT -> increment
DECREMMENT -> decrement
AND -> and
OR -> or
NOT -> not
IF -> if
ELSE -> else
WHILE -> while
FOR -> for
LET -> let
CONST -> const
VARJS -> varjs
PAREN_OPEN -> lp
PAREN_CLOSE -> rp
BRACKET_OPEN -> lsb
BRACKET_CLOSE -> rsb
CURLY_BRACKET_OPEN -> lcb
CURLY_BRACKET_CLOSE -> rcb
NEWLINE -> newline
RETURN -> return
VAR -> var
COMMA -> comma
ADD -> add
SUBTR -> subtr
MUL -> mul
DIV -> div
POW -> pow
BREAK -> break
CONTINUE -> continue
THROW -> throw
NULL -> null
LET_METHOD -> LET_METHOD1 EXPRESSION
LET_METHOD0 -> LET VAR
LET_METHOD1 -> LET_METHOD0 ASSIGNMENT
LET_METHOD -> LET_METHOD4 SEMICOLON
LET_METHOD2 -> LET VAR
LET_METHOD3 -> LET_METHOD2 ASSIGNMENT
LET_METHOD4 -> LET_METHOD3 EXPRESSION
CONST_METHOD -> CONST_METHOD6 EXPRESSION
CONST_METHOD5 -> CONST VAR
CONST_METHOD6 -> CONST_METHOD5 ASSIGNMENT
VAR_METHOD -> VAR_METHOD8 EXPRESSION
VAR_METHOD7 -> VARJS VAR
VAR_METHOD8 -> VAR_METHOD7 ASSIGNMENT
ENTER -> NEWLINE ENTER
TRY_METHOD -> TRY_METHOD9 CATCH_METHOD
TRY_METHOD9 -> TRY IN_CURLY_BRACKET
CATCH_METHOD -> CATCH_METHOD10 IN_CURLY_BRACKET
CATCH_METHOD10 -> CATCH IN_PAREN
CATCH_METHOD -> CATCH_METHOD12 IN_CURLY_BRACKET
CATCH_METHOD11 -> ENTER CATCH
CATCH_METHOD12 -> CATCH_METHOD11 IN_PAREN
CATCH_METHOD -> CATCH_METHOD15 FINALLY_METHOD
CATCH_METHOD13 -> ENTER CATCH
CATCH_METHOD14 -> CATCH_METHOD13 IN_PAREN
CATCH_METHOD15 -> CATCH_METHOD14 IN_CURLY_BRACKET
CATCH_METHOD -> CATCH_METHOD17 FINALLY_METHOD
CATCH_METHOD16 -> CATCH IN_PAREN
CATCH_METHOD17 -> CATCH_METHOD16 IN_CURLY_BRACKET
FINALLY_METHOD -> FINALLY IN_CURLY_BRACKET
FINALLY_METHOD -> FINALLY_METHOD18 IN_CURLY_BRACKET
FINALLY_METHOD18 -> ENTER FINALLY
EXPRESSION -> EXPRESSION SINGLE_OPERATION
EXPRESSION -> EXPRESSION19 EXPRESSION
EXPRESSION19 -> EXPRESSION COMMA
EXPRESSION -> EXPRESSION20 EXPRESSION
EXPRESSION20 -> EXPRESSION ASSIGNMENT
EXPRESSION -> EXPRESSION21 EXPRESSION
EXPRESSION21 -> EXPRESSION OPERATION
EXPRESSION -> EXPRESSION22 EXPRESSION
EXPRESSION22 -> EXPRESSION LOGICAL
EXPRESSION -> EXPRESSION23 EXPRESSION
EXPRESSION23 -> EXPRESSION EVALUATION
EXPRESSION -> EXPRESSION24 EXPRESSION
EXPRESSION24 -> EXPRESSION ENTER
EXPRESSION -> EXPRESSION ENTER
EXPRESSION -> EXPRESSION25 ENTER
EXPRESSION25 -> ENTER EXPRESSION
EXPRESSION -> EXPRESSION SEMICOLON
EXPRESSION -> EXPRESSION26 SEMOCOLON
EXPRESSION26 -> LET_METHOD EXPRESSION
FUNCTION_METHOD -> FUNCTION_METHOD28 IN_CURLY_BRACKET
FUNCTION_METHOD27 -> FUNCTION VAR
FUNCTION_METHOD28 -> FUNCTION_METHOD27 IN_PAREN
RETURN_METHOD -> RETURN EXPRESSION
DELETE_METHOD -> DELETE EXPRESSION
IN_PAREN -> IN_PAREN29 PAREN_CLOSE
IN_PAREN29 -> PAREN_OPEN EXPRESSION
IN_BRACKET -> IN_BRACKET30 BRACKET_CLOSE
IN_BRACKET30 -> BRACKET_OPEN EXPRESSION
IN_CURLY_BRACKET -> IN_CURLY_BRACKET31 CURLY_BRACKET_CLOSE
IN_CURLY_BRACKET31 -> CURLY_BRACKET_OPEN EXPRESSION
IF_METHOD -> IF_METHOD32 IN_CURLY_BRACKET
IF_METHOD32 -> IF IN_PAREN
IF_METHOD -> IF_METHOD34 ELSE_METHOD
IF_METHOD33 -> IF IN_PAREN
IF_METHOD34 -> IF_METHOD33 IN_CURLY_BRACKET
IF_METHOD -> IF_METHOD36 ELSE_IF_METHOD
IF_METHOD35 -> IF IN_PAREN
IF_METHOD36 -> IF_METHOD35 IN_CURLY_BRACKET
IF_METHOD -> IF_METHOD37 THROW_METHOD
IF_METHOD37 -> IF IN_PAREN
ELSE_IF_METHOD -> ELSE IF_METHOD
ELSE_METHOD -> ELSE IN_CURLY_BRACKET
WHILE_METHOD -> WHILE_METHOD38 IN_CURLY_BRACKET
WHILE_METHOD38 -> WHILE IN_PAREN
FOR_METHOD -> FOR_METHOD39 IN_CURLY_BRACKET
FOR_METHOD39 -> FOR IN_PAREN_FOR
IN_PAREN_FOR -> IN_PAREN_FOR44 PAREN_CLOSE
IN_PAREN_FOR40 -> PAREN_OPEN EXPRESSION
IN_PAREN_FOR41 -> IN_PAREN_FOR40 SEMICOLON
IN_PAREN_FOR42 -> IN_PAREN_FOR41 EXPRESSION
IN_PAREN_FOR43 -> IN_PAREN_FOR42 SEMICOLON
IN_PAREN_FOR44 -> IN_PAREN_FOR43 EXPRESSION
SWITCH_METHOD -> SWITCH_METHOD45 IN_CURLY_BRACKET
SWITCH_METHOD45 -> SWITCH IN_PAREN
CASE_METHOD -> CASE_METHOD48 EXPRESSION
CASE_METHOD46 -> CASE NUMBERS
CASE_METHOD47 -> CASE_METHOD46 COLON
CASE_METHOD48 -> CASE_METHOD47 ENTER
CASE_METHOD -> CASE_METHOD52 DEFAULT_METHOD
CASE_METHOD49 -> CASE NUMBERS
CASE_METHOD50 -> CASE_METHOD49 COLON
CASE_METHOD51 -> CASE_METHOD50 ENTER
CASE_METHOD52 -> CASE_METHOD51 EXPRESSION
DEFAULT_METHOD -> DEFAULT_METHOD54 EXPRESSION
DEFAULT_METHOD53 -> DEFAULT COLON
DEFAULT_METHOD54 -> DEFAULT_METHOD53 ENTER
THROW_METHOD -> THROW EXPRESSION
THROW_METHOD -> THROW_METHOD55 SEMICOLON
THROW_METHOD55 -> THROW EXPRESSION
NULL_METHOD -> NULL_METHOD56 NULL
NULL_METHOD56 -> EXPRESSION ASSIGNMENT
NULL_METHOD -> NULL_METHOD57 NULL
NULL_METHOD57 -> EXPRESSION EVALUATION
EXPRESSION -> NULL_METHOD56 NULL
EXPRESSION -> NULL_METHOD57 NULL
EXPRESSION -> DELETE EXPRESSION
EXPRESSION -> continue
EXPRESSION -> break
EXPRESSION -> CASE_METHOD48 EXPRESSION
EXPRESSION -> CASE_METHOD52 DEFAULT_METHOD
EXPRESSION -> SWITCH_METHOD45 IN_CURLY_BRACKET
EXPRESSION -> WHILE_METHOD38 IN_CURLY_BRACKET
EXPRESSION -> FOR_METHOD39 IN_CURLY_BRACKET
EXPRESSION -> false
EXPRESSION -> true
EXPRESSION -> CONST_METHOD6 EXPRESSION
EXPRESSION -> IF_METHOD32 IN_CURLY_BRACKET
EXPRESSION -> IF_METHOD34 ELSE_METHOD
EXPRESSION -> IF_METHOD36 ELSE_IF_METHOD
EXPRESSION -> IF_METHOD37 THROW_METHOD
EXPRESSION -> LET_METHOD1 EXPRESSION
EXPRESSION -> LET_METHOD4 SEMICOLON
EXPRESSION -> FINALLY IN_CURLY_BRACKET
EXPRESSION -> FINALLY_METHOD18 IN_CURLY_BRACKET
EXPRESSION -> CATCH_METHOD10 IN_CURLY_BRACKET
EXPRESSION -> CATCH_METHOD12 IN_CURLY_BRACKET
EXPRESSION -> CATCH_METHOD15 FINALLY_METHOD
EXPRESSION -> CATCH_METHOD17 FINALLY_METHOD
EXPRESSION -> TRY_METHOD9 CATCH_METHOD
EXPRESSION -> RETURN EXPRESSION
EXPRESSION -> FUNCTION_METHOD28 IN_CURLY_BRACKET
EXPRESSION -> IN_CURLY_BRACKET31 CURLY_BRACKET_CLOSE
EXPRESSION -> IN_BRACKET30 BRACKET_CLOSE
EXPRESSION -> IN_PAREN29 PAREN_CLOSE
EXPRESSION -> var
EXPRESSION -> string
EXPRESSION -> numbers
ENTER -> newline
LOGICAL -> and
LOGICAL -> not
LOGICAL -> or
SINGLE_OPERATION -> decrement
SINGLE_OPERATION -> increment
OPERATION -> pow
OPERATION -> mul
OPERATION -> div
OPERATION -> subtr
OPERATION -> add
OPERATION -> sumeq
OPERATION -> diveq
OPERATION -> muleq
OPERATION -> subtreq
OPERATION -> mod
ASSIGNMENT -> equal
EVALUATION -> neq
EVALUATION -> g
EVALUATION -> ge
EVALUATION -> l
EVALUATION -> le
EVALUATION -> iseq
S -> NULL_METHOD56 NULL
S -> NULL_METHOD57 NULL
S -> DELETE EXPRESSION
S -> FINALLY IN_CURLY_BRACKET
S -> FINALLY_METHOD18 IN_CURLY_BRACKET
S -> NEWLINE ENTER
S -> newline
S -> newline
S -> THROW EXPRESSION
S -> THROW_METHOD55 SEMICOLON
S -> TRY_METHOD9 CATCH_METHOD
S -> VAR_METHOD8 EXPRESSION
S -> CASE_METHOD48 EXPRESSION
S -> CASE_METHOD52 DEFAULT_METHOD
S -> SWITCH_METHOD45 IN_CURLY_BRACKET
S -> FINALLY IN_CURLY_BRACKET
S -> FINALLY_METHOD18 IN_CURLY_BRACKET
S -> FUNCTION_METHOD28 IN_CURLY_BRACKET
S -> FOR_METHOD39 IN_CURLY_BRACKET
S -> WHILE_METHOD38 IN_CURLY_BRACKET
S -> CONST_METHOD6 EXPRESSION
S -> LET_METHOD1 EXPRESSION
S -> LET_METHOD4 SEMICOLON
S -> IF_METHOD32 IN_CURLY_BRACKET
S -> IF_METHOD34 ELSE_METHOD
S -> IF_METHOD36 ELSE_IF_METHOD
S -> IF_METHOD37 THROW_METHOD