|
131 | 131 | new \Phplrt\Parser\Grammar\Concatenation([49, 45, 50, 51, 52]),
|
132 | 132 | new \Phplrt\Parser\Grammar\Concatenation([16, 56]),
|
133 | 133 | new \Phplrt\Parser\Grammar\Concatenation([56]),
|
134 |
| - new \Phplrt\Parser\Grammar\Concatenation([128]), |
| 134 | + new \Phplrt\Parser\Grammar\Concatenation([129]), |
135 | 135 | new \Phplrt\Parser\Grammar\Concatenation([64, 68, 69]),
|
136 | 136 | new \Phplrt\Parser\Grammar\Concatenation([83, 56]),
|
137 | 137 | new \Phplrt\Parser\Grammar\Lexeme('T_PARENTHESIS_OPEN', false),
|
|
188 | 188 | new \Phplrt\Parser\Grammar\Alternation([53, 96]),
|
189 | 189 | new \Phplrt\Parser\Grammar\Optional(110),
|
190 | 190 | new \Phplrt\Parser\Grammar\Concatenation([2, 111]),
|
191 |
| - new \Phplrt\Parser\Grammar\Concatenation([129]), |
| 191 | + new \Phplrt\Parser\Grammar\Concatenation([130]), |
192 | 192 | new \Phplrt\Parser\Grammar\Optional(116),
|
193 | 193 | new \Phplrt\Parser\Grammar\Concatenation([113, 114]),
|
194 |
| - new \Phplrt\Parser\Grammar\Concatenation([119, 56, 120, 56, 121, 56]), |
| 194 | + new \Phplrt\Parser\Grammar\Concatenation([119, 120, 121, 56, 122, 56]), |
195 | 195 | new \Phplrt\Parser\Grammar\Concatenation([28, 116]),
|
196 | 196 | new \Phplrt\Parser\Grammar\Alternation([115, 117]),
|
197 |
| - new \Phplrt\Parser\Grammar\Alternation([122, 123, 124, 125, 126, 127]), |
| 197 | + new \Phplrt\Parser\Grammar\Alternation([123, 124, 125, 126, 127, 128]), |
| 198 | + new \Phplrt\Parser\Grammar\Alternation([56, 28]), |
198 | 199 | new \Phplrt\Parser\Grammar\Lexeme('T_QMARK', false),
|
199 | 200 | new \Phplrt\Parser\Grammar\Lexeme('T_COLON', false),
|
200 | 201 | new \Phplrt\Parser\Grammar\Lexeme('T_EQ', true),
|
201 | 202 | new \Phplrt\Parser\Grammar\Lexeme('T_NEQ', true),
|
202 |
| - new \Phplrt\Parser\Grammar\Lexeme('T_LTE', true), |
203 | 203 | new \Phplrt\Parser\Grammar\Lexeme('T_GTE', true),
|
| 204 | + new \Phplrt\Parser\Grammar\Lexeme('T_LTE', true), |
204 | 205 | new \Phplrt\Parser\Grammar\Lexeme('T_ANGLE_BRACKET_OPEN', true),
|
205 | 206 | new \Phplrt\Parser\Grammar\Lexeme('T_ANGLE_BRACKET_CLOSE', true),
|
206 | 207 | new \Phplrt\Parser\Grammar\Concatenation([118]),
|
207 |
| - new \Phplrt\Parser\Grammar\Concatenation([130, 133]), |
208 |
| - new \Phplrt\Parser\Grammar\Concatenation([134, 137]), |
| 208 | + new \Phplrt\Parser\Grammar\Concatenation([131, 134]), |
| 209 | + new \Phplrt\Parser\Grammar\Concatenation([135, 138]), |
209 | 210 | new \Phplrt\Parser\Grammar\Lexeme('T_OR', false),
|
210 |
| - new \Phplrt\Parser\Grammar\Concatenation([131, 129]), |
211 |
| - new \Phplrt\Parser\Grammar\Optional(132), |
212 |
| - new \Phplrt\Parser\Grammar\Concatenation([138]), |
| 211 | + new \Phplrt\Parser\Grammar\Concatenation([132, 130]), |
| 212 | + new \Phplrt\Parser\Grammar\Optional(133), |
| 213 | + new \Phplrt\Parser\Grammar\Concatenation([139]), |
213 | 214 | new \Phplrt\Parser\Grammar\Lexeme('T_AMP', false),
|
214 |
| - new \Phplrt\Parser\Grammar\Concatenation([135, 130]), |
215 |
| - new \Phplrt\Parser\Grammar\Optional(136), |
216 |
| - new \Phplrt\Parser\Grammar\Alternation([141, 139]), |
217 |
| - new \Phplrt\Parser\Grammar\Concatenation([142, 146]), |
| 215 | + new \Phplrt\Parser\Grammar\Concatenation([136, 131]), |
| 216 | + new \Phplrt\Parser\Grammar\Optional(137), |
| 217 | + new \Phplrt\Parser\Grammar\Alternation([142, 140]), |
| 218 | + new \Phplrt\Parser\Grammar\Concatenation([143, 147]), |
218 | 219 | new \Phplrt\Parser\Grammar\Lexeme('T_QMARK', true),
|
219 |
| - new \Phplrt\Parser\Grammar\Concatenation([140, 139]), |
220 |
| - new \Phplrt\Parser\Grammar\Alternation([149, 29, 20, 63, 112]), |
| 220 | + new \Phplrt\Parser\Grammar\Concatenation([141, 140]), |
| 221 | + new \Phplrt\Parser\Grammar\Alternation([150, 29, 20, 63, 112]), |
221 | 222 | new \Phplrt\Parser\Grammar\Lexeme('T_SQUARE_BRACKET_OPEN', true),
|
222 | 223 | new \Phplrt\Parser\Grammar\Lexeme('T_SQUARE_BRACKET_CLOSE', false),
|
223 |
| - new \Phplrt\Parser\Grammar\Concatenation([143, 144]), |
224 |
| - new \Phplrt\Parser\Grammar\Repetition(145, 0, INF), |
| 224 | + new \Phplrt\Parser\Grammar\Concatenation([144, 145]), |
| 225 | + new \Phplrt\Parser\Grammar\Repetition(146, 0, INF), |
225 | 226 | new \Phplrt\Parser\Grammar\Lexeme('T_PARENTHESIS_OPEN', false),
|
226 | 227 | new \Phplrt\Parser\Grammar\Lexeme('T_PARENTHESIS_CLOSE', false),
|
227 |
| - new \Phplrt\Parser\Grammar\Concatenation([147, 56, 148]), |
| 228 | + new \Phplrt\Parser\Grammar\Concatenation([148, 56, 149]), |
228 | 229 | ],
|
229 | 230 | 'reducers' => [
|
230 | 231 | 0 => static function (\Phplrt\Parser\Context $ctx, $children) {
|
|
522 | 523 | $children[0],
|
523 | 524 | $children[2],
|
524 | 525 | ),
|
| 526 | + 'T_GTE' => new Node\Stmt\Condition\GreaterOrEqualThanConditionNode( |
| 527 | + $children[0], |
| 528 | + $children[2], |
| 529 | + ), |
| 530 | + 'T_ANGLE_BRACKET_CLOSE' => new Node\Stmt\Condition\GreaterThanConditionNode( |
| 531 | + $children[0], |
| 532 | + $children[2], |
| 533 | + ), |
| 534 | + 'T_LTE' => new Node\Stmt\Condition\LessOrEqualThanConditionNode( |
| 535 | + $children[0], |
| 536 | + $children[2], |
| 537 | + ), |
| 538 | + 'T_ANGLE_BRACKET_OPEN' => new Node\Stmt\Condition\LessThanConditionNode( |
| 539 | + $children[0], |
| 540 | + $children[2], |
| 541 | + ), |
525 | 542 | default => throw SemanticException::fromInvalidConditionalOperator(
|
526 | 543 | $children[1]->getValue(),
|
527 | 544 | $offset,
|
|
534 | 551 | $children[4],
|
535 | 552 | );
|
536 | 553 | },
|
537 |
| - 129 => function (\Phplrt\Parser\Context $ctx, $children) { |
| 554 | + 130 => function (\Phplrt\Parser\Context $ctx, $children) { |
538 | 555 | // The "$offset" variable is an auto-generated
|
539 | 556 | $offset = $ctx->lastProcessedToken->getOffset();
|
540 | 557 |
|
|
548 | 565 |
|
549 | 566 | return $children;
|
550 | 567 | },
|
551 |
| - 130 => function (\Phplrt\Parser\Context $ctx, $children) { |
| 568 | + 131 => function (\Phplrt\Parser\Context $ctx, $children) { |
552 | 569 | // The "$offset" variable is an auto-generated
|
553 | 570 | $offset = $ctx->lastProcessedToken->getOffset();
|
554 | 571 |
|
|
562 | 579 |
|
563 | 580 | return $children;
|
564 | 581 | },
|
565 |
| - 138 => static function (\Phplrt\Parser\Context $ctx, $children) { |
| 582 | + 139 => static function (\Phplrt\Parser\Context $ctx, $children) { |
566 | 583 | if (\is_array($children)) {
|
567 | 584 | return new Node\Stmt\NullableTypeNode($children[1]);
|
568 | 585 | }
|
569 | 586 |
|
570 | 587 | return $children;
|
571 | 588 | },
|
572 |
| - 139 => function (\Phplrt\Parser\Context $ctx, $children) { |
| 589 | + 140 => function (\Phplrt\Parser\Context $ctx, $children) { |
573 | 590 | // The "$offset" variable is an auto-generated
|
574 | 591 | $offset = $ctx->lastProcessedToken->getOffset();
|
575 | 592 |
|
|
0 commit comments