Index: trunk/extensions/InlineScripts/interpreter/Scanner.php |
— | — | @@ -30,8 +30,8 @@ |
31 | 31 | |
32 | 32 | static $mKeywords = array( |
33 | 33 | 'in', 'true', 'false', 'null', 'contains', 'break', |
34 | | - 'if', 'then', 'else', 'foreach', 'do', 'try', 'catch', |
35 | | - 'continue', 'isset', 'unset', |
| 34 | + 'if', 'then', 'else', 'for', 'do', 'try', 'catch', |
| 35 | + 'continue', 'isset', 'delete', |
36 | 36 | ); |
37 | 37 | |
38 | 38 | public function __construct( $code ) { |
— | — | @@ -263,7 +263,7 @@ |
264 | 264 | case '!': |
265 | 265 | return ISToken::TBoolInvert; |
266 | 266 | case '(': |
267 | | - return ISToken::TLeftBrace; |
| 267 | + return ISToken::TLeftBracket; |
268 | 268 | case '{': |
269 | 269 | return ISToken::TLeftCurly; |
270 | 270 | case '[': |
— | — | @@ -279,7 +279,7 @@ |
280 | 280 | case '**': |
281 | 281 | return ISToken::TPow; |
282 | 282 | case ')': |
283 | | - return ISToken::TRightBrace; |
| 283 | + return ISToken::TRightBracket; |
284 | 284 | case '}': |
285 | 285 | return ISToken::TRightCurly; |
286 | 286 | case ']': |
Index: trunk/extensions/InlineScripts/interpreter/syntax.txt |
— | — | @@ -2,17 +2,17 @@ |
3 | 3 | <stmts> ::= <stmts> <stmt> | <stmt> |
4 | 4 | |
5 | 5 | <stmt> ::= <expr> semicolon |
6 | | -<stmt> ::= if leftbrace <expr> rightbrace <stmt> |
7 | | -<stmt> ::= if leftbrace <expr> rightbrace <stmt> else <stmt> |
8 | | -<stmt> ::= foreach leftbrace <lvalue> in <expr> rightbrace <stmt> |
9 | | -<stmt> ::= try <stmt> catch leftbrace <lvalue> rightbrace <stmt> |
| 6 | +<stmt> ::= if leftbracket <expr> rightbracket <stmt> |
| 7 | +<stmt> ::= if leftbracket <expr> rightbracket <stmt> else <stmt> |
| 8 | +<stmt> ::= for leftbracket <lvalue> in <expr> rightbracket <stmt> |
| 9 | +<stmt> ::= try <stmt> catch leftbracket <lvalue> rightbracket <stmt> |
10 | 10 | <stmt> ::= leftcurly <stmts> rightcurly |
11 | 11 | |
12 | 12 | <expr> ::= <exprSet> |
13 | 13 | <exprSet> ::= <lvalue> setto <exprSet> | <exprTrinary> |
14 | 14 | <exprTrinary> ::= <exprLogical> trinary <exprTrinary> colon <exprTrinary> | <exprLogical> |
15 | 15 | <exprLogical> ::= <exprLogical> logicop <exprCompare> | <exprCompare> |
16 | | -<exprCompare> ::= <exprCompare> comareop <exprEquals> | <exprEquals> |
| 16 | +<exprCompare> ::= <exprCompare> compareop <exprEquals> | <exprEquals> |
17 | 17 | <exprEquals> ::= <exprSum> equalsto <exprSum> | <exprSum> |
18 | 18 | <exprSum> ::= <exprSum> sum <exprMul> | <exprMul> |
19 | 19 | <exprMul> ::= <exprMul> mul <exprPow> | <exprPow> |
— | — | @@ -20,12 +20,12 @@ |
21 | 21 | <exprInvert> ::= invert <exprKeyword> | <exprKeyword> |
22 | 22 | <exprKeyword> ::= <exprUnary> in <exprUnary> | <exprUnary> contains <exprUnary> | <exprUnary> |
23 | 23 | <exprUnary> ::= sum <exprFunction> | <exprFunction> |
24 | | -<exprFunction> ::= id leftbrace <commaListPlain> rightbrace | id leftbrace rightbrace |
25 | | -<exprFunction> ::= <varfunc> leftbrace <lvalue> rightbrace | <exprAtom> |
| 24 | +<exprFunction> ::= id leftbracket <commaListPlain> rightbracket | id leftbracket rightbracket |
| 25 | +<exprFunction> ::= <varfunc> leftbracket <lvalue> rightbracket | <exprAtom> |
26 | 26 | <exprAtom> ::= <lvalue> | <atom> | break | continue |
27 | | -<exprAtom> ::= leftbrace <expr> rightbrace | leftsquare <commaList> rightsquare |
| 27 | +<exprAtom> ::= leftbracket <expr> rightbracket | leftsquare <commaList> rightsquare |
28 | 28 | |
29 | | -<varfunc> ::= isset | unset |
| 29 | +<varfunc> ::= isset | delete |
30 | 30 | <commaList> ::= <commaListAssoc> | <commaListPlain> |
31 | 31 | <commaListPlain> ::= <commaListPlain> comma <expr> | <expr> |
32 | 32 | <commaListAssoc> ::= <commaListAssoc> comma <keyValue> | <keyValue> |
Index: trunk/extensions/InlineScripts/interpreter/Interpreter.php |
— | — | @@ -178,7 +178,7 @@ |
179 | 179 | return new ISData(); |
180 | 180 | } |
181 | 181 | } |
182 | | - case 'foreach': |
| 182 | + case 'for': |
183 | 183 | $array = $this->evaluateNode( $c[4], $rec + 1 ); |
184 | 184 | if( $array->type != ISData::DList ) |
185 | 185 | throw new ISUserVisibleException( 'invalidforeach', $c[0]->type ); |
— | — | @@ -322,8 +322,8 @@ |
323 | 323 | switch( $type ) { |
324 | 324 | case 'isset': |
325 | 325 | return new ISData( ISData::DBool, $this->checkIsset( $c[2], $rec ) ); |
326 | | - case 'unset': |
327 | | - $this->unsetVar( $c[2], $rec ); |
| 326 | + case 'delete': |
| 327 | + $this->deleteVar( $c[2], $rec ); |
328 | 328 | return new ISData(); |
329 | 329 | default: |
330 | 330 | throw new ISException( "Unknown keyword: {$type}" ); |
— | — | @@ -352,7 +352,7 @@ |
353 | 353 | } |
354 | 354 | } else { |
355 | 355 | switch( $c[0]->type ) { |
356 | | - case 'leftbrace': |
| 356 | + case 'leftbracket': |
357 | 357 | return $this->evaluateNode( $c[1], $rec + 1 ); |
358 | 358 | case 'leftsquare': |
359 | 359 | return new ISData( ISData::DList, $this->parseArray( $c[1], $rec + 1 ) ); |
— | — | @@ -516,12 +516,12 @@ |
517 | 517 | } |
518 | 518 | } |
519 | 519 | |
520 | | - protected function unsetVar( $lval, $rec ) { |
| 520 | + protected function deleteVar( $lval, $rec ) { |
521 | 521 | $c = $lval->getChildren(); |
522 | 522 | $line = $c[0]->line; |
523 | 523 | $varname = $c[0]->value; |
524 | 524 | if( isset( $c[1] ) ) { |
525 | | - throw new ISException( 'unset() is not usable for array elements' ); |
| 525 | + throw new ISException( 'delete() is not usable for array elements' ); |
526 | 526 | } |
527 | 527 | unset( $this->mVars[$varname] ); |
528 | 528 | } |
Index: trunk/extensions/InlineScripts/interpreter/LRTable.php |
— | — | @@ -2,16 +2,16 @@ |
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Autogenerated SLR-table for inline scripts language. |
6 | | - * |
| 6 | + * |
7 | 7 | * You should not try to modify it manually (it's very easy to break). |
8 | 8 | * Use syntax.txt and buildLRTables.php insteaed. |
9 | | - * |
| 9 | + * |
10 | 10 | * Actions have following syntax |
11 | 11 | * array( 0, N ) means "shift and go to state N" |
12 | 12 | * array( 1, N ) means "reduce to production N" |
13 | 13 | * array( 2 ) means "accept" |
14 | 14 | * null means "error" |
15 | | - * |
| 15 | + * |
16 | 16 | * Terminals are referred by names, nonterminals - by ids. |
17 | 17 | * |
18 | 18 | * Variables has following format: |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | * * $productions is a ID -> array( nonterminal, body ) map. |
21 | 21 | * * Production body is an array of production symbols |
22 | 22 | * |
23 | | - * Generated on 2009-09-05 14:15. |
| 23 | + * Generated on 2011-08-03 09:33. |
24 | 24 | */ |
25 | 25 | |
26 | 26 | class ISLRTable { |
— | — | @@ -58,10 +58,10 @@ |
59 | 59 | 1 => array( 1, array( 1, 2 ) ), |
60 | 60 | 2 => array( 1, array( 2 ) ), |
61 | 61 | 3 => array( 2, array( 3, 'semicolon' ) ), |
62 | | - 4 => array( 2, array( 'if', 'leftbrace', 3, 'rightbrace', 2 ) ), |
63 | | - 5 => array( 2, array( 'if', 'leftbrace', 3, 'rightbrace', 2, 'else', 2 ) ), |
64 | | - 6 => array( 2, array( 'foreach', 'leftbrace', 4, 'in', 3, 'rightbrace', 2 ) ), |
65 | | - 7 => array( 2, array( 'try', 2, 'catch', 'leftbrace', 4, 'rightbrace', 2 ) ), |
| 62 | + 4 => array( 2, array( 'if', 'leftbracket', 3, 'rightbracket', 2 ) ), |
| 63 | + 5 => array( 2, array( 'if', 'leftbracket', 3, 'rightbracket', 2, 'else', 2 ) ), |
| 64 | + 6 => array( 2, array( 'for', 'leftbracket', 4, 'in', 3, 'rightbracket', 2 ) ), |
| 65 | + 7 => array( 2, array( 'try', 2, 'catch', 'leftbracket', 4, 'rightbracket', 2 ) ), |
66 | 66 | 8 => array( 2, array( 'leftcurly', 1, 'rightcurly' ) ), |
67 | 67 | 9 => array( 3, array( 5 ) ), |
68 | 68 | 10 => array( 5, array( 4, 'setto', 5 ) ), |
— | — | @@ -70,7 +70,7 @@ |
71 | 71 | 13 => array( 6, array( 7 ) ), |
72 | 72 | 14 => array( 7, array( 7, 'logicop', 8 ) ), |
73 | 73 | 15 => array( 7, array( 8 ) ), |
74 | | - 16 => array( 8, array( 8, 'comareop', 9 ) ), |
| 74 | + 16 => array( 8, array( 8, 'compareop', 9 ) ), |
75 | 75 | 17 => array( 8, array( 9 ) ), |
76 | 76 | 18 => array( 9, array( 10, 'equalsto', 10 ) ), |
77 | 77 | 19 => array( 9, array( 10 ) ), |
— | — | @@ -87,18 +87,18 @@ |
88 | 88 | 30 => array( 14, array( 15 ) ), |
89 | 89 | 31 => array( 15, array( 'sum', 16 ) ), |
90 | 90 | 32 => array( 15, array( 16 ) ), |
91 | | - 33 => array( 16, array( 'id', 'leftbrace', 17, 'rightbrace' ) ), |
92 | | - 34 => array( 16, array( 'id', 'leftbrace', 'rightbrace' ) ), |
93 | | - 35 => array( 16, array( 18, 'leftbrace', 4, 'rightbrace' ) ), |
| 91 | + 33 => array( 16, array( 'id', 'leftbracket', 17, 'rightbracket' ) ), |
| 92 | + 34 => array( 16, array( 'id', 'leftbracket', 'rightbracket' ) ), |
| 93 | + 35 => array( 16, array( 18, 'leftbracket', 4, 'rightbracket' ) ), |
94 | 94 | 36 => array( 16, array( 19 ) ), |
95 | 95 | 37 => array( 19, array( 4 ) ), |
96 | 96 | 38 => array( 19, array( 20 ) ), |
97 | 97 | 39 => array( 19, array( 'break' ) ), |
98 | 98 | 40 => array( 19, array( 'continue' ) ), |
99 | | - 41 => array( 19, array( 'leftbrace', 3, 'rightbrace' ) ), |
| 99 | + 41 => array( 19, array( 'leftbracket', 3, 'rightbracket' ) ), |
100 | 100 | 42 => array( 19, array( 'leftsquare', 21, 'rightsquare' ) ), |
101 | 101 | 43 => array( 18, array( 'isset' ) ), |
102 | | - 44 => array( 18, array( 'unset' ) ), |
| 102 | + 44 => array( 18, array( 'delete' ) ), |
103 | 103 | 45 => array( 21, array( 22 ) ), |
104 | 104 | 46 => array( 21, array( 17 ) ), |
105 | 105 | 47 => array( 17, array( 17, 'comma', 3 ) ), |
— | — | @@ -123,17 +123,17 @@ |
124 | 124 | static $action = array( |
125 | 125 | 0 => array( |
126 | 126 | 'if' => array( 0, 1 ), |
127 | | - 'foreach' => array( 0, 3 ), |
| 127 | + 'for' => array( 0, 3 ), |
128 | 128 | 'try' => array( 0, 4 ), |
129 | 129 | 'leftcurly' => array( 0, 5 ), |
130 | 130 | 'id' => array( 0, 8 ), |
131 | 131 | 'invert' => array( 0, 7 ), |
132 | 132 | 'sum' => array( 0, 6 ), |
133 | 133 | 'isset' => array( 0, 12 ), |
134 | | - 'unset' => array( 0, 13 ), |
| 134 | + 'delete' => array( 0, 13 ), |
135 | 135 | 'break' => array( 0, 9 ), |
136 | 136 | 'continue' => array( 0, 10 ), |
137 | | - 'leftbrace' => array( 0, 2 ), |
| 137 | + 'leftbracket' => array( 0, 2 ), |
138 | 138 | 'leftsquare' => array( 0, 11 ), |
139 | 139 | 'string' => array( 0, 14 ), |
140 | 140 | 'int' => array( 0, 15 ), |
— | — | @@ -143,17 +143,17 @@ |
144 | 144 | 'null' => array( 0, 19 ), |
145 | 145 | ), |
146 | 146 | 1 => array( |
147 | | - 'leftbrace' => array( 0, 39 ), |
| 147 | + 'leftbracket' => array( 0, 39 ), |
148 | 148 | ), |
149 | 149 | 2 => array( |
150 | 150 | 'id' => array( 0, 8 ), |
151 | 151 | 'invert' => array( 0, 7 ), |
152 | 152 | 'sum' => array( 0, 6 ), |
153 | 153 | 'isset' => array( 0, 12 ), |
154 | | - 'unset' => array( 0, 13 ), |
| 154 | + 'delete' => array( 0, 13 ), |
155 | 155 | 'break' => array( 0, 9 ), |
156 | 156 | 'continue' => array( 0, 10 ), |
157 | | - 'leftbrace' => array( 0, 2 ), |
| 157 | + 'leftbracket' => array( 0, 2 ), |
158 | 158 | 'leftsquare' => array( 0, 11 ), |
159 | 159 | 'string' => array( 0, 14 ), |
160 | 160 | 'int' => array( 0, 15 ), |
— | — | @@ -163,21 +163,21 @@ |
164 | 164 | 'null' => array( 0, 19 ), |
165 | 165 | ), |
166 | 166 | 3 => array( |
167 | | - 'leftbrace' => array( 0, 41 ), |
| 167 | + 'leftbracket' => array( 0, 41 ), |
168 | 168 | ), |
169 | 169 | 4 => array( |
170 | 170 | 'if' => array( 0, 1 ), |
171 | | - 'foreach' => array( 0, 3 ), |
| 171 | + 'for' => array( 0, 3 ), |
172 | 172 | 'try' => array( 0, 4 ), |
173 | 173 | 'leftcurly' => array( 0, 5 ), |
174 | 174 | 'id' => array( 0, 8 ), |
175 | 175 | 'invert' => array( 0, 7 ), |
176 | 176 | 'sum' => array( 0, 6 ), |
177 | 177 | 'isset' => array( 0, 12 ), |
178 | | - 'unset' => array( 0, 13 ), |
| 178 | + 'delete' => array( 0, 13 ), |
179 | 179 | 'break' => array( 0, 9 ), |
180 | 180 | 'continue' => array( 0, 10 ), |
181 | | - 'leftbrace' => array( 0, 2 ), |
| 181 | + 'leftbracket' => array( 0, 2 ), |
182 | 182 | 'leftsquare' => array( 0, 11 ), |
183 | 183 | 'string' => array( 0, 14 ), |
184 | 184 | 'int' => array( 0, 15 ), |
— | — | @@ -188,17 +188,17 @@ |
189 | 189 | ), |
190 | 190 | 5 => array( |
191 | 191 | 'if' => array( 0, 1 ), |
192 | | - 'foreach' => array( 0, 3 ), |
| 192 | + 'for' => array( 0, 3 ), |
193 | 193 | 'try' => array( 0, 4 ), |
194 | 194 | 'leftcurly' => array( 0, 5 ), |
195 | 195 | 'id' => array( 0, 8 ), |
196 | 196 | 'invert' => array( 0, 7 ), |
197 | 197 | 'sum' => array( 0, 6 ), |
198 | 198 | 'isset' => array( 0, 12 ), |
199 | | - 'unset' => array( 0, 13 ), |
| 199 | + 'delete' => array( 0, 13 ), |
200 | 200 | 'break' => array( 0, 9 ), |
201 | 201 | 'continue' => array( 0, 10 ), |
202 | | - 'leftbrace' => array( 0, 2 ), |
| 202 | + 'leftbracket' => array( 0, 2 ), |
203 | 203 | 'leftsquare' => array( 0, 11 ), |
204 | 204 | 'string' => array( 0, 14 ), |
205 | 205 | 'int' => array( 0, 15 ), |
— | — | @@ -210,10 +210,10 @@ |
211 | 211 | 6 => array( |
212 | 212 | 'id' => array( 0, 44 ), |
213 | 213 | 'isset' => array( 0, 12 ), |
214 | | - 'unset' => array( 0, 13 ), |
| 214 | + 'delete' => array( 0, 13 ), |
215 | 215 | 'break' => array( 0, 9 ), |
216 | 216 | 'continue' => array( 0, 10 ), |
217 | | - 'leftbrace' => array( 0, 2 ), |
| 217 | + 'leftbracket' => array( 0, 2 ), |
218 | 218 | 'leftsquare' => array( 0, 11 ), |
219 | 219 | 'string' => array( 0, 14 ), |
220 | 220 | 'int' => array( 0, 15 ), |
— | — | @@ -226,10 +226,10 @@ |
227 | 227 | 'sum' => array( 0, 6 ), |
228 | 228 | 'id' => array( 0, 44 ), |
229 | 229 | 'isset' => array( 0, 12 ), |
230 | | - 'unset' => array( 0, 13 ), |
| 230 | + 'delete' => array( 0, 13 ), |
231 | 231 | 'break' => array( 0, 9 ), |
232 | 232 | 'continue' => array( 0, 10 ), |
233 | | - 'leftbrace' => array( 0, 2 ), |
| 233 | + 'leftbracket' => array( 0, 2 ), |
234 | 234 | 'leftsquare' => array( 0, 11 ), |
235 | 235 | 'string' => array( 0, 14 ), |
236 | 236 | 'int' => array( 0, 15 ), |
— | — | @@ -240,7 +240,7 @@ |
241 | 241 | ), |
242 | 242 | 8 => array( |
243 | 243 | 'in' => array( 1, 59 ), |
244 | | - 'rightbrace' => array( 1, 59 ), |
| 244 | + 'rightbracket' => array( 1, 59 ), |
245 | 245 | 'setto' => array( 1, 59 ), |
246 | 246 | 'pow' => array( 1, 59 ), |
247 | 247 | 'equalsto' => array( 1, 59 ), |
— | — | @@ -248,13 +248,13 @@ |
249 | 249 | 'semicolon' => array( 1, 59 ), |
250 | 250 | 'colon' => array( 1, 59 ), |
251 | 251 | 'logicop' => array( 1, 59 ), |
252 | | - 'comareop' => array( 1, 59 ), |
| 252 | + 'compareop' => array( 1, 59 ), |
253 | 253 | 'sum' => array( 1, 59 ), |
254 | 254 | 'mul' => array( 1, 59 ), |
255 | 255 | 'contains' => array( 1, 59 ), |
256 | 256 | 'rightsquare' => array( 1, 59 ), |
257 | 257 | 'comma' => array( 1, 59 ), |
258 | | - 'leftbrace' => array( 0, 48 ), |
| 258 | + 'leftbracket' => array( 0, 48 ), |
259 | 259 | 'leftsquare' => array( 0, 49 ), |
260 | 260 | ), |
261 | 261 | 9 => array( |
— | — | @@ -263,10 +263,10 @@ |
264 | 264 | 'equalsto' => array( 1, 39 ), |
265 | 265 | 'trinary' => array( 1, 39 ), |
266 | 266 | 'semicolon' => array( 1, 39 ), |
267 | | - 'rightbrace' => array( 1, 39 ), |
| 267 | + 'rightbracket' => array( 1, 39 ), |
268 | 268 | 'colon' => array( 1, 39 ), |
269 | 269 | 'logicop' => array( 1, 39 ), |
270 | | - 'comareop' => array( 1, 39 ), |
| 270 | + 'compareop' => array( 1, 39 ), |
271 | 271 | 'sum' => array( 1, 39 ), |
272 | 272 | 'mul' => array( 1, 39 ), |
273 | 273 | 'contains' => array( 1, 39 ), |
— | — | @@ -279,10 +279,10 @@ |
280 | 280 | 'equalsto' => array( 1, 40 ), |
281 | 281 | 'trinary' => array( 1, 40 ), |
282 | 282 | 'semicolon' => array( 1, 40 ), |
283 | | - 'rightbrace' => array( 1, 40 ), |
| 283 | + 'rightbracket' => array( 1, 40 ), |
284 | 284 | 'colon' => array( 1, 40 ), |
285 | 285 | 'logicop' => array( 1, 40 ), |
286 | | - 'comareop' => array( 1, 40 ), |
| 286 | + 'compareop' => array( 1, 40 ), |
287 | 287 | 'sum' => array( 1, 40 ), |
288 | 288 | 'mul' => array( 1, 40 ), |
289 | 289 | 'contains' => array( 1, 40 ), |
— | — | @@ -294,10 +294,10 @@ |
295 | 295 | 'invert' => array( 0, 7 ), |
296 | 296 | 'sum' => array( 0, 6 ), |
297 | 297 | 'isset' => array( 0, 12 ), |
298 | | - 'unset' => array( 0, 13 ), |
| 298 | + 'delete' => array( 0, 13 ), |
299 | 299 | 'break' => array( 0, 9 ), |
300 | 300 | 'continue' => array( 0, 10 ), |
301 | | - 'leftbrace' => array( 0, 2 ), |
| 301 | + 'leftbracket' => array( 0, 2 ), |
302 | 302 | 'leftsquare' => array( 0, 11 ), |
303 | 303 | 'string' => array( 0, 14 ), |
304 | 304 | 'int' => array( 0, 15 ), |
— | — | @@ -307,10 +307,10 @@ |
308 | 308 | 'null' => array( 0, 19 ), |
309 | 309 | ), |
310 | 310 | 12 => array( |
311 | | - 'leftbrace' => array( 1, 43 ), |
| 311 | + 'leftbracket' => array( 1, 43 ), |
312 | 312 | ), |
313 | 313 | 13 => array( |
314 | | - 'leftbrace' => array( 1, 44 ), |
| 314 | + 'leftbracket' => array( 1, 44 ), |
315 | 315 | ), |
316 | 316 | 14 => array( |
317 | 317 | 'in' => array( 1, 52 ), |
— | — | @@ -318,10 +318,10 @@ |
319 | 319 | 'equalsto' => array( 1, 52 ), |
320 | 320 | 'trinary' => array( 1, 52 ), |
321 | 321 | 'semicolon' => array( 1, 52 ), |
322 | | - 'rightbrace' => array( 1, 52 ), |
| 322 | + 'rightbracket' => array( 1, 52 ), |
323 | 323 | 'colon' => array( 1, 52 ), |
324 | 324 | 'logicop' => array( 1, 52 ), |
325 | | - 'comareop' => array( 1, 52 ), |
| 325 | + 'compareop' => array( 1, 52 ), |
326 | 326 | 'sum' => array( 1, 52 ), |
327 | 327 | 'mul' => array( 1, 52 ), |
328 | 328 | 'contains' => array( 1, 52 ), |
— | — | @@ -334,10 +334,10 @@ |
335 | 335 | 'equalsto' => array( 1, 53 ), |
336 | 336 | 'trinary' => array( 1, 53 ), |
337 | 337 | 'semicolon' => array( 1, 53 ), |
338 | | - 'rightbrace' => array( 1, 53 ), |
| 338 | + 'rightbracket' => array( 1, 53 ), |
339 | 339 | 'colon' => array( 1, 53 ), |
340 | 340 | 'logicop' => array( 1, 53 ), |
341 | | - 'comareop' => array( 1, 53 ), |
| 341 | + 'compareop' => array( 1, 53 ), |
342 | 342 | 'sum' => array( 1, 53 ), |
343 | 343 | 'mul' => array( 1, 53 ), |
344 | 344 | 'contains' => array( 1, 53 ), |
— | — | @@ -350,10 +350,10 @@ |
351 | 351 | 'equalsto' => array( 1, 54 ), |
352 | 352 | 'trinary' => array( 1, 54 ), |
353 | 353 | 'semicolon' => array( 1, 54 ), |
354 | | - 'rightbrace' => array( 1, 54 ), |
| 354 | + 'rightbracket' => array( 1, 54 ), |
355 | 355 | 'colon' => array( 1, 54 ), |
356 | 356 | 'logicop' => array( 1, 54 ), |
357 | | - 'comareop' => array( 1, 54 ), |
| 357 | + 'compareop' => array( 1, 54 ), |
358 | 358 | 'sum' => array( 1, 54 ), |
359 | 359 | 'mul' => array( 1, 54 ), |
360 | 360 | 'contains' => array( 1, 54 ), |
— | — | @@ -366,10 +366,10 @@ |
367 | 367 | 'equalsto' => array( 1, 55 ), |
368 | 368 | 'trinary' => array( 1, 55 ), |
369 | 369 | 'semicolon' => array( 1, 55 ), |
370 | | - 'rightbrace' => array( 1, 55 ), |
| 370 | + 'rightbracket' => array( 1, 55 ), |
371 | 371 | 'colon' => array( 1, 55 ), |
372 | 372 | 'logicop' => array( 1, 55 ), |
373 | | - 'comareop' => array( 1, 55 ), |
| 373 | + 'compareop' => array( 1, 55 ), |
374 | 374 | 'sum' => array( 1, 55 ), |
375 | 375 | 'mul' => array( 1, 55 ), |
376 | 376 | 'contains' => array( 1, 55 ), |
— | — | @@ -382,10 +382,10 @@ |
383 | 383 | 'equalsto' => array( 1, 56 ), |
384 | 384 | 'trinary' => array( 1, 56 ), |
385 | 385 | 'semicolon' => array( 1, 56 ), |
386 | | - 'rightbrace' => array( 1, 56 ), |
| 386 | + 'rightbracket' => array( 1, 56 ), |
387 | 387 | 'colon' => array( 1, 56 ), |
388 | 388 | 'logicop' => array( 1, 56 ), |
389 | | - 'comareop' => array( 1, 56 ), |
| 389 | + 'compareop' => array( 1, 56 ), |
390 | 390 | 'sum' => array( 1, 56 ), |
391 | 391 | 'mul' => array( 1, 56 ), |
392 | 392 | 'contains' => array( 1, 56 ), |
— | — | @@ -398,10 +398,10 @@ |
399 | 399 | 'equalsto' => array( 1, 57 ), |
400 | 400 | 'trinary' => array( 1, 57 ), |
401 | 401 | 'semicolon' => array( 1, 57 ), |
402 | | - 'rightbrace' => array( 1, 57 ), |
| 402 | + 'rightbracket' => array( 1, 57 ), |
403 | 403 | 'colon' => array( 1, 57 ), |
404 | 404 | 'logicop' => array( 1, 57 ), |
405 | | - 'comareop' => array( 1, 57 ), |
| 405 | + 'compareop' => array( 1, 57 ), |
406 | 406 | 'sum' => array( 1, 57 ), |
407 | 407 | 'mul' => array( 1, 57 ), |
408 | 408 | 'contains' => array( 1, 57 ), |
— | — | @@ -411,17 +411,17 @@ |
412 | 412 | 20 => array( |
413 | 413 | '$' => array( 2, null ), |
414 | 414 | 'if' => array( 0, 1 ), |
415 | | - 'foreach' => array( 0, 3 ), |
| 415 | + 'for' => array( 0, 3 ), |
416 | 416 | 'try' => array( 0, 4 ), |
417 | 417 | 'leftcurly' => array( 0, 5 ), |
418 | 418 | 'id' => array( 0, 8 ), |
419 | 419 | 'invert' => array( 0, 7 ), |
420 | 420 | 'sum' => array( 0, 6 ), |
421 | 421 | 'isset' => array( 0, 12 ), |
422 | | - 'unset' => array( 0, 13 ), |
| 422 | + 'delete' => array( 0, 13 ), |
423 | 423 | 'break' => array( 0, 9 ), |
424 | 424 | 'continue' => array( 0, 10 ), |
425 | | - 'leftbrace' => array( 0, 2 ), |
| 425 | + 'leftbracket' => array( 0, 2 ), |
426 | 426 | 'leftsquare' => array( 0, 11 ), |
427 | 427 | 'string' => array( 0, 14 ), |
428 | 428 | 'int' => array( 0, 15 ), |
— | — | @@ -433,17 +433,17 @@ |
434 | 434 | 21 => array( |
435 | 435 | '$' => array( 1, 2 ), |
436 | 436 | 'if' => array( 1, 2 ), |
437 | | - 'foreach' => array( 1, 2 ), |
| 437 | + 'for' => array( 1, 2 ), |
438 | 438 | 'try' => array( 1, 2 ), |
439 | 439 | 'leftcurly' => array( 1, 2 ), |
440 | 440 | 'id' => array( 1, 2 ), |
441 | 441 | 'invert' => array( 1, 2 ), |
442 | 442 | 'sum' => array( 1, 2 ), |
443 | 443 | 'isset' => array( 1, 2 ), |
444 | | - 'unset' => array( 1, 2 ), |
| 444 | + 'delete' => array( 1, 2 ), |
445 | 445 | 'break' => array( 1, 2 ), |
446 | 446 | 'continue' => array( 1, 2 ), |
447 | | - 'leftbrace' => array( 1, 2 ), |
| 447 | + 'leftbracket' => array( 1, 2 ), |
448 | 448 | 'leftsquare' => array( 1, 2 ), |
449 | 449 | 'string' => array( 1, 2 ), |
450 | 450 | 'int' => array( 1, 2 ), |
— | — | @@ -463,10 +463,10 @@ |
464 | 464 | 'equalsto' => array( 1, 37 ), |
465 | 465 | 'trinary' => array( 1, 37 ), |
466 | 466 | 'semicolon' => array( 1, 37 ), |
467 | | - 'rightbrace' => array( 1, 37 ), |
| 467 | + 'rightbracket' => array( 1, 37 ), |
468 | 468 | 'colon' => array( 1, 37 ), |
469 | 469 | 'logicop' => array( 1, 37 ), |
470 | | - 'comareop' => array( 1, 37 ), |
| 470 | + 'compareop' => array( 1, 37 ), |
471 | 471 | 'sum' => array( 1, 37 ), |
472 | 472 | 'mul' => array( 1, 37 ), |
473 | 473 | 'contains' => array( 1, 37 ), |
— | — | @@ -475,14 +475,14 @@ |
476 | 476 | ), |
477 | 477 | 24 => array( |
478 | 478 | 'semicolon' => array( 1, 9 ), |
479 | | - 'rightbrace' => array( 1, 9 ), |
| 479 | + 'rightbracket' => array( 1, 9 ), |
480 | 480 | 'rightsquare' => array( 1, 9 ), |
481 | 481 | 'comma' => array( 1, 9 ), |
482 | 482 | 'colon' => array( 1, 9 ), |
483 | 483 | ), |
484 | 484 | 25 => array( |
485 | 485 | 'semicolon' => array( 1, 11 ), |
486 | | - 'rightbrace' => array( 1, 11 ), |
| 486 | + 'rightbracket' => array( 1, 11 ), |
487 | 487 | 'rightsquare' => array( 1, 11 ), |
488 | 488 | 'comma' => array( 1, 11 ), |
489 | 489 | 'colon' => array( 1, 11 ), |
— | — | @@ -490,7 +490,7 @@ |
491 | 491 | 26 => array( |
492 | 492 | 'trinary' => array( 0, 60 ), |
493 | 493 | 'semicolon' => array( 1, 13 ), |
494 | | - 'rightbrace' => array( 1, 13 ), |
| 494 | + 'rightbracket' => array( 1, 13 ), |
495 | 495 | 'colon' => array( 1, 13 ), |
496 | 496 | 'rightsquare' => array( 1, 13 ), |
497 | 497 | 'comma' => array( 1, 13 ), |
— | — | @@ -499,20 +499,20 @@ |
500 | 500 | 27 => array( |
501 | 501 | 'trinary' => array( 1, 15 ), |
502 | 502 | 'semicolon' => array( 1, 15 ), |
503 | | - 'rightbrace' => array( 1, 15 ), |
| 503 | + 'rightbracket' => array( 1, 15 ), |
504 | 504 | 'colon' => array( 1, 15 ), |
505 | 505 | 'logicop' => array( 1, 15 ), |
506 | 506 | 'rightsquare' => array( 1, 15 ), |
507 | 507 | 'comma' => array( 1, 15 ), |
508 | | - 'comareop' => array( 0, 62 ), |
| 508 | + 'compareop' => array( 0, 62 ), |
509 | 509 | ), |
510 | 510 | 28 => array( |
511 | 511 | 'trinary' => array( 1, 17 ), |
512 | 512 | 'semicolon' => array( 1, 17 ), |
513 | | - 'rightbrace' => array( 1, 17 ), |
| 513 | + 'rightbracket' => array( 1, 17 ), |
514 | 514 | 'colon' => array( 1, 17 ), |
515 | 515 | 'logicop' => array( 1, 17 ), |
516 | | - 'comareop' => array( 1, 17 ), |
| 516 | + 'compareop' => array( 1, 17 ), |
517 | 517 | 'rightsquare' => array( 1, 17 ), |
518 | 518 | 'comma' => array( 1, 17 ), |
519 | 519 | ), |
— | — | @@ -520,10 +520,10 @@ |
521 | 521 | 'equalsto' => array( 0, 63 ), |
522 | 522 | 'trinary' => array( 1, 19 ), |
523 | 523 | 'semicolon' => array( 1, 19 ), |
524 | | - 'rightbrace' => array( 1, 19 ), |
| 524 | + 'rightbracket' => array( 1, 19 ), |
525 | 525 | 'colon' => array( 1, 19 ), |
526 | 526 | 'logicop' => array( 1, 19 ), |
527 | | - 'comareop' => array( 1, 19 ), |
| 527 | + 'compareop' => array( 1, 19 ), |
528 | 528 | 'rightsquare' => array( 1, 19 ), |
529 | 529 | 'comma' => array( 1, 19 ), |
530 | 530 | 'sum' => array( 0, 64 ), |
— | — | @@ -532,10 +532,10 @@ |
533 | 533 | 'equalsto' => array( 1, 21 ), |
534 | 534 | 'trinary' => array( 1, 21 ), |
535 | 535 | 'semicolon' => array( 1, 21 ), |
536 | | - 'rightbrace' => array( 1, 21 ), |
| 536 | + 'rightbracket' => array( 1, 21 ), |
537 | 537 | 'colon' => array( 1, 21 ), |
538 | 538 | 'logicop' => array( 1, 21 ), |
539 | | - 'comareop' => array( 1, 21 ), |
| 539 | + 'compareop' => array( 1, 21 ), |
540 | 540 | 'sum' => array( 1, 21 ), |
541 | 541 | 'rightsquare' => array( 1, 21 ), |
542 | 542 | 'comma' => array( 1, 21 ), |
— | — | @@ -545,10 +545,10 @@ |
546 | 546 | 'equalsto' => array( 1, 23 ), |
547 | 547 | 'trinary' => array( 1, 23 ), |
548 | 548 | 'semicolon' => array( 1, 23 ), |
549 | | - 'rightbrace' => array( 1, 23 ), |
| 549 | + 'rightbracket' => array( 1, 23 ), |
550 | 550 | 'colon' => array( 1, 23 ), |
551 | 551 | 'logicop' => array( 1, 23 ), |
552 | | - 'comareop' => array( 1, 23 ), |
| 552 | + 'compareop' => array( 1, 23 ), |
553 | 553 | 'sum' => array( 1, 23 ), |
554 | 554 | 'mul' => array( 1, 23 ), |
555 | 555 | 'rightsquare' => array( 1, 23 ), |
— | — | @@ -559,10 +559,10 @@ |
560 | 560 | 'equalsto' => array( 1, 25 ), |
561 | 561 | 'trinary' => array( 1, 25 ), |
562 | 562 | 'semicolon' => array( 1, 25 ), |
563 | | - 'rightbrace' => array( 1, 25 ), |
| 563 | + 'rightbracket' => array( 1, 25 ), |
564 | 564 | 'colon' => array( 1, 25 ), |
565 | 565 | 'logicop' => array( 1, 25 ), |
566 | | - 'comareop' => array( 1, 25 ), |
| 566 | + 'compareop' => array( 1, 25 ), |
567 | 567 | 'sum' => array( 1, 25 ), |
568 | 568 | 'mul' => array( 1, 25 ), |
569 | 569 | 'rightsquare' => array( 1, 25 ), |
— | — | @@ -573,10 +573,10 @@ |
574 | 574 | 'equalsto' => array( 1, 27 ), |
575 | 575 | 'trinary' => array( 1, 27 ), |
576 | 576 | 'semicolon' => array( 1, 27 ), |
577 | | - 'rightbrace' => array( 1, 27 ), |
| 577 | + 'rightbracket' => array( 1, 27 ), |
578 | 578 | 'colon' => array( 1, 27 ), |
579 | 579 | 'logicop' => array( 1, 27 ), |
580 | | - 'comareop' => array( 1, 27 ), |
| 580 | + 'compareop' => array( 1, 27 ), |
581 | 581 | 'sum' => array( 1, 27 ), |
582 | 582 | 'mul' => array( 1, 27 ), |
583 | 583 | 'rightsquare' => array( 1, 27 ), |
— | — | @@ -589,10 +589,10 @@ |
590 | 590 | 'equalsto' => array( 1, 30 ), |
591 | 591 | 'trinary' => array( 1, 30 ), |
592 | 592 | 'semicolon' => array( 1, 30 ), |
593 | | - 'rightbrace' => array( 1, 30 ), |
| 593 | + 'rightbracket' => array( 1, 30 ), |
594 | 594 | 'colon' => array( 1, 30 ), |
595 | 595 | 'logicop' => array( 1, 30 ), |
596 | | - 'comareop' => array( 1, 30 ), |
| 596 | + 'compareop' => array( 1, 30 ), |
597 | 597 | 'sum' => array( 1, 30 ), |
598 | 598 | 'mul' => array( 1, 30 ), |
599 | 599 | 'rightsquare' => array( 1, 30 ), |
— | — | @@ -604,10 +604,10 @@ |
605 | 605 | 'equalsto' => array( 1, 32 ), |
606 | 606 | 'trinary' => array( 1, 32 ), |
607 | 607 | 'semicolon' => array( 1, 32 ), |
608 | | - 'rightbrace' => array( 1, 32 ), |
| 608 | + 'rightbracket' => array( 1, 32 ), |
609 | 609 | 'colon' => array( 1, 32 ), |
610 | 610 | 'logicop' => array( 1, 32 ), |
611 | | - 'comareop' => array( 1, 32 ), |
| 611 | + 'compareop' => array( 1, 32 ), |
612 | 612 | 'sum' => array( 1, 32 ), |
613 | 613 | 'mul' => array( 1, 32 ), |
614 | 614 | 'contains' => array( 1, 32 ), |
— | — | @@ -615,7 +615,7 @@ |
616 | 616 | 'comma' => array( 1, 32 ), |
617 | 617 | ), |
618 | 618 | 36 => array( |
619 | | - 'leftbrace' => array( 0, 69 ), |
| 619 | + 'leftbracket' => array( 0, 69 ), |
620 | 620 | ), |
621 | 621 | 37 => array( |
622 | 622 | 'in' => array( 1, 36 ), |
— | — | @@ -623,10 +623,10 @@ |
624 | 624 | 'equalsto' => array( 1, 36 ), |
625 | 625 | 'trinary' => array( 1, 36 ), |
626 | 626 | 'semicolon' => array( 1, 36 ), |
627 | | - 'rightbrace' => array( 1, 36 ), |
| 627 | + 'rightbracket' => array( 1, 36 ), |
628 | 628 | 'colon' => array( 1, 36 ), |
629 | 629 | 'logicop' => array( 1, 36 ), |
630 | | - 'comareop' => array( 1, 36 ), |
| 630 | + 'compareop' => array( 1, 36 ), |
631 | 631 | 'sum' => array( 1, 36 ), |
632 | 632 | 'mul' => array( 1, 36 ), |
633 | 633 | 'contains' => array( 1, 36 ), |
— | — | @@ -639,10 +639,10 @@ |
640 | 640 | 'equalsto' => array( 1, 38 ), |
641 | 641 | 'trinary' => array( 1, 38 ), |
642 | 642 | 'semicolon' => array( 1, 38 ), |
643 | | - 'rightbrace' => array( 1, 38 ), |
| 643 | + 'rightbracket' => array( 1, 38 ), |
644 | 644 | 'colon' => array( 1, 38 ), |
645 | 645 | 'logicop' => array( 1, 38 ), |
646 | | - 'comareop' => array( 1, 38 ), |
| 646 | + 'compareop' => array( 1, 38 ), |
647 | 647 | 'sum' => array( 1, 38 ), |
648 | 648 | 'mul' => array( 1, 38 ), |
649 | 649 | 'contains' => array( 1, 38 ), |
— | — | @@ -654,10 +654,10 @@ |
655 | 655 | 'invert' => array( 0, 7 ), |
656 | 656 | 'sum' => array( 0, 6 ), |
657 | 657 | 'isset' => array( 0, 12 ), |
658 | | - 'unset' => array( 0, 13 ), |
| 658 | + 'delete' => array( 0, 13 ), |
659 | 659 | 'break' => array( 0, 9 ), |
660 | 660 | 'continue' => array( 0, 10 ), |
661 | | - 'leftbrace' => array( 0, 2 ), |
| 661 | + 'leftbracket' => array( 0, 2 ), |
662 | 662 | 'leftsquare' => array( 0, 11 ), |
663 | 663 | 'string' => array( 0, 14 ), |
664 | 664 | 'int' => array( 0, 15 ), |
— | — | @@ -667,7 +667,7 @@ |
668 | 668 | 'null' => array( 0, 19 ), |
669 | 669 | ), |
670 | 670 | 40 => array( |
671 | | - 'rightbrace' => array( 0, 71 ), |
| 671 | + 'rightbracket' => array( 0, 71 ), |
672 | 672 | ), |
673 | 673 | 41 => array( |
674 | 674 | 'id' => array( 0, 72 ), |
— | — | @@ -678,17 +678,17 @@ |
679 | 679 | 43 => array( |
680 | 680 | 'rightcurly' => array( 0, 75 ), |
681 | 681 | 'if' => array( 0, 1 ), |
682 | | - 'foreach' => array( 0, 3 ), |
| 682 | + 'for' => array( 0, 3 ), |
683 | 683 | 'try' => array( 0, 4 ), |
684 | 684 | 'leftcurly' => array( 0, 5 ), |
685 | 685 | 'id' => array( 0, 8 ), |
686 | 686 | 'invert' => array( 0, 7 ), |
687 | 687 | 'sum' => array( 0, 6 ), |
688 | 688 | 'isset' => array( 0, 12 ), |
689 | | - 'unset' => array( 0, 13 ), |
| 689 | + 'delete' => array( 0, 13 ), |
690 | 690 | 'break' => array( 0, 9 ), |
691 | 691 | 'continue' => array( 0, 10 ), |
692 | | - 'leftbrace' => array( 0, 2 ), |
| 692 | + 'leftbracket' => array( 0, 2 ), |
693 | 693 | 'leftsquare' => array( 0, 11 ), |
694 | 694 | 'string' => array( 0, 14 ), |
695 | 695 | 'int' => array( 0, 15 ), |
— | — | @@ -698,9 +698,9 @@ |
699 | 699 | 'null' => array( 0, 19 ), |
700 | 700 | ), |
701 | 701 | 44 => array( |
702 | | - 'leftbrace' => array( 0, 48 ), |
| 702 | + 'leftbracket' => array( 0, 48 ), |
703 | 703 | 'in' => array( 1, 59 ), |
704 | | - 'rightbrace' => array( 1, 59 ), |
| 704 | + 'rightbracket' => array( 1, 59 ), |
705 | 705 | 'setto' => array( 1, 59 ), |
706 | 706 | 'pow' => array( 1, 59 ), |
707 | 707 | 'equalsto' => array( 1, 59 ), |
— | — | @@ -708,7 +708,7 @@ |
709 | 709 | 'semicolon' => array( 1, 59 ), |
710 | 710 | 'colon' => array( 1, 59 ), |
711 | 711 | 'logicop' => array( 1, 59 ), |
712 | | - 'comareop' => array( 1, 59 ), |
| 712 | + 'compareop' => array( 1, 59 ), |
713 | 713 | 'sum' => array( 1, 59 ), |
714 | 714 | 'mul' => array( 1, 59 ), |
715 | 715 | 'contains' => array( 1, 59 ), |
— | — | @@ -722,10 +722,10 @@ |
723 | 723 | 'equalsto' => array( 1, 37 ), |
724 | 724 | 'trinary' => array( 1, 37 ), |
725 | 725 | 'semicolon' => array( 1, 37 ), |
726 | | - 'rightbrace' => array( 1, 37 ), |
| 726 | + 'rightbracket' => array( 1, 37 ), |
727 | 727 | 'colon' => array( 1, 37 ), |
728 | 728 | 'logicop' => array( 1, 37 ), |
729 | | - 'comareop' => array( 1, 37 ), |
| 729 | + 'compareop' => array( 1, 37 ), |
730 | 730 | 'sum' => array( 1, 37 ), |
731 | 731 | 'mul' => array( 1, 37 ), |
732 | 732 | 'contains' => array( 1, 37 ), |
— | — | @@ -738,10 +738,10 @@ |
739 | 739 | 'equalsto' => array( 1, 31 ), |
740 | 740 | 'trinary' => array( 1, 31 ), |
741 | 741 | 'semicolon' => array( 1, 31 ), |
742 | | - 'rightbrace' => array( 1, 31 ), |
| 742 | + 'rightbracket' => array( 1, 31 ), |
743 | 743 | 'colon' => array( 1, 31 ), |
744 | 744 | 'logicop' => array( 1, 31 ), |
745 | | - 'comareop' => array( 1, 31 ), |
| 745 | + 'compareop' => array( 1, 31 ), |
746 | 746 | 'sum' => array( 1, 31 ), |
747 | 747 | 'mul' => array( 1, 31 ), |
748 | 748 | 'contains' => array( 1, 31 ), |
— | — | @@ -753,25 +753,25 @@ |
754 | 754 | 'equalsto' => array( 1, 26 ), |
755 | 755 | 'trinary' => array( 1, 26 ), |
756 | 756 | 'semicolon' => array( 1, 26 ), |
757 | | - 'rightbrace' => array( 1, 26 ), |
| 757 | + 'rightbracket' => array( 1, 26 ), |
758 | 758 | 'colon' => array( 1, 26 ), |
759 | 759 | 'logicop' => array( 1, 26 ), |
760 | | - 'comareop' => array( 1, 26 ), |
| 760 | + 'compareop' => array( 1, 26 ), |
761 | 761 | 'sum' => array( 1, 26 ), |
762 | 762 | 'mul' => array( 1, 26 ), |
763 | 763 | 'rightsquare' => array( 1, 26 ), |
764 | 764 | 'comma' => array( 1, 26 ), |
765 | 765 | ), |
766 | 766 | 48 => array( |
767 | | - 'rightbrace' => array( 0, 76 ), |
| 767 | + 'rightbracket' => array( 0, 76 ), |
768 | 768 | 'id' => array( 0, 8 ), |
769 | 769 | 'invert' => array( 0, 7 ), |
770 | 770 | 'sum' => array( 0, 6 ), |
771 | 771 | 'isset' => array( 0, 12 ), |
772 | | - 'unset' => array( 0, 13 ), |
| 772 | + 'delete' => array( 0, 13 ), |
773 | 773 | 'break' => array( 0, 9 ), |
774 | 774 | 'continue' => array( 0, 10 ), |
775 | | - 'leftbrace' => array( 0, 2 ), |
| 775 | + 'leftbracket' => array( 0, 2 ), |
776 | 776 | 'leftsquare' => array( 0, 11 ), |
777 | 777 | 'string' => array( 0, 14 ), |
778 | 778 | 'int' => array( 0, 15 ), |
— | — | @@ -786,10 +786,10 @@ |
787 | 787 | 'invert' => array( 0, 7 ), |
788 | 788 | 'sum' => array( 0, 6 ), |
789 | 789 | 'isset' => array( 0, 12 ), |
790 | | - 'unset' => array( 0, 13 ), |
| 790 | + 'delete' => array( 0, 13 ), |
791 | 791 | 'break' => array( 0, 9 ), |
792 | 792 | 'continue' => array( 0, 10 ), |
793 | | - 'leftbrace' => array( 0, 2 ), |
| 793 | + 'leftbracket' => array( 0, 2 ), |
794 | 794 | 'leftsquare' => array( 0, 11 ), |
795 | 795 | 'string' => array( 0, 14 ), |
796 | 796 | 'int' => array( 0, 15 ), |
— | — | @@ -800,7 +800,7 @@ |
801 | 801 | ), |
802 | 802 | 50 => array( |
803 | 803 | 'in' => array( 1, 58 ), |
804 | | - 'rightbrace' => array( 1, 58 ), |
| 804 | + 'rightbracket' => array( 1, 58 ), |
805 | 805 | 'setto' => array( 1, 58 ), |
806 | 806 | 'pow' => array( 1, 58 ), |
807 | 807 | 'equalsto' => array( 1, 58 ), |
— | — | @@ -808,7 +808,7 @@ |
809 | 809 | 'semicolon' => array( 1, 58 ), |
810 | 810 | 'colon' => array( 1, 58 ), |
811 | 811 | 'logicop' => array( 1, 58 ), |
812 | | - 'comareop' => array( 1, 58 ), |
| 812 | + 'compareop' => array( 1, 58 ), |
813 | 813 | 'sum' => array( 1, 58 ), |
814 | 814 | 'mul' => array( 1, 58 ), |
815 | 815 | 'contains' => array( 1, 58 ), |
— | — | @@ -817,7 +817,7 @@ |
818 | 818 | ), |
819 | 819 | 51 => array( |
820 | 820 | 'in' => array( 1, 61 ), |
821 | | - 'rightbrace' => array( 1, 61 ), |
| 821 | + 'rightbracket' => array( 1, 61 ), |
822 | 822 | 'setto' => array( 1, 61 ), |
823 | 823 | 'pow' => array( 1, 61 ), |
824 | 824 | 'equalsto' => array( 1, 61 ), |
— | — | @@ -825,7 +825,7 @@ |
826 | 826 | 'semicolon' => array( 1, 61 ), |
827 | 827 | 'colon' => array( 1, 61 ), |
828 | 828 | 'logicop' => array( 1, 61 ), |
829 | | - 'comareop' => array( 1, 61 ), |
| 829 | + 'compareop' => array( 1, 61 ), |
830 | 830 | 'sum' => array( 1, 61 ), |
831 | 831 | 'mul' => array( 1, 61 ), |
832 | 832 | 'contains' => array( 1, 61 ), |
— | — | @@ -834,7 +834,7 @@ |
835 | 835 | 'leftsquare' => array( 0, 49 ), |
836 | 836 | ), |
837 | 837 | 52 => array( |
838 | | - 'rightbrace' => array( 1, 48 ), |
| 838 | + 'rightbracket' => array( 1, 48 ), |
839 | 839 | 'rightsquare' => array( 1, 48 ), |
840 | 840 | 'comma' => array( 1, 48 ), |
841 | 841 | 'colon' => array( 0, 82 ), |
— | — | @@ -857,17 +857,17 @@ |
858 | 858 | 57 => array( |
859 | 859 | '$' => array( 1, 1 ), |
860 | 860 | 'if' => array( 1, 1 ), |
861 | | - 'foreach' => array( 1, 1 ), |
| 861 | + 'for' => array( 1, 1 ), |
862 | 862 | 'try' => array( 1, 1 ), |
863 | 863 | 'leftcurly' => array( 1, 1 ), |
864 | 864 | 'id' => array( 1, 1 ), |
865 | 865 | 'invert' => array( 1, 1 ), |
866 | 866 | 'sum' => array( 1, 1 ), |
867 | 867 | 'isset' => array( 1, 1 ), |
868 | | - 'unset' => array( 1, 1 ), |
| 868 | + 'delete' => array( 1, 1 ), |
869 | 869 | 'break' => array( 1, 1 ), |
870 | 870 | 'continue' => array( 1, 1 ), |
871 | | - 'leftbrace' => array( 1, 1 ), |
| 871 | + 'leftbracket' => array( 1, 1 ), |
872 | 872 | 'leftsquare' => array( 1, 1 ), |
873 | 873 | 'string' => array( 1, 1 ), |
874 | 874 | 'int' => array( 1, 1 ), |
— | — | @@ -880,17 +880,17 @@ |
881 | 881 | 58 => array( |
882 | 882 | '$' => array( 1, 3 ), |
883 | 883 | 'if' => array( 1, 3 ), |
884 | | - 'foreach' => array( 1, 3 ), |
| 884 | + 'for' => array( 1, 3 ), |
885 | 885 | 'try' => array( 1, 3 ), |
886 | 886 | 'leftcurly' => array( 1, 3 ), |
887 | 887 | 'id' => array( 1, 3 ), |
888 | 888 | 'invert' => array( 1, 3 ), |
889 | 889 | 'sum' => array( 1, 3 ), |
890 | 890 | 'isset' => array( 1, 3 ), |
891 | | - 'unset' => array( 1, 3 ), |
| 891 | + 'delete' => array( 1, 3 ), |
892 | 892 | 'break' => array( 1, 3 ), |
893 | 893 | 'continue' => array( 1, 3 ), |
894 | | - 'leftbrace' => array( 1, 3 ), |
| 894 | + 'leftbracket' => array( 1, 3 ), |
895 | 895 | 'leftsquare' => array( 1, 3 ), |
896 | 896 | 'string' => array( 1, 3 ), |
897 | 897 | 'int' => array( 1, 3 ), |
— | — | @@ -907,10 +907,10 @@ |
908 | 908 | 'invert' => array( 0, 7 ), |
909 | 909 | 'sum' => array( 0, 6 ), |
910 | 910 | 'isset' => array( 0, 12 ), |
911 | | - 'unset' => array( 0, 13 ), |
| 911 | + 'delete' => array( 0, 13 ), |
912 | 912 | 'break' => array( 0, 9 ), |
913 | 913 | 'continue' => array( 0, 10 ), |
914 | | - 'leftbrace' => array( 0, 2 ), |
| 914 | + 'leftbracket' => array( 0, 2 ), |
915 | 915 | 'leftsquare' => array( 0, 11 ), |
916 | 916 | 'string' => array( 0, 14 ), |
917 | 917 | 'int' => array( 0, 15 ), |
— | — | @@ -924,10 +924,10 @@ |
925 | 925 | 'sum' => array( 0, 6 ), |
926 | 926 | 'id' => array( 0, 44 ), |
927 | 927 | 'isset' => array( 0, 12 ), |
928 | | - 'unset' => array( 0, 13 ), |
| 928 | + 'delete' => array( 0, 13 ), |
929 | 929 | 'break' => array( 0, 9 ), |
930 | 930 | 'continue' => array( 0, 10 ), |
931 | | - 'leftbrace' => array( 0, 2 ), |
| 931 | + 'leftbracket' => array( 0, 2 ), |
932 | 932 | 'leftsquare' => array( 0, 11 ), |
933 | 933 | 'string' => array( 0, 14 ), |
934 | 934 | 'int' => array( 0, 15 ), |
— | — | @@ -941,10 +941,10 @@ |
942 | 942 | 'sum' => array( 0, 6 ), |
943 | 943 | 'id' => array( 0, 44 ), |
944 | 944 | 'isset' => array( 0, 12 ), |
945 | | - 'unset' => array( 0, 13 ), |
| 945 | + 'delete' => array( 0, 13 ), |
946 | 946 | 'break' => array( 0, 9 ), |
947 | 947 | 'continue' => array( 0, 10 ), |
948 | | - 'leftbrace' => array( 0, 2 ), |
| 948 | + 'leftbracket' => array( 0, 2 ), |
949 | 949 | 'leftsquare' => array( 0, 11 ), |
950 | 950 | 'string' => array( 0, 14 ), |
951 | 951 | 'int' => array( 0, 15 ), |
— | — | @@ -958,10 +958,10 @@ |
959 | 959 | 'sum' => array( 0, 6 ), |
960 | 960 | 'id' => array( 0, 44 ), |
961 | 961 | 'isset' => array( 0, 12 ), |
962 | | - 'unset' => array( 0, 13 ), |
| 962 | + 'delete' => array( 0, 13 ), |
963 | 963 | 'break' => array( 0, 9 ), |
964 | 964 | 'continue' => array( 0, 10 ), |
965 | | - 'leftbrace' => array( 0, 2 ), |
| 965 | + 'leftbracket' => array( 0, 2 ), |
966 | 966 | 'leftsquare' => array( 0, 11 ), |
967 | 967 | 'string' => array( 0, 14 ), |
968 | 968 | 'int' => array( 0, 15 ), |
— | — | @@ -975,10 +975,10 @@ |
976 | 976 | 'sum' => array( 0, 6 ), |
977 | 977 | 'id' => array( 0, 44 ), |
978 | 978 | 'isset' => array( 0, 12 ), |
979 | | - 'unset' => array( 0, 13 ), |
| 979 | + 'delete' => array( 0, 13 ), |
980 | 980 | 'break' => array( 0, 9 ), |
981 | 981 | 'continue' => array( 0, 10 ), |
982 | | - 'leftbrace' => array( 0, 2 ), |
| 982 | + 'leftbracket' => array( 0, 2 ), |
983 | 983 | 'leftsquare' => array( 0, 11 ), |
984 | 984 | 'string' => array( 0, 14 ), |
985 | 985 | 'int' => array( 0, 15 ), |
— | — | @@ -992,10 +992,10 @@ |
993 | 993 | 'sum' => array( 0, 6 ), |
994 | 994 | 'id' => array( 0, 44 ), |
995 | 995 | 'isset' => array( 0, 12 ), |
996 | | - 'unset' => array( 0, 13 ), |
| 996 | + 'delete' => array( 0, 13 ), |
997 | 997 | 'break' => array( 0, 9 ), |
998 | 998 | 'continue' => array( 0, 10 ), |
999 | | - 'leftbrace' => array( 0, 2 ), |
| 999 | + 'leftbracket' => array( 0, 2 ), |
1000 | 1000 | 'leftsquare' => array( 0, 11 ), |
1001 | 1001 | 'string' => array( 0, 14 ), |
1002 | 1002 | 'int' => array( 0, 15 ), |
— | — | @@ -1009,10 +1009,10 @@ |
1010 | 1010 | 'sum' => array( 0, 6 ), |
1011 | 1011 | 'id' => array( 0, 44 ), |
1012 | 1012 | 'isset' => array( 0, 12 ), |
1013 | | - 'unset' => array( 0, 13 ), |
| 1013 | + 'delete' => array( 0, 13 ), |
1014 | 1014 | 'break' => array( 0, 9 ), |
1015 | 1015 | 'continue' => array( 0, 10 ), |
1016 | | - 'leftbrace' => array( 0, 2 ), |
| 1016 | + 'leftbracket' => array( 0, 2 ), |
1017 | 1017 | 'leftsquare' => array( 0, 11 ), |
1018 | 1018 | 'string' => array( 0, 14 ), |
1019 | 1019 | 'int' => array( 0, 15 ), |
— | — | @@ -1026,10 +1026,10 @@ |
1027 | 1027 | 'sum' => array( 0, 6 ), |
1028 | 1028 | 'id' => array( 0, 44 ), |
1029 | 1029 | 'isset' => array( 0, 12 ), |
1030 | | - 'unset' => array( 0, 13 ), |
| 1030 | + 'delete' => array( 0, 13 ), |
1031 | 1031 | 'break' => array( 0, 9 ), |
1032 | 1032 | 'continue' => array( 0, 10 ), |
1033 | | - 'leftbrace' => array( 0, 2 ), |
| 1033 | + 'leftbracket' => array( 0, 2 ), |
1034 | 1034 | 'leftsquare' => array( 0, 11 ), |
1035 | 1035 | 'string' => array( 0, 14 ), |
1036 | 1036 | 'int' => array( 0, 15 ), |
— | — | @@ -1042,10 +1042,10 @@ |
1043 | 1043 | 'sum' => array( 0, 6 ), |
1044 | 1044 | 'id' => array( 0, 44 ), |
1045 | 1045 | 'isset' => array( 0, 12 ), |
1046 | | - 'unset' => array( 0, 13 ), |
| 1046 | + 'delete' => array( 0, 13 ), |
1047 | 1047 | 'break' => array( 0, 9 ), |
1048 | 1048 | 'continue' => array( 0, 10 ), |
1049 | | - 'leftbrace' => array( 0, 2 ), |
| 1049 | + 'leftbracket' => array( 0, 2 ), |
1050 | 1050 | 'leftsquare' => array( 0, 11 ), |
1051 | 1051 | 'string' => array( 0, 14 ), |
1052 | 1052 | 'int' => array( 0, 15 ), |
— | — | @@ -1058,10 +1058,10 @@ |
1059 | 1059 | 'sum' => array( 0, 6 ), |
1060 | 1060 | 'id' => array( 0, 44 ), |
1061 | 1061 | 'isset' => array( 0, 12 ), |
1062 | | - 'unset' => array( 0, 13 ), |
| 1062 | + 'delete' => array( 0, 13 ), |
1063 | 1063 | 'break' => array( 0, 9 ), |
1064 | 1064 | 'continue' => array( 0, 10 ), |
1065 | | - 'leftbrace' => array( 0, 2 ), |
| 1065 | + 'leftbracket' => array( 0, 2 ), |
1066 | 1066 | 'leftsquare' => array( 0, 11 ), |
1067 | 1067 | 'string' => array( 0, 14 ), |
1068 | 1068 | 'int' => array( 0, 15 ), |
— | — | @@ -1074,7 +1074,7 @@ |
1075 | 1075 | 'id' => array( 0, 72 ), |
1076 | 1076 | ), |
1077 | 1077 | 70 => array( |
1078 | | - 'rightbrace' => array( 0, 97 ), |
| 1078 | + 'rightbracket' => array( 0, 97 ), |
1079 | 1079 | ), |
1080 | 1080 | 71 => array( |
1081 | 1081 | 'in' => array( 1, 41 ), |
— | — | @@ -1082,10 +1082,10 @@ |
1083 | 1083 | 'equalsto' => array( 1, 41 ), |
1084 | 1084 | 'trinary' => array( 1, 41 ), |
1085 | 1085 | 'semicolon' => array( 1, 41 ), |
1086 | | - 'rightbrace' => array( 1, 41 ), |
| 1086 | + 'rightbracket' => array( 1, 41 ), |
1087 | 1087 | 'colon' => array( 1, 41 ), |
1088 | 1088 | 'logicop' => array( 1, 41 ), |
1089 | | - 'comareop' => array( 1, 41 ), |
| 1089 | + 'compareop' => array( 1, 41 ), |
1090 | 1090 | 'sum' => array( 1, 41 ), |
1091 | 1091 | 'mul' => array( 1, 41 ), |
1092 | 1092 | 'contains' => array( 1, 41 ), |
— | — | @@ -1094,7 +1094,7 @@ |
1095 | 1095 | ), |
1096 | 1096 | 72 => array( |
1097 | 1097 | 'in' => array( 1, 59 ), |
1098 | | - 'rightbrace' => array( 1, 59 ), |
| 1098 | + 'rightbracket' => array( 1, 59 ), |
1099 | 1099 | 'setto' => array( 1, 59 ), |
1100 | 1100 | 'pow' => array( 1, 59 ), |
1101 | 1101 | 'equalsto' => array( 1, 59 ), |
— | — | @@ -1102,7 +1102,7 @@ |
1103 | 1103 | 'semicolon' => array( 1, 59 ), |
1104 | 1104 | 'colon' => array( 1, 59 ), |
1105 | 1105 | 'logicop' => array( 1, 59 ), |
1106 | | - 'comareop' => array( 1, 59 ), |
| 1106 | + 'compareop' => array( 1, 59 ), |
1107 | 1107 | 'sum' => array( 1, 59 ), |
1108 | 1108 | 'mul' => array( 1, 59 ), |
1109 | 1109 | 'contains' => array( 1, 59 ), |
— | — | @@ -1114,22 +1114,22 @@ |
1115 | 1115 | 'in' => array( 0, 98 ), |
1116 | 1116 | ), |
1117 | 1117 | 74 => array( |
1118 | | - 'leftbrace' => array( 0, 99 ), |
| 1118 | + 'leftbracket' => array( 0, 99 ), |
1119 | 1119 | ), |
1120 | 1120 | 75 => array( |
1121 | 1121 | '$' => array( 1, 8 ), |
1122 | 1122 | 'if' => array( 1, 8 ), |
1123 | | - 'foreach' => array( 1, 8 ), |
| 1123 | + 'for' => array( 1, 8 ), |
1124 | 1124 | 'try' => array( 1, 8 ), |
1125 | 1125 | 'leftcurly' => array( 1, 8 ), |
1126 | 1126 | 'id' => array( 1, 8 ), |
1127 | 1127 | 'invert' => array( 1, 8 ), |
1128 | 1128 | 'sum' => array( 1, 8 ), |
1129 | 1129 | 'isset' => array( 1, 8 ), |
1130 | | - 'unset' => array( 1, 8 ), |
| 1130 | + 'delete' => array( 1, 8 ), |
1131 | 1131 | 'break' => array( 1, 8 ), |
1132 | 1132 | 'continue' => array( 1, 8 ), |
1133 | | - 'leftbrace' => array( 1, 8 ), |
| 1133 | + 'leftbracket' => array( 1, 8 ), |
1134 | 1134 | 'leftsquare' => array( 1, 8 ), |
1135 | 1135 | 'string' => array( 1, 8 ), |
1136 | 1136 | 'int' => array( 1, 8 ), |
— | — | @@ -1147,10 +1147,10 @@ |
1148 | 1148 | 'equalsto' => array( 1, 34 ), |
1149 | 1149 | 'trinary' => array( 1, 34 ), |
1150 | 1150 | 'semicolon' => array( 1, 34 ), |
1151 | | - 'rightbrace' => array( 1, 34 ), |
| 1151 | + 'rightbracket' => array( 1, 34 ), |
1152 | 1152 | 'colon' => array( 1, 34 ), |
1153 | 1153 | 'logicop' => array( 1, 34 ), |
1154 | | - 'comareop' => array( 1, 34 ), |
| 1154 | + 'compareop' => array( 1, 34 ), |
1155 | 1155 | 'sum' => array( 1, 34 ), |
1156 | 1156 | 'mul' => array( 1, 34 ), |
1157 | 1157 | 'contains' => array( 1, 34 ), |
— | — | @@ -1158,18 +1158,18 @@ |
1159 | 1159 | 'comma' => array( 1, 34 ), |
1160 | 1160 | ), |
1161 | 1161 | 77 => array( |
1162 | | - 'rightbrace' => array( 1, 48 ), |
| 1162 | + 'rightbracket' => array( 1, 48 ), |
1163 | 1163 | 'rightsquare' => array( 1, 48 ), |
1164 | 1164 | 'comma' => array( 1, 48 ), |
1165 | 1165 | ), |
1166 | 1166 | 78 => array( |
1167 | | - 'rightbrace' => array( 0, 100 ), |
| 1167 | + 'rightbracket' => array( 0, 100 ), |
1168 | 1168 | 'comma' => array( 0, 83 ), |
1169 | 1169 | ), |
1170 | 1170 | 79 => array( |
1171 | 1171 | 'leftsquare' => array( 1, 63 ), |
1172 | 1172 | 'in' => array( 1, 63 ), |
1173 | | - 'rightbrace' => array( 1, 63 ), |
| 1173 | + 'rightbracket' => array( 1, 63 ), |
1174 | 1174 | 'setto' => array( 1, 63 ), |
1175 | 1175 | 'pow' => array( 1, 63 ), |
1176 | 1176 | 'equalsto' => array( 1, 63 ), |
— | — | @@ -1177,7 +1177,7 @@ |
1178 | 1178 | 'semicolon' => array( 1, 63 ), |
1179 | 1179 | 'colon' => array( 1, 63 ), |
1180 | 1180 | 'logicop' => array( 1, 63 ), |
1181 | | - 'comareop' => array( 1, 63 ), |
| 1181 | + 'compareop' => array( 1, 63 ), |
1182 | 1182 | 'sum' => array( 1, 63 ), |
1183 | 1183 | 'mul' => array( 1, 63 ), |
1184 | 1184 | 'contains' => array( 1, 63 ), |
— | — | @@ -1189,7 +1189,7 @@ |
1190 | 1190 | ), |
1191 | 1191 | 81 => array( |
1192 | 1192 | 'in' => array( 1, 60 ), |
1193 | | - 'rightbrace' => array( 1, 60 ), |
| 1193 | + 'rightbracket' => array( 1, 60 ), |
1194 | 1194 | 'setto' => array( 1, 60 ), |
1195 | 1195 | 'pow' => array( 1, 60 ), |
1196 | 1196 | 'equalsto' => array( 1, 60 ), |
— | — | @@ -1197,7 +1197,7 @@ |
1198 | 1198 | 'semicolon' => array( 1, 60 ), |
1199 | 1199 | 'colon' => array( 1, 60 ), |
1200 | 1200 | 'logicop' => array( 1, 60 ), |
1201 | | - 'comareop' => array( 1, 60 ), |
| 1201 | + 'compareop' => array( 1, 60 ), |
1202 | 1202 | 'sum' => array( 1, 60 ), |
1203 | 1203 | 'mul' => array( 1, 60 ), |
1204 | 1204 | 'contains' => array( 1, 60 ), |
— | — | @@ -1209,10 +1209,10 @@ |
1210 | 1210 | 'invert' => array( 0, 7 ), |
1211 | 1211 | 'sum' => array( 0, 6 ), |
1212 | 1212 | 'isset' => array( 0, 12 ), |
1213 | | - 'unset' => array( 0, 13 ), |
| 1213 | + 'delete' => array( 0, 13 ), |
1214 | 1214 | 'break' => array( 0, 9 ), |
1215 | 1215 | 'continue' => array( 0, 10 ), |
1216 | | - 'leftbrace' => array( 0, 2 ), |
| 1216 | + 'leftbracket' => array( 0, 2 ), |
1217 | 1217 | 'leftsquare' => array( 0, 11 ), |
1218 | 1218 | 'string' => array( 0, 14 ), |
1219 | 1219 | 'int' => array( 0, 15 ), |
— | — | @@ -1226,10 +1226,10 @@ |
1227 | 1227 | 'invert' => array( 0, 7 ), |
1228 | 1228 | 'sum' => array( 0, 6 ), |
1229 | 1229 | 'isset' => array( 0, 12 ), |
1230 | | - 'unset' => array( 0, 13 ), |
| 1230 | + 'delete' => array( 0, 13 ), |
1231 | 1231 | 'break' => array( 0, 9 ), |
1232 | 1232 | 'continue' => array( 0, 10 ), |
1233 | | - 'leftbrace' => array( 0, 2 ), |
| 1233 | + 'leftbracket' => array( 0, 2 ), |
1234 | 1234 | 'leftsquare' => array( 0, 11 ), |
1235 | 1235 | 'string' => array( 0, 14 ), |
1236 | 1236 | 'int' => array( 0, 15 ), |
— | — | @@ -1244,10 +1244,10 @@ |
1245 | 1245 | 'equalsto' => array( 1, 42 ), |
1246 | 1246 | 'trinary' => array( 1, 42 ), |
1247 | 1247 | 'semicolon' => array( 1, 42 ), |
1248 | | - 'rightbrace' => array( 1, 42 ), |
| 1248 | + 'rightbracket' => array( 1, 42 ), |
1249 | 1249 | 'colon' => array( 1, 42 ), |
1250 | 1250 | 'logicop' => array( 1, 42 ), |
1251 | | - 'comareop' => array( 1, 42 ), |
| 1251 | + 'compareop' => array( 1, 42 ), |
1252 | 1252 | 'sum' => array( 1, 42 ), |
1253 | 1253 | 'mul' => array( 1, 42 ), |
1254 | 1254 | 'contains' => array( 1, 42 ), |
— | — | @@ -1259,10 +1259,10 @@ |
1260 | 1260 | 'invert' => array( 0, 7 ), |
1261 | 1261 | 'sum' => array( 0, 6 ), |
1262 | 1262 | 'isset' => array( 0, 12 ), |
1263 | | - 'unset' => array( 0, 13 ), |
| 1263 | + 'delete' => array( 0, 13 ), |
1264 | 1264 | 'break' => array( 0, 9 ), |
1265 | 1265 | 'continue' => array( 0, 10 ), |
1266 | | - 'leftbrace' => array( 0, 2 ), |
| 1266 | + 'leftbracket' => array( 0, 2 ), |
1267 | 1267 | 'leftsquare' => array( 0, 11 ), |
1268 | 1268 | 'string' => array( 0, 14 ), |
1269 | 1269 | 'int' => array( 0, 15 ), |
— | — | @@ -1273,7 +1273,7 @@ |
1274 | 1274 | ), |
1275 | 1275 | 86 => array( |
1276 | 1276 | 'semicolon' => array( 1, 10 ), |
1277 | | - 'rightbrace' => array( 1, 10 ), |
| 1277 | + 'rightbracket' => array( 1, 10 ), |
1278 | 1278 | 'rightsquare' => array( 1, 10 ), |
1279 | 1279 | 'comma' => array( 1, 10 ), |
1280 | 1280 | 'colon' => array( 1, 10 ), |
— | — | @@ -1284,30 +1284,30 @@ |
1285 | 1285 | 88 => array( |
1286 | 1286 | 'trinary' => array( 1, 14 ), |
1287 | 1287 | 'semicolon' => array( 1, 14 ), |
1288 | | - 'rightbrace' => array( 1, 14 ), |
| 1288 | + 'rightbracket' => array( 1, 14 ), |
1289 | 1289 | 'colon' => array( 1, 14 ), |
1290 | 1290 | 'logicop' => array( 1, 14 ), |
1291 | 1291 | 'rightsquare' => array( 1, 14 ), |
1292 | 1292 | 'comma' => array( 1, 14 ), |
1293 | | - 'comareop' => array( 0, 62 ), |
| 1293 | + 'compareop' => array( 0, 62 ), |
1294 | 1294 | ), |
1295 | 1295 | 89 => array( |
1296 | 1296 | 'trinary' => array( 1, 16 ), |
1297 | 1297 | 'semicolon' => array( 1, 16 ), |
1298 | | - 'rightbrace' => array( 1, 16 ), |
| 1298 | + 'rightbracket' => array( 1, 16 ), |
1299 | 1299 | 'colon' => array( 1, 16 ), |
1300 | 1300 | 'logicop' => array( 1, 16 ), |
1301 | | - 'comareop' => array( 1, 16 ), |
| 1301 | + 'compareop' => array( 1, 16 ), |
1302 | 1302 | 'rightsquare' => array( 1, 16 ), |
1303 | 1303 | 'comma' => array( 1, 16 ), |
1304 | 1304 | ), |
1305 | 1305 | 90 => array( |
1306 | 1306 | 'trinary' => array( 1, 18 ), |
1307 | 1307 | 'semicolon' => array( 1, 18 ), |
1308 | | - 'rightbrace' => array( 1, 18 ), |
| 1308 | + 'rightbracket' => array( 1, 18 ), |
1309 | 1309 | 'colon' => array( 1, 18 ), |
1310 | 1310 | 'logicop' => array( 1, 18 ), |
1311 | | - 'comareop' => array( 1, 18 ), |
| 1311 | + 'compareop' => array( 1, 18 ), |
1312 | 1312 | 'rightsquare' => array( 1, 18 ), |
1313 | 1313 | 'comma' => array( 1, 18 ), |
1314 | 1314 | 'sum' => array( 0, 64 ), |
— | — | @@ -1316,10 +1316,10 @@ |
1317 | 1317 | 'equalsto' => array( 1, 20 ), |
1318 | 1318 | 'trinary' => array( 1, 20 ), |
1319 | 1319 | 'semicolon' => array( 1, 20 ), |
1320 | | - 'rightbrace' => array( 1, 20 ), |
| 1320 | + 'rightbracket' => array( 1, 20 ), |
1321 | 1321 | 'colon' => array( 1, 20 ), |
1322 | 1322 | 'logicop' => array( 1, 20 ), |
1323 | | - 'comareop' => array( 1, 20 ), |
| 1323 | + 'compareop' => array( 1, 20 ), |
1324 | 1324 | 'sum' => array( 1, 20 ), |
1325 | 1325 | 'rightsquare' => array( 1, 20 ), |
1326 | 1326 | 'comma' => array( 1, 20 ), |
— | — | @@ -1329,10 +1329,10 @@ |
1330 | 1330 | 'equalsto' => array( 1, 22 ), |
1331 | 1331 | 'trinary' => array( 1, 22 ), |
1332 | 1332 | 'semicolon' => array( 1, 22 ), |
1333 | | - 'rightbrace' => array( 1, 22 ), |
| 1333 | + 'rightbracket' => array( 1, 22 ), |
1334 | 1334 | 'colon' => array( 1, 22 ), |
1335 | 1335 | 'logicop' => array( 1, 22 ), |
1336 | | - 'comareop' => array( 1, 22 ), |
| 1336 | + 'compareop' => array( 1, 22 ), |
1337 | 1337 | 'sum' => array( 1, 22 ), |
1338 | 1338 | 'mul' => array( 1, 22 ), |
1339 | 1339 | 'rightsquare' => array( 1, 22 ), |
— | — | @@ -1342,10 +1342,10 @@ |
1343 | 1343 | 'equalsto' => array( 1, 24 ), |
1344 | 1344 | 'trinary' => array( 1, 24 ), |
1345 | 1345 | 'semicolon' => array( 1, 24 ), |
1346 | | - 'rightbrace' => array( 1, 24 ), |
| 1346 | + 'rightbracket' => array( 1, 24 ), |
1347 | 1347 | 'colon' => array( 1, 24 ), |
1348 | 1348 | 'logicop' => array( 1, 24 ), |
1349 | | - 'comareop' => array( 1, 24 ), |
| 1349 | + 'compareop' => array( 1, 24 ), |
1350 | 1350 | 'sum' => array( 1, 24 ), |
1351 | 1351 | 'mul' => array( 1, 24 ), |
1352 | 1352 | 'rightsquare' => array( 1, 24 ), |
— | — | @@ -1356,10 +1356,10 @@ |
1357 | 1357 | 'equalsto' => array( 1, 28 ), |
1358 | 1358 | 'trinary' => array( 1, 28 ), |
1359 | 1359 | 'semicolon' => array( 1, 28 ), |
1360 | | - 'rightbrace' => array( 1, 28 ), |
| 1360 | + 'rightbracket' => array( 1, 28 ), |
1361 | 1361 | 'colon' => array( 1, 28 ), |
1362 | 1362 | 'logicop' => array( 1, 28 ), |
1363 | | - 'comareop' => array( 1, 28 ), |
| 1363 | + 'compareop' => array( 1, 28 ), |
1364 | 1364 | 'sum' => array( 1, 28 ), |
1365 | 1365 | 'mul' => array( 1, 28 ), |
1366 | 1366 | 'rightsquare' => array( 1, 28 ), |
— | — | @@ -1370,31 +1370,31 @@ |
1371 | 1371 | 'equalsto' => array( 1, 29 ), |
1372 | 1372 | 'trinary' => array( 1, 29 ), |
1373 | 1373 | 'semicolon' => array( 1, 29 ), |
1374 | | - 'rightbrace' => array( 1, 29 ), |
| 1374 | + 'rightbracket' => array( 1, 29 ), |
1375 | 1375 | 'colon' => array( 1, 29 ), |
1376 | 1376 | 'logicop' => array( 1, 29 ), |
1377 | | - 'comareop' => array( 1, 29 ), |
| 1377 | + 'compareop' => array( 1, 29 ), |
1378 | 1378 | 'sum' => array( 1, 29 ), |
1379 | 1379 | 'mul' => array( 1, 29 ), |
1380 | 1380 | 'rightsquare' => array( 1, 29 ), |
1381 | 1381 | 'comma' => array( 1, 29 ), |
1382 | 1382 | ), |
1383 | 1383 | 96 => array( |
1384 | | - 'rightbrace' => array( 0, 107 ), |
| 1384 | + 'rightbracket' => array( 0, 107 ), |
1385 | 1385 | ), |
1386 | 1386 | 97 => array( |
1387 | 1387 | 'if' => array( 0, 1 ), |
1388 | | - 'foreach' => array( 0, 3 ), |
| 1388 | + 'for' => array( 0, 3 ), |
1389 | 1389 | 'try' => array( 0, 4 ), |
1390 | 1390 | 'leftcurly' => array( 0, 5 ), |
1391 | 1391 | 'id' => array( 0, 8 ), |
1392 | 1392 | 'invert' => array( 0, 7 ), |
1393 | 1393 | 'sum' => array( 0, 6 ), |
1394 | 1394 | 'isset' => array( 0, 12 ), |
1395 | | - 'unset' => array( 0, 13 ), |
| 1395 | + 'delete' => array( 0, 13 ), |
1396 | 1396 | 'break' => array( 0, 9 ), |
1397 | 1397 | 'continue' => array( 0, 10 ), |
1398 | | - 'leftbrace' => array( 0, 2 ), |
| 1398 | + 'leftbracket' => array( 0, 2 ), |
1399 | 1399 | 'leftsquare' => array( 0, 11 ), |
1400 | 1400 | 'string' => array( 0, 14 ), |
1401 | 1401 | 'int' => array( 0, 15 ), |
— | — | @@ -1408,10 +1408,10 @@ |
1409 | 1409 | 'invert' => array( 0, 7 ), |
1410 | 1410 | 'sum' => array( 0, 6 ), |
1411 | 1411 | 'isset' => array( 0, 12 ), |
1412 | | - 'unset' => array( 0, 13 ), |
| 1412 | + 'delete' => array( 0, 13 ), |
1413 | 1413 | 'break' => array( 0, 9 ), |
1414 | 1414 | 'continue' => array( 0, 10 ), |
1415 | | - 'leftbrace' => array( 0, 2 ), |
| 1415 | + 'leftbracket' => array( 0, 2 ), |
1416 | 1416 | 'leftsquare' => array( 0, 11 ), |
1417 | 1417 | 'string' => array( 0, 14 ), |
1418 | 1418 | 'int' => array( 0, 15 ), |
— | — | @@ -1429,10 +1429,10 @@ |
1430 | 1430 | 'equalsto' => array( 1, 33 ), |
1431 | 1431 | 'trinary' => array( 1, 33 ), |
1432 | 1432 | 'semicolon' => array( 1, 33 ), |
1433 | | - 'rightbrace' => array( 1, 33 ), |
| 1433 | + 'rightbracket' => array( 1, 33 ), |
1434 | 1434 | 'colon' => array( 1, 33 ), |
1435 | 1435 | 'logicop' => array( 1, 33 ), |
1436 | | - 'comareop' => array( 1, 33 ), |
| 1436 | + 'compareop' => array( 1, 33 ), |
1437 | 1437 | 'sum' => array( 1, 33 ), |
1438 | 1438 | 'mul' => array( 1, 33 ), |
1439 | 1439 | 'contains' => array( 1, 33 ), |
— | — | @@ -1442,7 +1442,7 @@ |
1443 | 1443 | 101 => array( |
1444 | 1444 | 'leftsquare' => array( 1, 62 ), |
1445 | 1445 | 'in' => array( 1, 62 ), |
1446 | | - 'rightbrace' => array( 1, 62 ), |
| 1446 | + 'rightbracket' => array( 1, 62 ), |
1447 | 1447 | 'setto' => array( 1, 62 ), |
1448 | 1448 | 'pow' => array( 1, 62 ), |
1449 | 1449 | 'equalsto' => array( 1, 62 ), |
— | — | @@ -1450,7 +1450,7 @@ |
1451 | 1451 | 'semicolon' => array( 1, 62 ), |
1452 | 1452 | 'colon' => array( 1, 62 ), |
1453 | 1453 | 'logicop' => array( 1, 62 ), |
1454 | | - 'comareop' => array( 1, 62 ), |
| 1454 | + 'compareop' => array( 1, 62 ), |
1455 | 1455 | 'sum' => array( 1, 62 ), |
1456 | 1456 | 'mul' => array( 1, 62 ), |
1457 | 1457 | 'contains' => array( 1, 62 ), |
— | — | @@ -1462,7 +1462,7 @@ |
1463 | 1463 | 'comma' => array( 1, 51 ), |
1464 | 1464 | ), |
1465 | 1465 | 103 => array( |
1466 | | - 'rightbrace' => array( 1, 47 ), |
| 1466 | + 'rightbracket' => array( 1, 47 ), |
1467 | 1467 | 'rightsquare' => array( 1, 47 ), |
1468 | 1468 | 'comma' => array( 1, 47 ), |
1469 | 1469 | ), |
— | — | @@ -1478,10 +1478,10 @@ |
1479 | 1479 | 'sum' => array( 0, 6 ), |
1480 | 1480 | 'id' => array( 0, 44 ), |
1481 | 1481 | 'isset' => array( 0, 12 ), |
1482 | | - 'unset' => array( 0, 13 ), |
| 1482 | + 'delete' => array( 0, 13 ), |
1483 | 1483 | 'break' => array( 0, 9 ), |
1484 | 1484 | 'continue' => array( 0, 10 ), |
1485 | | - 'leftbrace' => array( 0, 2 ), |
| 1485 | + 'leftbracket' => array( 0, 2 ), |
1486 | 1486 | 'leftsquare' => array( 0, 11 ), |
1487 | 1487 | 'string' => array( 0, 14 ), |
1488 | 1488 | 'int' => array( 0, 15 ), |
— | — | @@ -1496,10 +1496,10 @@ |
1497 | 1497 | 'equalsto' => array( 1, 35 ), |
1498 | 1498 | 'trinary' => array( 1, 35 ), |
1499 | 1499 | 'semicolon' => array( 1, 35 ), |
1500 | | - 'rightbrace' => array( 1, 35 ), |
| 1500 | + 'rightbracket' => array( 1, 35 ), |
1501 | 1501 | 'colon' => array( 1, 35 ), |
1502 | 1502 | 'logicop' => array( 1, 35 ), |
1503 | | - 'comareop' => array( 1, 35 ), |
| 1503 | + 'compareop' => array( 1, 35 ), |
1504 | 1504 | 'sum' => array( 1, 35 ), |
1505 | 1505 | 'mul' => array( 1, 35 ), |
1506 | 1506 | 'contains' => array( 1, 35 ), |
— | — | @@ -1509,17 +1509,17 @@ |
1510 | 1510 | 108 => array( |
1511 | 1511 | '$' => array( 1, 4 ), |
1512 | 1512 | 'if' => array( 1, 4 ), |
1513 | | - 'foreach' => array( 1, 4 ), |
| 1513 | + 'for' => array( 1, 4 ), |
1514 | 1514 | 'try' => array( 1, 4 ), |
1515 | 1515 | 'leftcurly' => array( 1, 4 ), |
1516 | 1516 | 'id' => array( 1, 4 ), |
1517 | 1517 | 'invert' => array( 1, 4 ), |
1518 | 1518 | 'sum' => array( 1, 4 ), |
1519 | 1519 | 'isset' => array( 1, 4 ), |
1520 | | - 'unset' => array( 1, 4 ), |
| 1520 | + 'delete' => array( 1, 4 ), |
1521 | 1521 | 'break' => array( 1, 4 ), |
1522 | 1522 | 'continue' => array( 1, 4 ), |
1523 | | - 'leftbrace' => array( 1, 4 ), |
| 1523 | + 'leftbracket' => array( 1, 4 ), |
1524 | 1524 | 'leftsquare' => array( 1, 4 ), |
1525 | 1525 | 'string' => array( 1, 4 ), |
1526 | 1526 | 'int' => array( 1, 4 ), |
— | — | @@ -1532,31 +1532,31 @@ |
1533 | 1533 | 'rightcurly' => array( 1, 4 ), |
1534 | 1534 | ), |
1535 | 1535 | 109 => array( |
1536 | | - 'rightbrace' => array( 0, 113 ), |
| 1536 | + 'rightbracket' => array( 0, 113 ), |
1537 | 1537 | ), |
1538 | 1538 | 110 => array( |
1539 | | - 'rightbrace' => array( 0, 114 ), |
| 1539 | + 'rightbracket' => array( 0, 114 ), |
1540 | 1540 | ), |
1541 | 1541 | 111 => array( |
1542 | 1542 | 'semicolon' => array( 1, 12 ), |
1543 | | - 'rightbrace' => array( 1, 12 ), |
| 1543 | + 'rightbracket' => array( 1, 12 ), |
1544 | 1544 | 'colon' => array( 1, 12 ), |
1545 | 1545 | 'rightsquare' => array( 1, 12 ), |
1546 | 1546 | 'comma' => array( 1, 12 ), |
1547 | 1547 | ), |
1548 | 1548 | 112 => array( |
1549 | 1549 | 'if' => array( 0, 1 ), |
1550 | | - 'foreach' => array( 0, 3 ), |
| 1550 | + 'for' => array( 0, 3 ), |
1551 | 1551 | 'try' => array( 0, 4 ), |
1552 | 1552 | 'leftcurly' => array( 0, 5 ), |
1553 | 1553 | 'id' => array( 0, 8 ), |
1554 | 1554 | 'invert' => array( 0, 7 ), |
1555 | 1555 | 'sum' => array( 0, 6 ), |
1556 | 1556 | 'isset' => array( 0, 12 ), |
1557 | | - 'unset' => array( 0, 13 ), |
| 1557 | + 'delete' => array( 0, 13 ), |
1558 | 1558 | 'break' => array( 0, 9 ), |
1559 | 1559 | 'continue' => array( 0, 10 ), |
1560 | | - 'leftbrace' => array( 0, 2 ), |
| 1560 | + 'leftbracket' => array( 0, 2 ), |
1561 | 1561 | 'leftsquare' => array( 0, 11 ), |
1562 | 1562 | 'string' => array( 0, 14 ), |
1563 | 1563 | 'int' => array( 0, 15 ), |
— | — | @@ -1567,17 +1567,17 @@ |
1568 | 1568 | ), |
1569 | 1569 | 113 => array( |
1570 | 1570 | 'if' => array( 0, 1 ), |
1571 | | - 'foreach' => array( 0, 3 ), |
| 1571 | + 'for' => array( 0, 3 ), |
1572 | 1572 | 'try' => array( 0, 4 ), |
1573 | 1573 | 'leftcurly' => array( 0, 5 ), |
1574 | 1574 | 'id' => array( 0, 8 ), |
1575 | 1575 | 'invert' => array( 0, 7 ), |
1576 | 1576 | 'sum' => array( 0, 6 ), |
1577 | 1577 | 'isset' => array( 0, 12 ), |
1578 | | - 'unset' => array( 0, 13 ), |
| 1578 | + 'delete' => array( 0, 13 ), |
1579 | 1579 | 'break' => array( 0, 9 ), |
1580 | 1580 | 'continue' => array( 0, 10 ), |
1581 | | - 'leftbrace' => array( 0, 2 ), |
| 1581 | + 'leftbracket' => array( 0, 2 ), |
1582 | 1582 | 'leftsquare' => array( 0, 11 ), |
1583 | 1583 | 'string' => array( 0, 14 ), |
1584 | 1584 | 'int' => array( 0, 15 ), |
— | — | @@ -1588,17 +1588,17 @@ |
1589 | 1589 | ), |
1590 | 1590 | 114 => array( |
1591 | 1591 | 'if' => array( 0, 1 ), |
1592 | | - 'foreach' => array( 0, 3 ), |
| 1592 | + 'for' => array( 0, 3 ), |
1593 | 1593 | 'try' => array( 0, 4 ), |
1594 | 1594 | 'leftcurly' => array( 0, 5 ), |
1595 | 1595 | 'id' => array( 0, 8 ), |
1596 | 1596 | 'invert' => array( 0, 7 ), |
1597 | 1597 | 'sum' => array( 0, 6 ), |
1598 | 1598 | 'isset' => array( 0, 12 ), |
1599 | | - 'unset' => array( 0, 13 ), |
| 1599 | + 'delete' => array( 0, 13 ), |
1600 | 1600 | 'break' => array( 0, 9 ), |
1601 | 1601 | 'continue' => array( 0, 10 ), |
1602 | | - 'leftbrace' => array( 0, 2 ), |
| 1602 | + 'leftbracket' => array( 0, 2 ), |
1603 | 1603 | 'leftsquare' => array( 0, 11 ), |
1604 | 1604 | 'string' => array( 0, 14 ), |
1605 | 1605 | 'int' => array( 0, 15 ), |
— | — | @@ -1610,17 +1610,17 @@ |
1611 | 1611 | 115 => array( |
1612 | 1612 | '$' => array( 1, 5 ), |
1613 | 1613 | 'if' => array( 1, 5 ), |
1614 | | - 'foreach' => array( 1, 5 ), |
| 1614 | + 'for' => array( 1, 5 ), |
1615 | 1615 | 'try' => array( 1, 5 ), |
1616 | 1616 | 'leftcurly' => array( 1, 5 ), |
1617 | 1617 | 'id' => array( 1, 5 ), |
1618 | 1618 | 'invert' => array( 1, 5 ), |
1619 | 1619 | 'sum' => array( 1, 5 ), |
1620 | 1620 | 'isset' => array( 1, 5 ), |
1621 | | - 'unset' => array( 1, 5 ), |
| 1621 | + 'delete' => array( 1, 5 ), |
1622 | 1622 | 'break' => array( 1, 5 ), |
1623 | 1623 | 'continue' => array( 1, 5 ), |
1624 | | - 'leftbrace' => array( 1, 5 ), |
| 1624 | + 'leftbracket' => array( 1, 5 ), |
1625 | 1625 | 'leftsquare' => array( 1, 5 ), |
1626 | 1626 | 'string' => array( 1, 5 ), |
1627 | 1627 | 'int' => array( 1, 5 ), |
— | — | @@ -1635,17 +1635,17 @@ |
1636 | 1636 | 116 => array( |
1637 | 1637 | '$' => array( 1, 6 ), |
1638 | 1638 | 'if' => array( 1, 6 ), |
1639 | | - 'foreach' => array( 1, 6 ), |
| 1639 | + 'for' => array( 1, 6 ), |
1640 | 1640 | 'try' => array( 1, 6 ), |
1641 | 1641 | 'leftcurly' => array( 1, 6 ), |
1642 | 1642 | 'id' => array( 1, 6 ), |
1643 | 1643 | 'invert' => array( 1, 6 ), |
1644 | 1644 | 'sum' => array( 1, 6 ), |
1645 | 1645 | 'isset' => array( 1, 6 ), |
1646 | | - 'unset' => array( 1, 6 ), |
| 1646 | + 'delete' => array( 1, 6 ), |
1647 | 1647 | 'break' => array( 1, 6 ), |
1648 | 1648 | 'continue' => array( 1, 6 ), |
1649 | | - 'leftbrace' => array( 1, 6 ), |
| 1649 | + 'leftbracket' => array( 1, 6 ), |
1650 | 1650 | 'leftsquare' => array( 1, 6 ), |
1651 | 1651 | 'string' => array( 1, 6 ), |
1652 | 1652 | 'int' => array( 1, 6 ), |
— | — | @@ -1660,17 +1660,17 @@ |
1661 | 1661 | 117 => array( |
1662 | 1662 | '$' => array( 1, 7 ), |
1663 | 1663 | 'if' => array( 1, 7 ), |
1664 | | - 'foreach' => array( 1, 7 ), |
| 1664 | + 'for' => array( 1, 7 ), |
1665 | 1665 | 'try' => array( 1, 7 ), |
1666 | 1666 | 'leftcurly' => array( 1, 7 ), |
1667 | 1667 | 'id' => array( 1, 7 ), |
1668 | 1668 | 'invert' => array( 1, 7 ), |
1669 | 1669 | 'sum' => array( 1, 7 ), |
1670 | 1670 | 'isset' => array( 1, 7 ), |
1671 | | - 'unset' => array( 1, 7 ), |
| 1671 | + 'delete' => array( 1, 7 ), |
1672 | 1672 | 'break' => array( 1, 7 ), |
1673 | 1673 | 'continue' => array( 1, 7 ), |
1674 | | - 'leftbrace' => array( 1, 7 ), |
| 1674 | + 'leftbracket' => array( 1, 7 ), |
1675 | 1675 | 'leftsquare' => array( 1, 7 ), |
1676 | 1676 | 'string' => array( 1, 7 ), |
1677 | 1677 | 'int' => array( 1, 7 ), |
Index: trunk/extensions/InlineScripts/interpreter/Shared.php |
— | — | @@ -11,29 +11,30 @@ |
12 | 12 | const TBreak = 'break'; |
13 | 13 | const TCatch = 'catch'; |
14 | 14 | const TColon = 'colon'; // : |
15 | | - const TCompareOperator = 'comareop'; // <, >, <= or >= |
| 15 | + const TCompareOperator = 'compareop'; // <, >, <= or >= |
16 | 16 | const TComma = 'comma'; // , |
17 | 17 | const TContains = 'contains'; |
18 | 18 | const TContinue = 'continue'; |
| 19 | + const TDelete = 'delete'; |
19 | 20 | const TElse = 'else'; |
20 | 21 | const TEqualsToOperator = 'equalsto'; // ==, ===, != or !== |
21 | 22 | const TFalse = 'false'; |
22 | 23 | const TFloat = 'float'; |
23 | | - const TForeach = 'foreach'; |
| 24 | + const TFor = 'for'; |
24 | 25 | const TID = 'id'; |
25 | 26 | const TIf = 'if'; |
26 | 27 | const TIn = 'in'; |
27 | 28 | const TInt = 'int'; |
28 | 29 | const TBoolInvert = 'invert'; // ! |
29 | 30 | const TIsset = 'isset'; |
30 | | - const TLeftBrace = 'leftbrace'; // ( |
| 31 | + const TLeftBracket = 'leftbracket'; // ( |
31 | 32 | const TLeftCurly = 'leftcurly'; // { |
32 | 33 | const TLeftSquare = 'leftsquare'; // [ |
33 | 34 | const TLogicalOperator = 'logicop'; // &, | or ^ |
34 | 35 | const TMulOperator = 'mul'; // *, / or % |
35 | 36 | const TNull = 'null'; |
36 | 37 | const TPow = 'pow'; // ** |
37 | | - const TRightBrace = 'rightbrace'; // ) |
| 38 | + const TRightBracket = 'rightbracket'; // ) |
38 | 39 | const TRightCurly = 'rightcurly'; // } |
39 | 40 | const TRightSquare = 'rightsquare'; // ] |
40 | 41 | const TSemicolon = 'semicolon'; // ; |
— | — | @@ -43,7 +44,6 @@ |
44 | 45 | const TTrinary = 'trinary'; // ? |
45 | 46 | const TTrue = 'true'; |
46 | 47 | const TTry = 'try'; |
47 | | - const TUnset = 'unset'; |
48 | 48 | |
49 | 49 | var $type; |
50 | 50 | var $value; |
— | — | @@ -164,7 +164,7 @@ |
165 | 165 | |
166 | 166 | public function appendTokenCount( &$interpr ) { |
167 | 167 | global $wgInlineScriptsLimits; |
168 | | - $interpr->mTokens += $this->mTokens; |
| 168 | + $interpr->mTokens += @$this->mTokensCount; |
169 | 169 | if( $interpr->mTokens > $wgInlineScriptsLimits['tokens'] ) |
170 | 170 | throw new ISUserVisibleException( 'toomanytokens', 0 ); |
171 | 171 | } |
Index: trunk/extensions/InlineScripts/interpreterTests.txt |
— | — | @@ -127,7 +127,7 @@ |
128 | 128 | Template:Bullets |
129 | 129 | !! text |
130 | 130 | <wikiscript> |
131 | | -foreach( a in args() ) |
| 131 | +for( a in args() ) |
132 | 132 | out( "* " + a + "\n" ); |
133 | 133 | </wikiscript> |
134 | 134 | !! endarticle |
— | — | @@ -259,12 +259,12 @@ |
260 | 260 | !! end |
261 | 261 | |
262 | 262 | !! test |
263 | | -isset/unset |
| 263 | +isset/delete |
264 | 264 | !! input |
265 | 265 | <wikiscript> |
266 | 266 | a = null; |
267 | 267 | b = 1; |
268 | | -unset( b ); |
| 268 | +delete( b ); |
269 | 269 | out( 'a: ' + isset( a ) + '; b: ' + int( isset( b ) ) ); |
270 | 270 | !! result |
271 | 271 | <p>a: 1; b: 0 |
— | — | @@ -302,7 +302,7 @@ |
303 | 303 | !! input |
304 | 304 | <wikiscript> |
305 | 305 | a = [ 1, 2, 3, 4, 5 ]; |
306 | | -foreach( n in a ) |
| 306 | +for( n in a ) |
307 | 307 | out( n * n + "\n\n"); |
308 | 308 | </wikiscript> |
309 | 309 | !! result |
— | — | @@ -318,7 +318,7 @@ |
319 | 319 | List merging |
320 | 320 | !! input |
321 | 321 | <wikiscript> |
322 | | -foreach( element in [ 7, 4 ] + [ 2, 8 ] ) |
| 322 | +for( element in [ 7, 4 ] + [ 2, 8 ] ) |
323 | 323 | out( element ); |
324 | 324 | </wikiscript> |
325 | 325 | !! result |
— | — | @@ -331,12 +331,12 @@ |
332 | 332 | !! input |
333 | 333 | <wikiscript> |
334 | 334 | a = [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ]; |
335 | | -foreach( e in a ) { |
| 335 | +for( e in a ) { |
336 | 336 | if( e >= 6 & e < 9 ) |
337 | 337 | continue; |
338 | 338 | out( e ); |
339 | 339 | } |
340 | | -foreach( e in a ) { |
| 340 | +for( e in a ) { |
341 | 341 | if( e == 3 ) |
342 | 342 | break; |
343 | 343 | out( e ); |
Index: trunk/extensions/InlineScripts/InlineScripts.php |
— | — | @@ -39,7 +39,7 @@ |
40 | 40 | $wgParserTestFiles[] = $dir . 'interpreterTests.txt'; |
41 | 41 | $wgHooks['ParserFirstCallInit'][] = 'InlineScriptsHooks::setupParserHook'; |
42 | 42 | $wgHooks['ParserClearState'][] = 'InlineScriptsHooks::clearState'; |
43 | | -$wgHooks['ParserLimitReport'][] = 'InlineScriptsHooks::reportLimits'; |
| 43 | +//$wgHooks['ParserLimitReport'][] = 'InlineScriptsHooks::reportLimits'; |
44 | 44 | |
45 | 45 | $wgInlineScriptsLimits = array( |
46 | 46 | /** |
— | — | @@ -140,7 +140,7 @@ |
141 | 141 | * @param $report |
142 | 142 | * @return bool |
143 | 143 | */ |
144 | | - public static function reportLimits( &$parser, &$report ) { |
| 144 | + public static function reportLimits( $parser, &$report ) { |
145 | 145 | global $wgInlineScriptsLimits; |
146 | 146 | $i = self::getInterpreter(); |
147 | 147 | $report .= |