6ccca996a8
Now ClosureUse is a container node for variable and reference nodes
6924 lines
252 KiB
Go
6924 lines
252 KiB
Go
//line php5/php5.y:2
|
|
package php5
|
|
|
|
import __yyfmt__ "fmt"
|
|
|
|
//line php5/php5.y:2
|
|
import (
|
|
"strconv"
|
|
"strings"
|
|
|
|
"github.com/z7zmey/php-parser/node"
|
|
"github.com/z7zmey/php-parser/node/expr"
|
|
"github.com/z7zmey/php-parser/node/expr/assign"
|
|
"github.com/z7zmey/php-parser/node/expr/binary"
|
|
"github.com/z7zmey/php-parser/node/expr/cast"
|
|
"github.com/z7zmey/php-parser/node/name"
|
|
"github.com/z7zmey/php-parser/node/scalar"
|
|
"github.com/z7zmey/php-parser/node/stmt"
|
|
"github.com/z7zmey/php-parser/scanner"
|
|
)
|
|
|
|
//line php5/php5.y:21
|
|
type yySymType struct {
|
|
yys int
|
|
node node.Node
|
|
token *scanner.Token
|
|
list []node.Node
|
|
simpleIndirectReference simpleIndirectReference
|
|
|
|
ClassExtends *stmt.ClassExtends
|
|
ClassImplements *stmt.ClassImplements
|
|
InterfaceExtends *stmt.InterfaceExtends
|
|
ClosureUse *expr.ClosureUse
|
|
}
|
|
|
|
const T_INCLUDE = 57346
|
|
const T_INCLUDE_ONCE = 57347
|
|
const T_EXIT = 57348
|
|
const T_IF = 57349
|
|
const T_LNUMBER = 57350
|
|
const T_DNUMBER = 57351
|
|
const T_STRING = 57352
|
|
const T_STRING_VARNAME = 57353
|
|
const T_VARIABLE = 57354
|
|
const T_NUM_STRING = 57355
|
|
const T_INLINE_HTML = 57356
|
|
const T_CHARACTER = 57357
|
|
const T_BAD_CHARACTER = 57358
|
|
const T_ENCAPSED_AND_WHITESPACE = 57359
|
|
const T_CONSTANT_ENCAPSED_STRING = 57360
|
|
const T_ECHO = 57361
|
|
const T_DO = 57362
|
|
const T_WHILE = 57363
|
|
const T_ENDWHILE = 57364
|
|
const T_FOR = 57365
|
|
const T_ENDFOR = 57366
|
|
const T_FOREACH = 57367
|
|
const T_ENDFOREACH = 57368
|
|
const T_DECLARE = 57369
|
|
const T_ENDDECLARE = 57370
|
|
const T_AS = 57371
|
|
const T_SWITCH = 57372
|
|
const T_ENDSWITCH = 57373
|
|
const T_CASE = 57374
|
|
const T_DEFAULT = 57375
|
|
const T_BREAK = 57376
|
|
const T_CONTINUE = 57377
|
|
const T_GOTO = 57378
|
|
const T_FUNCTION = 57379
|
|
const T_CONST = 57380
|
|
const T_RETURN = 57381
|
|
const T_TRY = 57382
|
|
const T_CATCH = 57383
|
|
const T_FINALLY = 57384
|
|
const T_THROW = 57385
|
|
const T_USE = 57386
|
|
const T_INSTEADOF = 57387
|
|
const T_GLOBAL = 57388
|
|
const T_VAR = 57389
|
|
const T_UNSET = 57390
|
|
const T_ISSET = 57391
|
|
const T_EMPTY = 57392
|
|
const T_HALT_COMPILER = 57393
|
|
const T_CLASS = 57394
|
|
const T_TRAIT = 57395
|
|
const T_INTERFACE = 57396
|
|
const T_EXTENDS = 57397
|
|
const T_IMPLEMENTS = 57398
|
|
const T_OBJECT_OPERATOR = 57399
|
|
const T_DOUBLE_ARROW = 57400
|
|
const T_LIST = 57401
|
|
const T_ARRAY = 57402
|
|
const T_CALLABLE = 57403
|
|
const T_CLASS_C = 57404
|
|
const T_TRAIT_C = 57405
|
|
const T_METHOD_C = 57406
|
|
const T_FUNC_C = 57407
|
|
const T_LINE = 57408
|
|
const T_FILE = 57409
|
|
const T_COMMENT = 57410
|
|
const T_DOC_COMMENT = 57411
|
|
const T_OPEN_TAG = 57412
|
|
const T_OPEN_TAG_WITH_ECHO = 57413
|
|
const T_CLOSE_TAG = 57414
|
|
const T_WHITESPACE = 57415
|
|
const T_START_HEREDOC = 57416
|
|
const T_END_HEREDOC = 57417
|
|
const T_DOLLAR_OPEN_CURLY_BRACES = 57418
|
|
const T_CURLY_OPEN = 57419
|
|
const T_PAAMAYIM_NEKUDOTAYIM = 57420
|
|
const T_NAMESPACE = 57421
|
|
const T_NS_C = 57422
|
|
const T_DIR = 57423
|
|
const T_NS_SEPARATOR = 57424
|
|
const T_ELLIPSIS = 57425
|
|
const T_EVAL = 57426
|
|
const T_REQUIRE = 57427
|
|
const T_REQUIRE_ONCE = 57428
|
|
const T_LOGICAL_OR = 57429
|
|
const T_LOGICAL_XOR = 57430
|
|
const T_LOGICAL_AND = 57431
|
|
const T_INSTANCEOF = 57432
|
|
const T_NEW = 57433
|
|
const T_CLONE = 57434
|
|
const T_ELSEIF = 57435
|
|
const T_ELSE = 57436
|
|
const T_ENDIF = 57437
|
|
const T_PRINT = 57438
|
|
const T_YIELD = 57439
|
|
const T_STATIC = 57440
|
|
const T_ABSTRACT = 57441
|
|
const T_FINAL = 57442
|
|
const T_PRIVATE = 57443
|
|
const T_PROTECTED = 57444
|
|
const T_PUBLIC = 57445
|
|
const T_INC = 57446
|
|
const T_DEC = 57447
|
|
const T_YIELD_FROM = 57448
|
|
const T_INT_CAST = 57449
|
|
const T_DOUBLE_CAST = 57450
|
|
const T_STRING_CAST = 57451
|
|
const T_ARRAY_CAST = 57452
|
|
const T_OBJECT_CAST = 57453
|
|
const T_BOOL_CAST = 57454
|
|
const T_UNSET_CAST = 57455
|
|
const T_COALESCE = 57456
|
|
const T_SPACESHIP = 57457
|
|
const T_NOELSE = 57458
|
|
const T_PLUS_EQUAL = 57459
|
|
const T_MINUS_EQUAL = 57460
|
|
const T_MUL_EQUAL = 57461
|
|
const T_POW_EQUAL = 57462
|
|
const T_DIV_EQUAL = 57463
|
|
const T_CONCAT_EQUAL = 57464
|
|
const T_MOD_EQUAL = 57465
|
|
const T_AND_EQUAL = 57466
|
|
const T_OR_EQUAL = 57467
|
|
const T_XOR_EQUAL = 57468
|
|
const T_SL_EQUAL = 57469
|
|
const T_SR_EQUAL = 57470
|
|
const T_BOOLEAN_OR = 57471
|
|
const T_BOOLEAN_AND = 57472
|
|
const T_POW = 57473
|
|
const T_SL = 57474
|
|
const T_SR = 57475
|
|
const T_IS_IDENTICAL = 57476
|
|
const T_IS_NOT_IDENTICAL = 57477
|
|
const T_IS_EQUAL = 57478
|
|
const T_IS_NOT_EQUAL = 57479
|
|
const T_IS_SMALLER_OR_EQUAL = 57480
|
|
const T_IS_GREATER_OR_EQUAL = 57481
|
|
|
|
var yyToknames = [...]string{
|
|
"$end",
|
|
"error",
|
|
"$unk",
|
|
"T_INCLUDE",
|
|
"T_INCLUDE_ONCE",
|
|
"T_EXIT",
|
|
"T_IF",
|
|
"T_LNUMBER",
|
|
"T_DNUMBER",
|
|
"T_STRING",
|
|
"T_STRING_VARNAME",
|
|
"T_VARIABLE",
|
|
"T_NUM_STRING",
|
|
"T_INLINE_HTML",
|
|
"T_CHARACTER",
|
|
"T_BAD_CHARACTER",
|
|
"T_ENCAPSED_AND_WHITESPACE",
|
|
"T_CONSTANT_ENCAPSED_STRING",
|
|
"T_ECHO",
|
|
"T_DO",
|
|
"T_WHILE",
|
|
"T_ENDWHILE",
|
|
"T_FOR",
|
|
"T_ENDFOR",
|
|
"T_FOREACH",
|
|
"T_ENDFOREACH",
|
|
"T_DECLARE",
|
|
"T_ENDDECLARE",
|
|
"T_AS",
|
|
"T_SWITCH",
|
|
"T_ENDSWITCH",
|
|
"T_CASE",
|
|
"T_DEFAULT",
|
|
"T_BREAK",
|
|
"T_CONTINUE",
|
|
"T_GOTO",
|
|
"T_FUNCTION",
|
|
"T_CONST",
|
|
"T_RETURN",
|
|
"T_TRY",
|
|
"T_CATCH",
|
|
"T_FINALLY",
|
|
"T_THROW",
|
|
"T_USE",
|
|
"T_INSTEADOF",
|
|
"T_GLOBAL",
|
|
"T_VAR",
|
|
"T_UNSET",
|
|
"T_ISSET",
|
|
"T_EMPTY",
|
|
"T_HALT_COMPILER",
|
|
"T_CLASS",
|
|
"T_TRAIT",
|
|
"T_INTERFACE",
|
|
"T_EXTENDS",
|
|
"T_IMPLEMENTS",
|
|
"T_OBJECT_OPERATOR",
|
|
"T_DOUBLE_ARROW",
|
|
"T_LIST",
|
|
"T_ARRAY",
|
|
"T_CALLABLE",
|
|
"T_CLASS_C",
|
|
"T_TRAIT_C",
|
|
"T_METHOD_C",
|
|
"T_FUNC_C",
|
|
"T_LINE",
|
|
"T_FILE",
|
|
"T_COMMENT",
|
|
"T_DOC_COMMENT",
|
|
"T_OPEN_TAG",
|
|
"T_OPEN_TAG_WITH_ECHO",
|
|
"T_CLOSE_TAG",
|
|
"T_WHITESPACE",
|
|
"T_START_HEREDOC",
|
|
"T_END_HEREDOC",
|
|
"T_DOLLAR_OPEN_CURLY_BRACES",
|
|
"T_CURLY_OPEN",
|
|
"T_PAAMAYIM_NEKUDOTAYIM",
|
|
"T_NAMESPACE",
|
|
"T_NS_C",
|
|
"T_DIR",
|
|
"T_NS_SEPARATOR",
|
|
"T_ELLIPSIS",
|
|
"T_EVAL",
|
|
"T_REQUIRE",
|
|
"T_REQUIRE_ONCE",
|
|
"T_LOGICAL_OR",
|
|
"T_LOGICAL_XOR",
|
|
"T_LOGICAL_AND",
|
|
"T_INSTANCEOF",
|
|
"T_NEW",
|
|
"T_CLONE",
|
|
"T_ELSEIF",
|
|
"T_ELSE",
|
|
"T_ENDIF",
|
|
"T_PRINT",
|
|
"T_YIELD",
|
|
"T_STATIC",
|
|
"T_ABSTRACT",
|
|
"T_FINAL",
|
|
"T_PRIVATE",
|
|
"T_PROTECTED",
|
|
"T_PUBLIC",
|
|
"T_INC",
|
|
"T_DEC",
|
|
"T_YIELD_FROM",
|
|
"T_INT_CAST",
|
|
"T_DOUBLE_CAST",
|
|
"T_STRING_CAST",
|
|
"T_ARRAY_CAST",
|
|
"T_OBJECT_CAST",
|
|
"T_BOOL_CAST",
|
|
"T_UNSET_CAST",
|
|
"T_COALESCE",
|
|
"T_SPACESHIP",
|
|
"T_NOELSE",
|
|
"T_PLUS_EQUAL",
|
|
"T_MINUS_EQUAL",
|
|
"T_MUL_EQUAL",
|
|
"T_POW_EQUAL",
|
|
"T_DIV_EQUAL",
|
|
"T_CONCAT_EQUAL",
|
|
"T_MOD_EQUAL",
|
|
"T_AND_EQUAL",
|
|
"T_OR_EQUAL",
|
|
"T_XOR_EQUAL",
|
|
"T_SL_EQUAL",
|
|
"T_SR_EQUAL",
|
|
"T_BOOLEAN_OR",
|
|
"T_BOOLEAN_AND",
|
|
"T_POW",
|
|
"T_SL",
|
|
"T_SR",
|
|
"T_IS_IDENTICAL",
|
|
"T_IS_NOT_IDENTICAL",
|
|
"T_IS_EQUAL",
|
|
"T_IS_NOT_EQUAL",
|
|
"T_IS_SMALLER_OR_EQUAL",
|
|
"T_IS_GREATER_OR_EQUAL",
|
|
"'\"'",
|
|
"'`'",
|
|
"'{'",
|
|
"'}'",
|
|
"';'",
|
|
"':'",
|
|
"'('",
|
|
"')'",
|
|
"'['",
|
|
"']'",
|
|
"'?'",
|
|
"'&'",
|
|
"'-'",
|
|
"'+'",
|
|
"'!'",
|
|
"'~'",
|
|
"'@'",
|
|
"'$'",
|
|
"','",
|
|
"'|'",
|
|
"'='",
|
|
"'^'",
|
|
"'*'",
|
|
"'/'",
|
|
"'%'",
|
|
"'<'",
|
|
"'>'",
|
|
"'.'",
|
|
}
|
|
var yyStatenames = [...]string{}
|
|
|
|
const yyEofCode = 1
|
|
const yyErrCode = 2
|
|
const yyInitialStackSize = 16
|
|
|
|
//line php5/php5.y:4005
|
|
|
|
type simpleIndirectReference struct {
|
|
all []*expr.Variable
|
|
last *expr.Variable
|
|
}
|
|
|
|
//line yacctab:1
|
|
var yyExca = [...]int{
|
|
-1, 1,
|
|
1, -1,
|
|
-2, 0,
|
|
-1, 2,
|
|
1, 1,
|
|
-2, 0,
|
|
-1, 51,
|
|
104, 435,
|
|
105, 435,
|
|
-2, 433,
|
|
-1, 102,
|
|
78, 332,
|
|
-2, 411,
|
|
-1, 114,
|
|
78, 451,
|
|
146, 447,
|
|
-2, 457,
|
|
-1, 154,
|
|
104, 435,
|
|
105, 435,
|
|
-2, 433,
|
|
-1, 204,
|
|
144, 306,
|
|
147, 306,
|
|
-2, 430,
|
|
-1, 205,
|
|
104, 435,
|
|
105, 435,
|
|
144, 307,
|
|
147, 307,
|
|
-2, 433,
|
|
-1, 271,
|
|
78, 451,
|
|
-2, 457,
|
|
-1, 298,
|
|
78, 334,
|
|
-2, 413,
|
|
-1, 302,
|
|
146, 448,
|
|
-2, 458,
|
|
-1, 311,
|
|
78, 333,
|
|
-2, 412,
|
|
-1, 378,
|
|
134, 0,
|
|
135, 0,
|
|
136, 0,
|
|
137, 0,
|
|
-2, 274,
|
|
-1, 379,
|
|
134, 0,
|
|
135, 0,
|
|
136, 0,
|
|
137, 0,
|
|
-2, 275,
|
|
-1, 380,
|
|
134, 0,
|
|
135, 0,
|
|
136, 0,
|
|
137, 0,
|
|
-2, 276,
|
|
-1, 381,
|
|
134, 0,
|
|
135, 0,
|
|
136, 0,
|
|
137, 0,
|
|
-2, 277,
|
|
-1, 382,
|
|
138, 0,
|
|
139, 0,
|
|
165, 0,
|
|
166, 0,
|
|
-2, 278,
|
|
-1, 383,
|
|
138, 0,
|
|
139, 0,
|
|
165, 0,
|
|
166, 0,
|
|
-2, 279,
|
|
-1, 384,
|
|
138, 0,
|
|
139, 0,
|
|
165, 0,
|
|
166, 0,
|
|
-2, 280,
|
|
-1, 385,
|
|
138, 0,
|
|
139, 0,
|
|
165, 0,
|
|
166, 0,
|
|
-2, 281,
|
|
-1, 392,
|
|
104, 435,
|
|
105, 435,
|
|
-2, 433,
|
|
-1, 400,
|
|
147, 142,
|
|
-2, 147,
|
|
-1, 462,
|
|
104, 435,
|
|
105, 435,
|
|
147, 514,
|
|
158, 514,
|
|
-2, 433,
|
|
-1, 463,
|
|
147, 515,
|
|
158, 515,
|
|
-2, 430,
|
|
-1, 464,
|
|
104, 435,
|
|
105, 435,
|
|
-2, 433,
|
|
-1, 486,
|
|
147, 156,
|
|
158, 156,
|
|
-2, 430,
|
|
-1, 487,
|
|
104, 435,
|
|
105, 435,
|
|
147, 157,
|
|
158, 157,
|
|
-2, 433,
|
|
-1, 493,
|
|
146, 472,
|
|
-2, 516,
|
|
-1, 499,
|
|
146, 472,
|
|
-2, 517,
|
|
-1, 521,
|
|
78, 332,
|
|
-2, 369,
|
|
-1, 539,
|
|
93, 135,
|
|
94, 135,
|
|
95, 135,
|
|
-2, 0,
|
|
-1, 551,
|
|
147, 142,
|
|
-2, 147,
|
|
-1, 564,
|
|
147, 142,
|
|
-2, 147,
|
|
-1, 581,
|
|
144, 308,
|
|
147, 308,
|
|
-2, 430,
|
|
-1, 582,
|
|
104, 435,
|
|
105, 435,
|
|
144, 309,
|
|
147, 309,
|
|
-2, 433,
|
|
-1, 681,
|
|
78, 334,
|
|
-2, 371,
|
|
-1, 779,
|
|
134, 0,
|
|
135, 0,
|
|
136, 0,
|
|
137, 0,
|
|
-2, 397,
|
|
-1, 780,
|
|
134, 0,
|
|
135, 0,
|
|
136, 0,
|
|
137, 0,
|
|
-2, 398,
|
|
-1, 781,
|
|
134, 0,
|
|
135, 0,
|
|
136, 0,
|
|
137, 0,
|
|
-2, 399,
|
|
-1, 782,
|
|
134, 0,
|
|
135, 0,
|
|
136, 0,
|
|
137, 0,
|
|
-2, 400,
|
|
-1, 783,
|
|
138, 0,
|
|
139, 0,
|
|
165, 0,
|
|
166, 0,
|
|
-2, 401,
|
|
-1, 784,
|
|
138, 0,
|
|
139, 0,
|
|
165, 0,
|
|
166, 0,
|
|
-2, 402,
|
|
-1, 785,
|
|
138, 0,
|
|
139, 0,
|
|
165, 0,
|
|
166, 0,
|
|
-2, 403,
|
|
-1, 786,
|
|
138, 0,
|
|
139, 0,
|
|
165, 0,
|
|
166, 0,
|
|
-2, 404,
|
|
-1, 789,
|
|
78, 333,
|
|
-2, 370,
|
|
-1, 839,
|
|
37, 201,
|
|
-2, 198,
|
|
-1, 879,
|
|
31, 128,
|
|
32, 128,
|
|
33, 128,
|
|
143, 128,
|
|
-2, 0,
|
|
-1, 914,
|
|
95, 140,
|
|
-2, 0,
|
|
-1, 916,
|
|
31, 127,
|
|
32, 127,
|
|
33, 127,
|
|
143, 127,
|
|
-2, 0,
|
|
-1, 943,
|
|
93, 136,
|
|
94, 136,
|
|
95, 136,
|
|
-2, 0,
|
|
-1, 971,
|
|
29, 189,
|
|
-2, 4,
|
|
-1, 980,
|
|
147, 142,
|
|
-2, 147,
|
|
-1, 997,
|
|
144, 193,
|
|
-2, 195,
|
|
}
|
|
|
|
const yyPrivate = 57344
|
|
|
|
const yyLast = 9012
|
|
|
|
var yyAct = [...]int{
|
|
|
|
102, 571, 843, 565, 1006, 965, 714, 807, 420, 826,
|
|
123, 131, 606, 200, 340, 918, 734, 567, 452, 815,
|
|
474, 683, 296, 594, 461, 592, 421, 61, 579, 142,
|
|
319, 315, 39, 98, 264, 390, 158, 517, 130, 2,
|
|
444, 115, 289, 978, 959, 118, 138, 140, 447, 544,
|
|
145, 485, 937, 657, 663, 664, 228, 228, 162, 477,
|
|
657, 331, 934, 941, 7, 940, 931, 821, 330, 737,
|
|
653, 6, 43, 26, 655, 654, 709, 653, 562, 939,
|
|
657, 267, 44, 516, 656, 658, 659, 358, 432, 665,
|
|
325, 656, 658, 659, 953, 932, 1002, 653, 735, 921,
|
|
251, 655, 654, 793, 298, 954, 897, 853, 153, 933,
|
|
586, 656, 658, 659, 270, 728, 665, 137, 586, 543,
|
|
898, 493, 272, 121, 192, 204, 311, 632, 192, 316,
|
|
320, 618, 585, 323, 114, 258, 329, 241, 633, 5,
|
|
510, 305, 619, 586, 450, 121, 121, 192, 499, 121,
|
|
121, 657, 663, 664, 511, 560, 339, 141, 677, 678,
|
|
126, 228, 121, 494, 310, 179, 561, 39, 653, 179,
|
|
182, 183, 655, 654, 159, 475, 357, 201, 556, 162,
|
|
506, 976, 656, 658, 659, 675, 676, 665, 179, 557,
|
|
177, 176, 359, 267, 507, 228, 178, 180, 181, 929,
|
|
178, 180, 181, 907, 117, 175, 360, 906, 355, 177,
|
|
176, 350, 904, 241, 126, 271, 121, 104, 861, 178,
|
|
180, 181, 356, 228, 175, 351, 270, 386, 126, 229,
|
|
121, 425, 230, 352, 272, 312, 210, 211, 212, 213,
|
|
214, 215, 216, 217, 218, 219, 220, 221, 233, 313,
|
|
302, 133, 657, 451, 855, 791, 595, 745, 301, 639,
|
|
232, 232, 228, 717, 300, 134, 620, 631, 120, 653,
|
|
456, 630, 624, 231, 231, 333, 451, 336, 393, 209,
|
|
451, 623, 611, 229, 597, 273, 230, 453, 610, 749,
|
|
120, 120, 353, 228, 303, 120, 596, 229, 265, 595,
|
|
230, 473, 233, 440, 748, 449, 604, 120, 294, 446,
|
|
295, 293, 287, 281, 131, 396, 233, 1018, 509, 160,
|
|
977, 490, 513, 254, 241, 253, 521, 271, 1001, 950,
|
|
915, 472, 885, 882, 504, 870, 825, 814, 930, 727,
|
|
39, 449, 693, 434, 634, 492, 449, 740, 491, 502,
|
|
498, 399, 505, 497, 625, 716, 621, 463, 465, 521,
|
|
430, 120, 428, 307, 913, 232, 541, 1013, 980, 892,
|
|
467, 484, 7, 139, 297, 120, 471, 297, 231, 6,
|
|
486, 824, 479, 480, 818, 809, 808, 192, 548, 495,
|
|
593, 682, 436, 437, 439, 546, 552, 273, 448, 232,
|
|
587, 572, 564, 572, 577, 572, 580, 458, 228, 551,
|
|
265, 400, 231, 537, 344, 288, 278, 345, 437, 436,
|
|
436, 295, 437, 275, 274, 588, 39, 232, 179, 182,
|
|
183, 250, 222, 196, 448, 189, 191, 195, 194, 448,
|
|
231, 144, 122, 1010, 876, 1009, 999, 5, 490, 177,
|
|
176, 135, 539, 989, 984, 540, 615, 983, 923, 178,
|
|
180, 181, 188, 190, 175, 912, 232, 609, 449, 449,
|
|
703, 704, 492, 498, 880, 491, 497, 811, 805, 231,
|
|
804, 309, 798, 308, 712, 1019, 699, 400, 581, 228,
|
|
703, 704, 547, 545, 542, 501, 449, 232, 616, 449,
|
|
614, 449, 398, 446, 348, 617, 156, 981, 316, 905,
|
|
231, 126, 320, 605, 637, 638, 975, 521, 917, 891,
|
|
641, 642, 890, 888, 681, 732, 521, 578, 306, 197,
|
|
435, 179, 39, 521, 521, 521, 521, 521, 192, 645,
|
|
224, 225, 648, 531, 874, 802, 803, 830, 635, 695,
|
|
696, 650, 572, 257, 652, 710, 647, 700, 228, 228,
|
|
228, 448, 448, 521, 7, 572, 718, 295, 726, 39,
|
|
39, 6, 91, 126, 515, 731, 531, 572, 580, 179,
|
|
126, 810, 729, 125, 612, 267, 259, 228, 228, 448,
|
|
730, 438, 448, 713, 448, 705, 739, 707, 680, 455,
|
|
723, 702, 424, 125, 295, 733, 987, 128, 129, 295,
|
|
687, 504, 232, 738, 126, 459, 742, 741, 270, 736,
|
|
126, 454, 126, 569, 570, 231, 272, 295, 228, 971,
|
|
228, 518, 427, 426, 304, 512, 744, 449, 299, 5,
|
|
126, 446, 573, 124, 754, 574, 282, 286, 469, 686,
|
|
260, 261, 132, 816, 521, 521, 521, 521, 521, 521,
|
|
521, 521, 521, 521, 521, 521, 521, 521, 521, 521,
|
|
521, 521, 521, 521, 521, 521, 521, 521, 521, 521,
|
|
521, 789, 743, 521, 54, 758, 321, 756, 295, 757,
|
|
864, 573, 317, 232, 574, 508, 259, 720, 573, 750,
|
|
595, 574, 463, 322, 790, 792, 231, 285, 62, 126,
|
|
521, 121, 132, 126, 468, 121, 486, 228, 126, 271,
|
|
121, 457, 263, 799, 576, 404, 402, 795, 208, 572,
|
|
448, 831, 207, 985, 531, 827, 572, 850, 819, 823,
|
|
226, 234, 1007, 531, 45, 725, 828, 813, 295, 832,
|
|
531, 531, 531, 531, 531, 851, 295, 856, 423, 453,
|
|
260, 261, 232, 232, 232, 742, 986, 609, 163, 796,
|
|
559, 858, 239, 338, 1017, 231, 231, 231, 229, 991,
|
|
531, 230, 268, 957, 955, 269, 925, 229, 521, 273,
|
|
230, 232, 232, 45, 521, 521, 896, 233, 259, 584,
|
|
893, 233, 265, 438, 231, 231, 233, 847, 848, 849,
|
|
846, 845, 844, 599, 878, 601, 600, 228, 550, 228,
|
|
877, 1003, 521, 883, 881, 572, 889, 884, 998, 854,
|
|
875, 960, 232, 800, 232, 935, 901, 859, 860, 820,
|
|
126, 760, 900, 572, 903, 231, 759, 231, 722, 651,
|
|
39, 649, 259, 1, 646, 259, 120, 284, 602, 887,
|
|
120, 470, 260, 261, 259, 120, 514, 228, 899, 438,
|
|
521, 531, 531, 531, 531, 531, 531, 531, 531, 531,
|
|
531, 531, 531, 531, 531, 531, 531, 531, 531, 531,
|
|
531, 531, 531, 531, 531, 531, 531, 531, 519, 259,
|
|
531, 922, 481, 259, 283, 908, 449, 395, 256, 39,
|
|
446, 324, 521, 936, 203, 285, 260, 261, 469, 260,
|
|
261, 232, 202, 199, 136, 879, 909, 531, 260, 261,
|
|
829, 519, 521, 747, 231, 521, 873, 753, 521, 863,
|
|
572, 962, 572, 970, 39, 445, 39, 812, 703, 704,
|
|
706, 703, 704, 608, 39, 589, 39, 39, 590, 591,
|
|
521, 684, 255, 260, 261, 572, 970, 260, 261, 956,
|
|
982, 839, 958, 39, 994, 961, 964, 39, 39, 521,
|
|
963, 572, 902, 483, 993, 895, 572, 995, 838, 997,
|
|
835, 566, 1005, 1004, 914, 724, 916, 979, 394, 448,
|
|
389, 164, 39, 572, 1011, 531, 924, 341, 926, 927,
|
|
1012, 531, 531, 697, 572, 1015, 992, 538, 928, 919,
|
|
39, 232, 919, 232, 290, 558, 460, 161, 157, 318,
|
|
314, 943, 127, 403, 231, 947, 231, 575, 948, 531,
|
|
401, 335, 944, 1008, 39, 343, 938, 528, 607, 996,
|
|
39, 969, 945, 968, 967, 966, 837, 836, 834, 40,
|
|
568, 15, 14, 822, 972, 719, 801, 694, 11, 249,
|
|
75, 232, 76, 116, 266, 64, 89, 598, 90, 520,
|
|
101, 74, 12, 326, 231, 100, 99, 531, 79, 519,
|
|
119, 526, 3, 990, 41, 0, 0, 0, 519, 0,
|
|
0, 0, 0, 0, 0, 519, 519, 519, 519, 519,
|
|
0, 0, 0, 210, 211, 212, 213, 214, 215, 216,
|
|
217, 218, 219, 220, 221, 0, 0, 0, 1014, 531,
|
|
0, 0, 0, 0, 0, 519, 0, 1020, 0, 0,
|
|
169, 171, 170, 192, 0, 0, 0, 0, 0, 531,
|
|
0, 0, 531, 0, 0, 531, 209, 685, 0, 0,
|
|
0, 0, 0, 0, 688, 689, 690, 691, 692, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 531, 0, 0,
|
|
0, 0, 167, 168, 179, 182, 183, 184, 185, 186,
|
|
187, 189, 191, 0, 0, 0, 531, 809, 808, 0,
|
|
0, 0, 0, 193, 173, 177, 176, 0, 0, 0,
|
|
0, 0, 172, 0, 174, 178, 180, 181, 188, 190,
|
|
175, 0, 0, 0, 0, 0, 519, 519, 519, 519,
|
|
519, 519, 519, 519, 519, 519, 519, 519, 519, 519,
|
|
519, 519, 519, 519, 519, 519, 519, 519, 519, 519,
|
|
519, 519, 519, 0, 0, 519, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 668, 666, 667, 0, 0, 0, 0,
|
|
0, 0, 519, 0, 0, 761, 762, 763, 764, 765,
|
|
766, 767, 768, 769, 770, 771, 772, 773, 774, 775,
|
|
776, 777, 778, 779, 780, 781, 782, 783, 784, 785,
|
|
786, 788, 0, 0, 685, 670, 669, 657, 663, 664,
|
|
671, 672, 673, 674, 677, 678, 668, 666, 667, 0,
|
|
0, 869, 0, 0, 653, 0, 679, 661, 655, 654,
|
|
0, 0, 0, 0, 0, 660, 0, 662, 656, 658,
|
|
659, 675, 676, 665, 0, 0, 0, 0, 0, 0,
|
|
519, 0, 0, 0, 0, 0, 519, 519, 670, 669,
|
|
657, 663, 664, 671, 672, 673, 674, 677, 678, 0,
|
|
0, 0, 0, 0, 0, 31, 0, 653, 867, 679,
|
|
661, 655, 654, 0, 519, 0, 0, 0, 660, 0,
|
|
662, 656, 658, 659, 675, 676, 665, 0, 0, 147,
|
|
151, 155, 0, 0, 0, 165, 0, 0, 0, 868,
|
|
0, 0, 51, 198, 0, 871, 872, 0, 206, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 223,
|
|
0, 0, 519, 235, 236, 237, 238, 0, 154, 240,
|
|
0, 242, 243, 244, 245, 246, 247, 248, 0, 252,
|
|
0, 0, 0, 0, 262, 205, 0, 0, 0, 276,
|
|
277, 0, 279, 280, 0, 0, 0, 0, 227, 227,
|
|
0, 0, 0, 291, 519, 210, 211, 212, 213, 214,
|
|
215, 216, 217, 218, 219, 220, 221, 0, 0, 0,
|
|
0, 910, 0, 0, 519, 0, 0, 519, 0, 0,
|
|
519, 0, 670, 669, 657, 663, 664, 671, 672, 673,
|
|
674, 677, 678, 0, 0, 240, 0, 0, 209, 0,
|
|
342, 653, 519, 679, 661, 655, 654, 0, 0, 0,
|
|
0, 0, 660, 942, 662, 656, 658, 659, 675, 676,
|
|
665, 519, 0, 361, 362, 363, 364, 365, 366, 367,
|
|
368, 369, 370, 371, 372, 373, 374, 375, 376, 377,
|
|
378, 379, 380, 381, 382, 383, 384, 385, 0, 387,
|
|
0, 155, 0, 354, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 406, 408, 409, 410, 411,
|
|
412, 413, 414, 415, 416, 417, 418, 419, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 391, 392, 670,
|
|
669, 657, 663, 664, 671, 672, 673, 674, 677, 678,
|
|
0, 0, 0, 0, 0, 0, 240, 0, 653, 433,
|
|
433, 661, 655, 654, 0, 422, 441, 0, 0, 660,
|
|
0, 662, 656, 658, 659, 675, 676, 665, 0, 0,
|
|
155, 155, 0, 0, 466, 0, 0, 433, 0, 0,
|
|
0, 0, 0, 433, 291, 0, 0, 0, 0, 433,
|
|
433, 0, 0, 155, 443, 0, 433, 496, 0, 0,
|
|
0, 0, 500, 0, 0, 0, 0, 462, 464, 0,
|
|
0, 0, 83, 84, 72, 0, 105, 106, 126, 88,
|
|
121, 0, 0, 0, 0, 478, 95, 0, 0, 0,
|
|
487, 0, 0, 210, 211, 212, 213, 214, 215, 216,
|
|
217, 218, 219, 220, 221, 45, 0, 0, 0, 549,
|
|
0, 0, 0, 0, 0, 0, 553, 81, 82, 0,
|
|
349, 0, 0, 0, 0, 0, 0, 52, 96, 0,
|
|
94, 110, 111, 112, 107, 108, 209, 0, 0, 0,
|
|
0, 0, 93, 0, 555, 0, 0, 143, 113, 109,
|
|
103, 489, 85, 86, 87, 0, 0, 0, 0, 80,
|
|
53, 155, 911, 0, 78, 42, 149, 0, 0, 0,
|
|
0, 0, 55, 56, 0, 65, 66, 67, 68, 69,
|
|
70, 71, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 668, 666, 667, 0, 0, 0, 0, 582, 0,
|
|
583, 0, 0, 0, 0, 0, 0, 613, 92, 77,
|
|
0, 0, 0, 0, 63, 482, 97, 0, 0, 488,
|
|
58, 57, 59, 60, 73, 120, 0, 0, 0, 0,
|
|
0, 626, 628, 670, 669, 657, 663, 664, 671, 672,
|
|
673, 674, 677, 678, 667, 636, 0, 0, 0, 0,
|
|
0, 0, 653, 0, 679, 661, 655, 654, 0, 0,
|
|
0, 0, 0, 660, 0, 662, 656, 658, 659, 675,
|
|
676, 665, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 478, 0, 0, 670, 669, 657, 663, 664, 671,
|
|
672, 673, 674, 677, 678, 0, 192, 0, 342, 701,
|
|
0, 0, 0, 653, 0, 679, 661, 655, 654, 0,
|
|
711, 0, 0, 0, 660, 0, 662, 656, 658, 659,
|
|
675, 676, 665, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 179, 182, 183,
|
|
184, 185, 186, 187, 189, 191, 0, 0, 0, 433,
|
|
391, 715, 715, 169, 171, 170, 192, 173, 177, 176,
|
|
746, 0, 0, 0, 0, 0, 433, 751, 178, 180,
|
|
181, 188, 190, 175, 0, 155, 0, 0, 0, 422,
|
|
422, 0, 0, 0, 0, 0, 0, 0, 0, 155,
|
|
0, 0, 668, 666, 667, 167, 168, 179, 182, 183,
|
|
184, 185, 186, 187, 189, 191, 0, 0, 0, 862,
|
|
0, 0, 462, 0, 0, 841, 193, 173, 177, 176,
|
|
478, 842, 478, 0, 840, 172, 487, 174, 178, 180,
|
|
181, 188, 190, 175, 670, 669, 657, 663, 664, 671,
|
|
672, 673, 674, 677, 678, 0, 0, 0, 0, 0,
|
|
0, 0, 797, 653, 0, 679, 661, 655, 654, 806,
|
|
0, 0, 0, 0, 660, 0, 662, 656, 658, 659,
|
|
675, 676, 665, 0, 0, 847, 848, 849, 846, 845,
|
|
844, 657, 663, 664, 671, 672, 673, 674, 677, 678,
|
|
0, 0, 0, 852, 0, 0, 433, 0, 653, 0,
|
|
0, 661, 655, 654, 433, 433, 0, 0, 0, 817,
|
|
0, 865, 656, 658, 659, 675, 676, 665, 0, 0,
|
|
894, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 4, 0, 83, 84, 72,
|
|
18, 105, 106, 13, 88, 121, 0, 30, 0, 0,
|
|
0, 95, 29, 20, 19, 0, 21, 0, 33, 0,
|
|
34, 342, 0, 22, 0, 0, 0, 23, 24, 38,
|
|
45, 16, 25, 36, 0, 0, 37, 10, 0, 27,
|
|
0, 32, 81, 82, 8, 46, 48, 50, 0, 0,
|
|
0, 0, 52, 96, 0, 94, 110, 111, 112, 107,
|
|
108, 0, 0, 0, 0, 0, 0, 93, 0, 715,
|
|
0, 422, 9, 113, 109, 103, 0, 85, 86, 87,
|
|
0, 0, 0, 0, 80, 53, 0, 0, 0, 78,
|
|
42, 28, 47, 49, 0, 0, 0, 55, 56, 0,
|
|
65, 66, 67, 68, 69, 70, 71, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 478,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 92, 77, 17, 644, 35, 0, 63,
|
|
0, 97, 0, 0, 0, 58, 57, 59, 60, 73,
|
|
120, 4, 0, 83, 84, 72, 18, 105, 106, 13,
|
|
88, 121, 0, 30, 0, 0, 0, 95, 29, 20,
|
|
19, 0, 21, 0, 33, 0, 34, 0, 0, 22,
|
|
0, 0, 0, 23, 24, 38, 45, 16, 25, 36,
|
|
0, 0, 37, 10, 0, 27, 0, 32, 81, 82,
|
|
8, 46, 48, 50, 0, 0, 0, 0, 52, 96,
|
|
0, 94, 110, 111, 112, 107, 108, 0, 0, 0,
|
|
0, 0, 0, 93, 0, 0, 0, 0, 9, 113,
|
|
109, 103, 0, 85, 86, 87, 0, 0, 0, 0,
|
|
80, 53, 0, 0, 0, 78, 42, 28, 47, 49,
|
|
0, 0, 0, 55, 56, 0, 65, 66, 67, 68,
|
|
69, 70, 71, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 92,
|
|
77, 17, 503, 35, 0, 63, 0, 97, 0, 0,
|
|
0, 58, 57, 59, 60, 73, 120, 4, 0, 83,
|
|
84, 72, 18, 105, 106, 13, 88, 121, 0, 30,
|
|
0, 0, 0, 95, 29, 20, 19, 0, 21, 0,
|
|
33, 0, 34, 0, 0, 22, 0, 0, 0, 23,
|
|
24, 38, 45, 16, 25, 36, 0, 0, 37, 10,
|
|
0, 27, 0, 32, 81, 82, 8, 46, 48, 50,
|
|
0, 0, 0, 0, 52, 96, 0, 94, 110, 111,
|
|
112, 107, 108, 0, 0, 0, 0, 0, 0, 93,
|
|
0, 0, 0, 0, 9, 113, 109, 103, 0, 85,
|
|
86, 87, 0, 0, 0, 0, 80, 53, 0, 0,
|
|
0, 78, 42, 28, 47, 49, 0, 0, 0, 55,
|
|
56, 0, 65, 66, 67, 68, 69, 70, 71, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 92, 77, 17, 0, 35,
|
|
0, 63, 0, 97, 0, 0, 0, 58, 57, 59,
|
|
60, 73, 120, 328, 0, 83, 84, 72, 18, 105,
|
|
106, 13, 88, 121, 0, 30, 0, 0, 0, 95,
|
|
29, 20, 19, 0, 21, 0, 33, 0, 34, 0,
|
|
0, 22, 0, 0, 0, 23, 24, 38, 45, 0,
|
|
25, 36, 0, 0, 37, 0, 0, 27, 0, 32,
|
|
81, 82, 332, 46, 48, 50, 0, 0, 0, 0,
|
|
52, 96, 0, 94, 110, 111, 112, 107, 108, 0,
|
|
0, 0, 0, 0, 0, 93, 0, 0, 0, 0,
|
|
143, 113, 109, 103, 0, 85, 86, 87, 0, 0,
|
|
0, 0, 80, 53, 0, 0, 0, 78, 42, 28,
|
|
47, 49, 0, 0, 0, 55, 56, 0, 65, 66,
|
|
67, 68, 69, 70, 71, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 92, 77, 17, 1021, 35, 0, 63, 0, 97,
|
|
0, 0, 0, 58, 57, 59, 60, 73, 120, 328,
|
|
0, 83, 84, 72, 18, 105, 106, 13, 88, 121,
|
|
0, 30, 0, 0, 0, 95, 29, 20, 19, 0,
|
|
21, 0, 33, 0, 34, 0, 0, 22, 0, 0,
|
|
0, 23, 24, 38, 45, 0, 25, 36, 0, 0,
|
|
37, 0, 0, 27, 0, 32, 81, 82, 332, 46,
|
|
48, 50, 0, 0, 0, 0, 52, 96, 0, 94,
|
|
110, 111, 112, 107, 108, 0, 0, 0, 0, 0,
|
|
0, 93, 0, 0, 0, 0, 143, 113, 109, 103,
|
|
0, 85, 86, 87, 0, 0, 0, 0, 80, 53,
|
|
0, 0, 0, 78, 42, 28, 47, 49, 0, 0,
|
|
0, 55, 56, 0, 65, 66, 67, 68, 69, 70,
|
|
71, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 92, 77, 17,
|
|
1016, 35, 0, 63, 0, 97, 0, 0, 0, 58,
|
|
57, 59, 60, 73, 120, 328, 0, 83, 84, 72,
|
|
18, 105, 106, 13, 88, 121, 0, 30, 0, 0,
|
|
0, 95, 29, 20, 19, 0, 21, 0, 33, 0,
|
|
34, 0, 0, 22, 0, 0, 0, 23, 24, 38,
|
|
45, 0, 25, 36, 0, 0, 37, 0, 0, 27,
|
|
0, 32, 81, 82, 332, 46, 48, 50, 0, 0,
|
|
0, 0, 52, 96, 0, 94, 110, 111, 112, 107,
|
|
108, 0, 0, 0, 0, 0, 0, 93, 0, 0,
|
|
0, 0, 143, 113, 109, 103, 0, 85, 86, 87,
|
|
0, 0, 0, 0, 80, 53, 0, 0, 0, 78,
|
|
42, 28, 47, 49, 0, 0, 0, 55, 56, 0,
|
|
65, 66, 67, 68, 69, 70, 71, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 92, 77, 17, 1000, 35, 0, 63,
|
|
0, 97, 0, 0, 0, 58, 57, 59, 60, 73,
|
|
120, 328, 0, 83, 84, 72, 18, 105, 106, 13,
|
|
88, 121, 0, 30, 0, 0, 0, 95, 29, 20,
|
|
19, 0, 21, 988, 33, 0, 34, 0, 0, 22,
|
|
0, 0, 0, 23, 24, 38, 45, 0, 25, 36,
|
|
0, 0, 37, 0, 0, 27, 0, 32, 81, 82,
|
|
332, 46, 48, 50, 0, 0, 0, 0, 52, 96,
|
|
0, 94, 110, 111, 112, 107, 108, 0, 0, 0,
|
|
0, 0, 0, 93, 0, 0, 0, 0, 143, 113,
|
|
109, 103, 0, 85, 86, 87, 0, 0, 0, 0,
|
|
80, 53, 0, 0, 0, 78, 42, 28, 47, 49,
|
|
0, 0, 0, 55, 56, 0, 65, 66, 67, 68,
|
|
69, 70, 71, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 92,
|
|
77, 17, 0, 35, 0, 63, 0, 97, 0, 0,
|
|
0, 58, 57, 59, 60, 73, 120, 328, 0, 83,
|
|
84, 72, 18, 105, 106, 13, 88, 121, 0, 30,
|
|
0, 0, 0, 95, 29, 20, 19, 0, 21, 0,
|
|
33, 974, 34, 0, 0, 22, 0, 0, 0, 23,
|
|
24, 38, 45, 0, 25, 36, 0, 0, 37, 0,
|
|
0, 27, 0, 32, 81, 82, 332, 46, 48, 50,
|
|
0, 0, 0, 0, 52, 96, 0, 94, 110, 111,
|
|
112, 107, 108, 0, 0, 0, 0, 0, 0, 93,
|
|
0, 0, 0, 0, 143, 113, 109, 103, 0, 85,
|
|
86, 87, 0, 0, 0, 0, 80, 53, 0, 0,
|
|
0, 78, 42, 28, 47, 49, 0, 0, 0, 55,
|
|
56, 0, 65, 66, 67, 68, 69, 70, 71, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 92, 77, 17, 0, 35,
|
|
0, 63, 0, 97, 0, 0, 0, 58, 57, 59,
|
|
60, 73, 120, 328, 0, 83, 84, 72, 18, 105,
|
|
106, 13, 88, 121, 0, 30, 0, 0, 0, 95,
|
|
29, 20, 19, 0, 21, 0, 33, 0, 34, 0,
|
|
0, 22, 0, 0, 0, 23, 24, 38, 45, 0,
|
|
25, 36, 0, 0, 37, 0, 0, 27, 0, 32,
|
|
81, 82, 332, 46, 48, 50, 0, 0, 0, 0,
|
|
52, 96, 0, 94, 110, 111, 112, 107, 108, 0,
|
|
0, 0, 0, 0, 0, 93, 0, 0, 0, 0,
|
|
143, 113, 109, 103, 0, 85, 86, 87, 0, 0,
|
|
0, 0, 80, 53, 0, 0, 0, 78, 42, 28,
|
|
47, 49, 0, 0, 0, 55, 56, 0, 65, 66,
|
|
67, 68, 69, 70, 71, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 92, 77, 17, 973, 35, 0, 63, 0, 97,
|
|
0, 0, 0, 58, 57, 59, 60, 73, 120, 328,
|
|
0, 83, 84, 72, 18, 105, 106, 13, 88, 121,
|
|
0, 30, 0, 0, 0, 95, 29, 20, 19, 0,
|
|
21, 0, 33, 0, 34, 0, 0, 22, 0, 0,
|
|
0, 23, 24, 38, 45, 0, 25, 36, 0, 0,
|
|
37, 0, 0, 27, 0, 32, 81, 82, 332, 46,
|
|
48, 50, 0, 0, 0, 0, 52, 96, 0, 94,
|
|
110, 111, 112, 107, 108, 0, 0, 0, 0, 0,
|
|
0, 93, 0, 0, 0, 0, 143, 113, 109, 103,
|
|
0, 85, 86, 87, 0, 0, 0, 0, 80, 53,
|
|
0, 0, 0, 78, 42, 28, 47, 49, 0, 0,
|
|
0, 55, 56, 0, 65, 66, 67, 68, 69, 70,
|
|
71, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 92, 77, 17,
|
|
952, 35, 0, 63, 0, 97, 0, 0, 0, 58,
|
|
57, 59, 60, 73, 120, 328, 0, 83, 84, 72,
|
|
18, 105, 106, 13, 88, 121, 0, 30, 0, 0,
|
|
0, 95, 29, 20, 19, 0, 21, 0, 33, 0,
|
|
34, 0, 0, 22, 0, 0, 0, 23, 24, 38,
|
|
45, 0, 25, 36, 0, 0, 37, 0, 0, 27,
|
|
0, 32, 81, 82, 332, 46, 48, 50, 0, 0,
|
|
0, 0, 52, 96, 0, 94, 110, 111, 112, 107,
|
|
108, 0, 0, 0, 0, 0, 0, 93, 0, 0,
|
|
0, 0, 143, 113, 109, 103, 0, 85, 86, 87,
|
|
0, 0, 0, 0, 80, 53, 0, 0, 0, 78,
|
|
42, 28, 47, 49, 0, 0, 0, 55, 56, 0,
|
|
65, 66, 67, 68, 69, 70, 71, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 92, 77, 17, 951, 35, 0, 63,
|
|
0, 97, 0, 0, 0, 58, 57, 59, 60, 73,
|
|
120, 328, 0, 83, 84, 72, 18, 105, 106, 13,
|
|
88, 121, 0, 30, 0, 0, 0, 95, 29, 20,
|
|
19, 0, 21, 0, 33, 0, 34, 0, 0, 22,
|
|
0, 0, 0, 23, 24, 38, 45, 0, 25, 36,
|
|
0, 0, 37, 0, 0, 27, 0, 32, 81, 82,
|
|
332, 46, 48, 50, 0, 0, 0, 0, 52, 96,
|
|
0, 94, 110, 111, 112, 107, 108, 0, 0, 0,
|
|
0, 0, 0, 93, 0, 0, 0, 0, 143, 113,
|
|
109, 103, 0, 85, 86, 87, 0, 0, 0, 0,
|
|
80, 53, 0, 0, 0, 78, 42, 28, 47, 49,
|
|
0, 0, 0, 55, 56, 0, 65, 66, 67, 68,
|
|
69, 70, 71, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 92,
|
|
77, 17, 949, 35, 0, 63, 0, 97, 0, 0,
|
|
0, 58, 57, 59, 60, 73, 120, 328, 0, 83,
|
|
84, 72, 18, 105, 106, 13, 88, 121, 0, 30,
|
|
0, 0, 0, 95, 29, 20, 19, 0, 21, 0,
|
|
33, 0, 34, 886, 0, 22, 0, 0, 0, 23,
|
|
24, 38, 45, 0, 25, 36, 0, 0, 37, 0,
|
|
0, 27, 0, 32, 81, 82, 332, 46, 48, 50,
|
|
0, 0, 0, 0, 52, 96, 0, 94, 110, 111,
|
|
112, 107, 108, 0, 0, 0, 0, 0, 0, 93,
|
|
0, 0, 0, 0, 143, 113, 109, 103, 0, 85,
|
|
86, 87, 0, 0, 0, 0, 80, 53, 0, 0,
|
|
0, 78, 42, 28, 47, 49, 0, 0, 0, 55,
|
|
56, 0, 65, 66, 67, 68, 69, 70, 71, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 92, 77, 17, 0, 35,
|
|
0, 63, 0, 97, 0, 0, 0, 58, 57, 59,
|
|
60, 73, 120, 328, 0, 83, 84, 72, 18, 105,
|
|
106, 13, 88, 121, 0, 30, 0, 0, 0, 95,
|
|
29, 20, 19, 698, 21, 0, 33, 0, 34, 0,
|
|
0, 22, 0, 0, 0, 23, 24, 38, 45, 0,
|
|
25, 36, 0, 0, 37, 0, 0, 27, 0, 32,
|
|
81, 82, 332, 46, 48, 50, 0, 0, 0, 0,
|
|
52, 96, 0, 94, 110, 111, 112, 107, 108, 0,
|
|
0, 0, 0, 0, 0, 93, 0, 0, 0, 0,
|
|
143, 113, 109, 103, 0, 85, 86, 87, 0, 0,
|
|
0, 0, 80, 53, 0, 0, 0, 78, 42, 28,
|
|
47, 49, 0, 0, 0, 55, 56, 0, 65, 66,
|
|
67, 68, 69, 70, 71, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 92, 77, 17, 0, 35, 0, 63, 0, 97,
|
|
0, 0, 0, 58, 57, 59, 60, 73, 120, 328,
|
|
0, 83, 84, 72, 18, 105, 106, 13, 88, 121,
|
|
0, 30, 0, 0, 0, 95, 29, 20, 19, 0,
|
|
21, 0, 33, 0, 34, 0, 0, 22, 0, 0,
|
|
0, 23, 24, 38, 45, 0, 25, 36, 0, 0,
|
|
37, 0, 0, 27, 0, 32, 81, 82, 332, 46,
|
|
48, 50, 0, 0, 0, 0, 52, 96, 0, 94,
|
|
110, 111, 112, 107, 108, 0, 0, 0, 0, 0,
|
|
0, 93, 0, 0, 0, 0, 143, 113, 109, 103,
|
|
0, 85, 86, 87, 0, 0, 0, 0, 80, 53,
|
|
0, 0, 0, 78, 42, 28, 47, 49, 0, 0,
|
|
0, 55, 56, 0, 65, 66, 67, 68, 69, 70,
|
|
71, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 92, 77, 17,
|
|
563, 35, 0, 63, 0, 97, 0, 0, 0, 58,
|
|
57, 59, 60, 73, 120, 328, 0, 83, 84, 72,
|
|
18, 105, 106, 13, 88, 121, 0, 30, 0, 0,
|
|
0, 95, 29, 20, 19, 0, 21, 0, 33, 0,
|
|
34, 0, 0, 22, 0, 0, 0, 23, 24, 38,
|
|
45, 0, 25, 36, 0, 0, 37, 0, 0, 27,
|
|
0, 32, 81, 82, 332, 46, 48, 50, 0, 0,
|
|
0, 0, 52, 96, 0, 94, 110, 111, 112, 107,
|
|
108, 0, 0, 0, 0, 0, 0, 93, 0, 0,
|
|
0, 0, 143, 113, 109, 103, 0, 85, 86, 87,
|
|
0, 0, 0, 0, 80, 53, 0, 0, 0, 78,
|
|
42, 28, 47, 49, 0, 0, 0, 55, 56, 0,
|
|
65, 66, 67, 68, 69, 70, 71, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 92, 77, 17, 327, 35, 0, 63,
|
|
0, 97, 0, 0, 0, 58, 57, 59, 60, 73,
|
|
120, 328, 0, 83, 84, 72, 18, 105, 106, 13,
|
|
88, 121, 0, 30, 0, 0, 0, 95, 29, 20,
|
|
19, 0, 21, 0, 33, 0, 34, 0, 0, 22,
|
|
0, 0, 0, 23, 24, 38, 45, 0, 25, 36,
|
|
0, 0, 37, 0, 0, 27, 0, 32, 81, 82,
|
|
332, 46, 48, 50, 0, 0, 0, 0, 52, 96,
|
|
0, 94, 110, 111, 112, 107, 108, 0, 0, 0,
|
|
0, 0, 0, 93, 0, 0, 0, 0, 143, 113,
|
|
109, 103, 0, 85, 86, 87, 0, 0, 0, 0,
|
|
80, 53, 0, 0, 0, 78, 42, 28, 47, 49,
|
|
0, 0, 0, 55, 56, 0, 65, 66, 67, 68,
|
|
69, 70, 71, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 92,
|
|
77, 17, 0, 35, 0, 63, 0, 97, 0, 0,
|
|
0, 58, 57, 59, 60, 73, 120, 83, 84, 72,
|
|
18, 105, 106, 13, 88, 121, 0, 30, 0, 0,
|
|
0, 95, 29, 20, 19, 0, 21, 0, 33, 0,
|
|
34, 0, 0, 22, 0, 0, 0, 23, 24, 38,
|
|
45, 0, 25, 36, 0, 0, 37, 0, 0, 27,
|
|
0, 32, 81, 82, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 52, 96, 0, 94, 110, 111, 112, 107,
|
|
108, 0, 0, 0, 0, 0, 0, 93, 0, 0,
|
|
0, 0, 143, 113, 109, 103, 0, 85, 86, 87,
|
|
0, 0, 0, 0, 80, 53, 0, 0, 0, 78,
|
|
42, 28, 0, 0, 0, 0, 0, 55, 56, 0,
|
|
65, 66, 67, 68, 69, 70, 71, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 92, 77, 17, 0, 35, 946, 63,
|
|
0, 97, 0, 0, 0, 58, 57, 59, 60, 73,
|
|
120, 83, 84, 72, 18, 105, 106, 13, 88, 121,
|
|
0, 30, 0, 0, 0, 95, 29, 20, 19, 0,
|
|
21, 0, 33, 0, 34, 0, 0, 22, 0, 0,
|
|
0, 23, 24, 38, 45, 0, 25, 36, 0, 0,
|
|
37, 0, 0, 27, 0, 32, 81, 82, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 52, 96, 0, 94,
|
|
110, 111, 112, 107, 108, 0, 0, 0, 0, 0,
|
|
0, 93, 0, 0, 0, 0, 143, 113, 109, 103,
|
|
0, 85, 86, 87, 0, 0, 0, 0, 80, 53,
|
|
0, 0, 0, 78, 42, 28, 0, 0, 0, 0,
|
|
0, 55, 56, 0, 65, 66, 67, 68, 69, 70,
|
|
71, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 92, 77, 17,
|
|
0, 35, 920, 63, 0, 97, 0, 0, 0, 58,
|
|
57, 59, 60, 73, 120, 83, 84, 72, 18, 105,
|
|
106, 13, 88, 121, 0, 30, 0, 0, 0, 95,
|
|
29, 20, 19, 0, 21, 0, 33, 0, 34, 0,
|
|
0, 22, 0, 0, 0, 23, 24, 38, 45, 0,
|
|
25, 36, 0, 0, 37, 0, 0, 27, 0, 32,
|
|
81, 82, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
52, 96, 0, 94, 110, 111, 112, 107, 108, 0,
|
|
0, 0, 0, 0, 0, 93, 0, 0, 0, 0,
|
|
143, 113, 109, 103, 0, 85, 86, 87, 0, 0,
|
|
0, 0, 80, 53, 0, 0, 0, 78, 42, 28,
|
|
0, 0, 0, 0, 0, 55, 56, 0, 65, 66,
|
|
67, 68, 69, 70, 71, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 92, 77, 17, 0, 35, 721, 63, 0, 97,
|
|
0, 0, 0, 58, 57, 59, 60, 73, 120, 83,
|
|
84, 72, 18, 105, 106, 13, 88, 121, 0, 30,
|
|
0, 0, 0, 95, 29, 20, 19, 0, 21, 0,
|
|
33, 0, 34, 0, 0, 22, 0, 0, 0, 23,
|
|
24, 38, 45, 0, 25, 36, 0, 0, 37, 0,
|
|
0, 27, 0, 32, 81, 82, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 52, 96, 0, 94, 110, 111,
|
|
112, 107, 108, 0, 0, 0, 0, 0, 0, 93,
|
|
0, 0, 0, 0, 143, 113, 109, 103, 0, 85,
|
|
86, 87, 0, 0, 0, 0, 80, 53, 0, 0,
|
|
0, 78, 42, 28, 0, 0, 0, 0, 0, 55,
|
|
56, 0, 65, 66, 67, 68, 69, 70, 71, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 92, 77, 17, 0, 35,
|
|
337, 63, 0, 97, 0, 0, 0, 58, 57, 59,
|
|
60, 73, 120, 83, 84, 72, 18, 105, 106, 13,
|
|
88, 121, 0, 30, 0, 0, 0, 95, 29, 20,
|
|
19, 0, 21, 0, 33, 0, 34, 0, 0, 22,
|
|
0, 0, 0, 23, 24, 38, 45, 0, 25, 36,
|
|
0, 0, 37, 0, 0, 27, 0, 32, 81, 82,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 52, 96,
|
|
0, 94, 110, 111, 112, 107, 108, 0, 0, 0,
|
|
0, 0, 0, 93, 0, 0, 0, 0, 143, 113,
|
|
109, 103, 0, 85, 86, 87, 0, 0, 0, 0,
|
|
80, 53, 0, 0, 0, 78, 42, 28, 0, 0,
|
|
0, 0, 0, 55, 56, 0, 65, 66, 67, 68,
|
|
69, 70, 71, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 92,
|
|
77, 17, 0, 35, 334, 63, 0, 97, 0, 0,
|
|
0, 58, 57, 59, 60, 73, 120, 83, 84, 72,
|
|
18, 105, 106, 13, 88, 121, 0, 30, 0, 0,
|
|
0, 95, 29, 20, 19, 0, 21, 0, 33, 0,
|
|
34, 0, 0, 22, 0, 0, 0, 23, 24, 38,
|
|
45, 0, 25, 36, 0, 0, 37, 0, 0, 27,
|
|
0, 32, 81, 82, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 52, 96, 0, 94, 110, 111, 112, 107,
|
|
108, 0, 0, 0, 0, 0, 0, 93, 0, 0,
|
|
0, 0, 143, 113, 109, 103, 0, 85, 86, 87,
|
|
0, 0, 0, 0, 80, 53, 0, 0, 0, 78,
|
|
42, 28, 0, 0, 0, 0, 0, 55, 56, 0,
|
|
65, 66, 67, 68, 69, 70, 71, 83, 84, 72,
|
|
0, 105, 106, 126, 88, 121, 0, 0, 0, 0,
|
|
0, 95, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 92, 77, 17, 0, 35, 0, 63,
|
|
45, 97, 0, 0, 0, 58, 57, 59, 60, 73,
|
|
120, 0, 81, 82, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 52, 96, 0, 94, 110, 111, 112, 107,
|
|
108, 0, 0, 0, 0, 0, 0, 93, 0, 0,
|
|
0, 0, 143, 113, 109, 103, 489, 85, 86, 87,
|
|
0, 0, 0, 0, 80, 53, 0, 0, 0, 78,
|
|
148, 149, 0, 0, 0, 0, 0, 55, 56, 0,
|
|
65, 66, 67, 68, 69, 70, 71, 83, 84, 72,
|
|
0, 105, 106, 126, 88, 121, 0, 0, 0, 0,
|
|
0, 95, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 92, 77, 0, 0, 0, 0, 63,
|
|
45, 97, 0, 0, 488, 58, 57, 59, 60, 73,
|
|
120, 0, 81, 82, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 52, 96, 0, 94, 110, 111, 112, 107,
|
|
108, 0, 0, 0, 0, 0, 0, 93, 0, 0,
|
|
0, 0, 143, 113, 109, 103, 0, 85, 86, 87,
|
|
0, 0, 0, 0, 80, 53, 0, 0, 0, 78,
|
|
148, 149, 0, 0, 0, 0, 0, 55, 56, 0,
|
|
65, 66, 67, 68, 69, 70, 71, 83, 84, 72,
|
|
0, 105, 106, 126, 88, 121, 0, 0, 0, 0,
|
|
0, 95, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 92, 77, 0, 0, 0, 0, 63,
|
|
45, 97, 0, 0, 866, 58, 57, 59, 60, 73,
|
|
120, 0, 81, 82, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 52, 96, 0, 94, 110, 111, 112, 107,
|
|
108, 0, 0, 0, 0, 0, 0, 93, 0, 0,
|
|
0, 0, 143, 113, 109, 103, 0, 85, 86, 87,
|
|
0, 0, 0, 0, 80, 53, 0, 0, 0, 78,
|
|
148, 149, 0, 0, 0, 0, 0, 55, 56, 0,
|
|
65, 66, 67, 68, 69, 70, 71, 83, 84, 72,
|
|
0, 105, 106, 126, 88, 121, 0, 0, 0, 0,
|
|
0, 95, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 92, 77, 0, 0, 0, 0, 63,
|
|
45, 97, 0, 0, 629, 58, 57, 59, 60, 73,
|
|
120, 0, 81, 82, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 52, 96, 0, 94, 110, 111, 112, 107,
|
|
108, 0, 0, 0, 0, 0, 0, 93, 0, 0,
|
|
0, 0, 143, 113, 109, 103, 0, 85, 86, 87,
|
|
0, 0, 0, 0, 80, 53, 0, 0, 0, 78,
|
|
148, 149, 0, 0, 0, 0, 0, 55, 56, 0,
|
|
65, 66, 67, 68, 69, 70, 71, 83, 84, 72,
|
|
0, 105, 106, 126, 88, 121, 0, 0, 0, 0,
|
|
0, 95, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 92, 77, 0, 0, 0, 0, 63,
|
|
45, 97, 0, 0, 627, 58, 57, 59, 60, 73,
|
|
120, 0, 81, 82, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 52, 96, 0, 94, 110, 111, 112, 107,
|
|
108, 0, 0, 0, 0, 0, 0, 93, 0, 0,
|
|
0, 0, 143, 113, 109, 103, 0, 85, 86, 87,
|
|
0, 0, 0, 0, 80, 53, 0, 0, 0, 78,
|
|
148, 149, 0, 0, 0, 0, 0, 55, 56, 0,
|
|
65, 66, 67, 68, 69, 70, 71, 83, 84, 72,
|
|
0, 105, 106, 126, 88, 121, 0, 0, 0, 0,
|
|
0, 95, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 92, 77, 0, 0, 0, 0, 63,
|
|
45, 97, 0, 0, 292, 58, 57, 59, 60, 73,
|
|
120, 0, 81, 82, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 52, 96, 0, 94, 110, 111, 112, 107,
|
|
108, 0, 0, 0, 0, 0, 0, 93, 0, 0,
|
|
0, 0, 143, 113, 109, 103, 0, 85, 86, 87,
|
|
0, 0, 0, 0, 80, 53, 0, 0, 0, 78,
|
|
42, 149, 0, 0, 0, 0, 0, 55, 56, 0,
|
|
65, 66, 67, 68, 69, 70, 71, 0, 0, 83,
|
|
84, 72, 0, 105, 106, 126, 88, 121, 0, 0,
|
|
0, 0, 0, 95, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 92, 77, 0, 0, 0, 0, 63,
|
|
431, 97, 45, 0, 0, 58, 57, 59, 60, 73,
|
|
120, 0, 0, 0, 81, 82, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 52, 96, 0, 94, 110, 111,
|
|
112, 107, 108, 0, 0, 0, 0, 0, 0, 93,
|
|
0, 0, 0, 0, 143, 113, 109, 103, 0, 85,
|
|
86, 87, 0, 0, 0, 0, 80, 53, 0, 0,
|
|
0, 78, 148, 149, 0, 0, 0, 0, 0, 55,
|
|
56, 0, 65, 66, 67, 68, 69, 70, 71, 83,
|
|
84, 72, 0, 105, 106, 126, 88, 121, 0, 0,
|
|
0, 0, 0, 95, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 92, 77, 0, 0, 0,
|
|
0, 63, 45, 97, 0, 0, 407, 58, 57, 59,
|
|
60, 73, 120, 0, 81, 82, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 52, 96, 0, 94, 110, 111,
|
|
112, 107, 108, 0, 0, 0, 0, 0, 0, 93,
|
|
0, 0, 0, 0, 143, 113, 109, 103, 0, 85,
|
|
86, 87, 0, 0, 0, 0, 80, 53, 0, 0,
|
|
0, 78, 148, 149, 0, 0, 0, 0, 0, 55,
|
|
56, 0, 65, 66, 67, 68, 69, 70, 71, 83,
|
|
84, 72, 0, 105, 106, 126, 88, 121, 0, 0,
|
|
0, 0, 0, 95, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 92, 77, 0, 0, 0,
|
|
388, 63, 45, 97, 0, 0, 0, 58, 57, 59,
|
|
60, 73, 120, 0, 81, 82, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 52, 96, 0, 94, 110, 111,
|
|
112, 107, 108, 0, 0, 0, 0, 0, 0, 93,
|
|
0, 0, 0, 0, 143, 113, 109, 103, 0, 85,
|
|
86, 87, 0, 0, 0, 0, 80, 53, 0, 0,
|
|
0, 78, 148, 149, 0, 0, 0, 0, 0, 55,
|
|
56, 0, 65, 66, 67, 68, 69, 70, 71, 83,
|
|
84, 72, 0, 105, 106, 126, 88, 121, 0, 0,
|
|
0, 0, 0, 95, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 92, 77, 0, 0, 152,
|
|
0, 63, 45, 97, 0, 0, 0, 58, 57, 59,
|
|
60, 73, 120, 0, 81, 82, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 52, 96, 0, 94, 110, 111,
|
|
112, 107, 108, 0, 0, 0, 0, 0, 0, 93,
|
|
0, 0, 0, 0, 143, 113, 109, 103, 0, 85,
|
|
86, 87, 0, 0, 0, 0, 80, 53, 0, 0,
|
|
0, 78, 148, 149, 0, 0, 0, 0, 0, 55,
|
|
56, 0, 65, 66, 67, 68, 69, 70, 71, 83,
|
|
84, 72, 0, 105, 106, 126, 88, 121, 0, 0,
|
|
0, 0, 0, 95, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 92, 77, 0, 0, 150,
|
|
0, 63, 45, 97, 0, 0, 0, 58, 57, 59,
|
|
60, 73, 120, 0, 81, 82, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 52, 96, 0, 94, 110, 111,
|
|
112, 107, 108, 0, 0, 0, 0, 0, 0, 93,
|
|
0, 0, 0, 0, 143, 113, 109, 103, 0, 85,
|
|
86, 87, 0, 0, 0, 0, 80, 53, 0, 0,
|
|
0, 78, 148, 149, 0, 0, 0, 0, 0, 55,
|
|
56, 0, 65, 66, 67, 68, 69, 70, 71, 83,
|
|
84, 72, 0, 105, 106, 126, 88, 121, 0, 0,
|
|
0, 0, 0, 95, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 92, 77, 0, 0, 146,
|
|
0, 63, 45, 97, 0, 0, 0, 58, 57, 59,
|
|
60, 73, 120, 0, 81, 82, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 52, 96, 0, 94, 110, 111,
|
|
112, 107, 108, 0, 0, 0, 0, 0, 0, 93,
|
|
0, 0, 0, 0, 143, 113, 109, 103, 0, 85,
|
|
86, 87, 0, 0, 0, 0, 80, 53, 0, 0,
|
|
0, 78, 148, 149, 0, 0, 0, 0, 0, 55,
|
|
56, 0, 65, 66, 67, 68, 69, 70, 71, 83,
|
|
84, 72, 0, 105, 106, 126, 442, 121, 0, 0,
|
|
0, 0, 0, 95, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 92, 77, 0, 0, 0,
|
|
0, 63, 45, 97, 0, 0, 0, 58, 57, 59,
|
|
60, 73, 120, 0, 81, 82, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 52, 96, 0, 94, 110, 111,
|
|
112, 107, 108, 0, 0, 0, 0, 0, 0, 93,
|
|
0, 0, 0, 0, 143, 113, 109, 103, 0, 85,
|
|
86, 87, 0, 0, 0, 0, 80, 53, 0, 0,
|
|
0, 78, 148, 149, 0, 0, 0, 0, 0, 55,
|
|
56, 0, 65, 66, 67, 68, 69, 70, 71, 83,
|
|
84, 72, 0, 105, 106, 126, 88, 121, 0, 0,
|
|
0, 0, 0, 95, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 92, 77, 0, 0, 0,
|
|
0, 63, 45, 97, 0, 0, 0, 58, 57, 59,
|
|
60, 73, 120, 0, 81, 82, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 52, 96, 0, 94, 110, 111,
|
|
112, 107, 108, 0, 841, 0, 0, 0, 0, 93,
|
|
842, 0, 0, 840, 143, 113, 109, 103, 0, 85,
|
|
86, 87, 0, 0, 0, 0, 80, 53, 0, 0,
|
|
0, 78, 42, 149, 0, 0, 0, 0, 0, 55,
|
|
56, 0, 65, 66, 67, 68, 69, 70, 71, 0,
|
|
0, 169, 171, 170, 192, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 847, 848, 849, 846, 845, 844,
|
|
0, 0, 0, 0, 0, 92, 77, 794, 0, 0,
|
|
0, 63, 0, 97, 0, 0, 0, 58, 57, 59,
|
|
60, 73, 120, 167, 168, 179, 182, 183, 184, 185,
|
|
186, 187, 189, 191, 0, 0, 668, 666, 667, 833,
|
|
0, 0, 0, 857, 193, 173, 177, 176, 0, 0,
|
|
0, 0, 0, 172, 0, 174, 178, 180, 181, 188,
|
|
190, 175, 755, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 670, 669,
|
|
657, 663, 664, 671, 672, 673, 674, 677, 678, 0,
|
|
0, 169, 171, 170, 192, 0, 0, 653, 0, 679,
|
|
661, 655, 654, 0, 0, 0, 0, 0, 660, 0,
|
|
662, 656, 658, 659, 675, 676, 665, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 167, 168, 179, 182, 183, 184, 185,
|
|
186, 187, 189, 191, 169, 171, 170, 192, 0, 0,
|
|
0, 0, 0, 0, 193, 173, 177, 176, 0, 0,
|
|
0, 0, 0, 172, 0, 174, 178, 180, 181, 188,
|
|
190, 175, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 167, 168, 179, 182,
|
|
183, 184, 185, 186, 187, 189, 191, 0, 0, 0,
|
|
752, 169, 171, 170, 192, 0, 0, 193, 173, 177,
|
|
176, 0, 0, 0, 0, 0, 172, 0, 174, 178,
|
|
180, 181, 188, 190, 175, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 167, 168, 179, 182, 183, 184, 185,
|
|
186, 187, 189, 191, 0, 0, 0, 708, 169, 171,
|
|
170, 192, 0, 0, 193, 173, 177, 176, 0, 0,
|
|
0, 0, 0, 172, 0, 174, 178, 180, 181, 188,
|
|
190, 175, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
167, 168, 179, 182, 183, 184, 185, 186, 187, 189,
|
|
191, 0, 0, 0, 643, 169, 171, 170, 192, 0,
|
|
0, 193, 173, 177, 176, 0, 0, 0, 0, 0,
|
|
172, 0, 174, 178, 180, 181, 188, 190, 175, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 167, 168, 179,
|
|
182, 183, 184, 185, 186, 187, 189, 191, 0, 0,
|
|
0, 640, 169, 171, 170, 192, 0, 0, 193, 173,
|
|
177, 176, 0, 0, 0, 0, 0, 172, 0, 174,
|
|
178, 180, 181, 188, 190, 175, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 167, 168, 179, 182, 183, 184,
|
|
185, 186, 187, 189, 191, 169, 171, 170, 192, 0,
|
|
0, 0, 622, 0, 0, 193, 173, 177, 176, 0,
|
|
0, 0, 0, 0, 172, 0, 174, 178, 180, 181,
|
|
188, 190, 175, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 167, 168, 179,
|
|
182, 183, 184, 185, 186, 187, 189, 191, 0, 0,
|
|
0, 603, 169, 171, 170, 192, 0, 0, 193, 173,
|
|
177, 176, 0, 0, 0, 0, 0, 172, 0, 174,
|
|
178, 180, 181, 188, 190, 175, 476, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 167, 168, 179, 182, 183, 184,
|
|
185, 186, 187, 189, 191, 169, 171, 170, 192, 0,
|
|
554, 0, 0, 0, 0, 193, 173, 177, 176, 0,
|
|
0, 0, 0, 0, 172, 0, 174, 178, 180, 181,
|
|
188, 190, 175, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 167, 168, 179,
|
|
182, 183, 184, 185, 186, 187, 189, 191, 169, 171,
|
|
170, 192, 0, 0, 0, 0, 0, 0, 193, 173,
|
|
177, 176, 0, 0, 0, 0, 0, 172, 0, 174,
|
|
178, 180, 181, 188, 190, 175, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 405, 0, 0, 0,
|
|
167, 168, 179, 182, 183, 184, 185, 186, 187, 189,
|
|
191, 0, 0, 0, 0, 0, 0, 0, 429, 0,
|
|
0, 193, 173, 177, 176, 169, 171, 170, 192, 0,
|
|
172, 0, 174, 178, 180, 181, 188, 190, 175, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 167, 168, 179,
|
|
182, 183, 184, 185, 186, 187, 189, 191, 169, 171,
|
|
170, 192, 0, 0, 0, 0, 0, 0, 193, 173,
|
|
177, 176, 0, 0, 0, 0, 0, 172, 0, 174,
|
|
178, 180, 181, 188, 190, 175, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
167, 168, 179, 182, 183, 184, 185, 186, 187, 189,
|
|
191, 169, 171, 170, 192, 397, 0, 0, 0, 0,
|
|
0, 193, 173, 177, 176, 0, 0, 0, 0, 0,
|
|
172, 0, 174, 178, 180, 181, 188, 190, 175, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 167, 168, 179, 182, 183, 184, 185,
|
|
186, 187, 189, 191, 169, 171, 170, 192, 347, 0,
|
|
0, 0, 0, 0, 193, 173, 177, 176, 0, 0,
|
|
0, 0, 0, 172, 0, 174, 178, 180, 181, 188,
|
|
190, 175, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 167, 168, 179, 182,
|
|
183, 184, 185, 186, 187, 189, 191, 169, 171, 170,
|
|
192, 346, 0, 0, 0, 0, 0, 193, 173, 177,
|
|
176, 0, 0, 0, 0, 0, 172, 0, 174, 178,
|
|
180, 181, 188, 190, 175, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 668, 666, 667, 167,
|
|
168, 179, 182, 183, 184, 185, 186, 187, 189, 191,
|
|
0, 0, 0, 0, 166, 0, 0, 0, 0, 0,
|
|
193, 173, 177, 176, 0, 0, 0, 0, 0, 172,
|
|
0, 174, 178, 180, 181, 188, 190, 175, 670, 669,
|
|
657, 663, 664, 671, 672, 673, 674, 677, 678, 169,
|
|
171, 170, 192, 0, 0, 0, 0, 653, 0, 679,
|
|
661, 655, 654, 0, 0, 0, 0, 0, 660, 0,
|
|
662, 656, 658, 659, 675, 676, 665, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 666,
|
|
667, 167, 168, 179, 182, 183, 184, 185, 186, 187,
|
|
189, 191, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 193, 173, 177, 176, 0, 0, 0, 0,
|
|
0, 172, 0, 174, 178, 180, 181, 188, 190, 175,
|
|
670, 669, 657, 663, 664, 671, 672, 673, 674, 677,
|
|
678, 171, 170, 192, 0, 0, 0, 0, 0, 653,
|
|
0, 679, 661, 655, 654, 0, 0, 0, 0, 0,
|
|
660, 0, 662, 656, 658, 659, 675, 676, 665, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 167, 168, 179, 182, 183, 184, 185, 186,
|
|
187, 189, 191, 170, 192, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 193, 173, 177, 176, 0, 0, 0,
|
|
0, 0, 172, 0, 174, 178, 180, 181, 188, 190,
|
|
175, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 167, 168, 179, 182, 183, 184, 185,
|
|
186, 187, 189, 191, 192, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 193, 173, 177, 176, 0, 0,
|
|
0, 0, 0, 172, 0, 174, 178, 180, 181, 188,
|
|
190, 175, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 167, 168, 179, 182, 183, 184, 185,
|
|
186, 187, 189, 191, 192, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 193, 173, 177, 176, 0, 0,
|
|
0, 0, 0, 172, 0, 174, 178, 180, 181, 188,
|
|
190, 175, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 167, 168, 179, 182, 183, 184, 185,
|
|
186, 187, 189, 191, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 173, 177, 176, 0, 0,
|
|
0, 0, 0, 172, 0, 174, 178, 180, 181, 188,
|
|
190, 175, 669, 657, 663, 664, 671, 672, 673, 674,
|
|
677, 678, 192, 0, 0, 0, 0, 0, 0, 0,
|
|
653, 0, 0, 661, 655, 654, 0, 0, 0, 0,
|
|
0, 660, 0, 662, 656, 658, 659, 675, 676, 665,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 168, 179, 182, 183, 184, 185, 186, 187,
|
|
189, 191, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 173, 177, 176, 0, 0, 0, 0,
|
|
0, 172, 0, 174, 178, 180, 181, 188, 190, 175,
|
|
657, 663, 664, 671, 672, 673, 674, 677, 678, 192,
|
|
0, 0, 0, 0, 0, 0, 0, 653, 0, 0,
|
|
661, 655, 654, 0, 0, 0, 0, 0, 660, 0,
|
|
662, 656, 658, 659, 675, 676, 665, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
179, 182, 183, 184, 185, 186, 187, 189, 191, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
173, 177, 176, 0, 0, 0, 0, 0, 172, 0,
|
|
174, 178, 180, 181, 188, 190, 175, 657, 663, 664,
|
|
671, 672, 673, 674, 677, 678, 192, 0, 0, 0,
|
|
0, 0, 0, 0, 653, 0, 0, 661, 655, 654,
|
|
0, 0, 0, 0, 0, 0, 0, 662, 656, 658,
|
|
659, 675, 676, 665, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 179, 182, 183,
|
|
184, 185, 186, 187, 189, 191, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 173, 177, 176,
|
|
0, 0, 0, 0, 0, 0, 0, 174, 178, 180,
|
|
181, 188, 190, 175, 657, 663, 664, 671, 672, 673,
|
|
674, 677, 678, 192, 0, 0, 0, 0, 0, 0,
|
|
0, 653, 0, 0, 0, 655, 654, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 656, 658, 659, 675, 676,
|
|
665, 105, 106, 126, 0, 0, 0, 0, 0, 0,
|
|
0, 529, 0, 0, 179, 182, 183, 184, 185, 186,
|
|
187, 189, 191, 0, 105, 106, 126, 0, 0, 0,
|
|
0, 0, 0, 0, 529, 177, 176, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 178, 180, 181, 188, 190,
|
|
175, 0, 0, 524, 0, 527, 110, 111, 112, 107,
|
|
108, 0, 0, 0, 0, 0, 0, 530, 0, 0,
|
|
0, 0, 522, 113, 109, 523, 524, 0, 527, 110,
|
|
111, 112, 107, 108, 0, 0, 0, 0, 0, 0,
|
|
530, 233, 0, 0, 0, 522, 113, 109, 523, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 233, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 787, 536,
|
|
0, 525, 0, 0, 0, 535, 534, 532, 533, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 536, 0, 525, 0, 0, 0, 535, 534,
|
|
532, 533,
|
|
}
|
|
var yyPact = [...]int{
|
|
|
|
-1000, -1000, 2475, -1000, -1000, -1000, -1000, -1000, 296, 501,
|
|
570, 107, -1000, 306, -1000, -1000, 914, -1000, 227, 227,
|
|
5583, 295, 227, 6795, 6685, 6575, 362, 162, 756, 6905,
|
|
-1000, 8040, 292, 291, 287, -1000, 387, 6905, 913, 26,
|
|
912, 904, 6905, -1000, -1000, -1000, -1000, 680, -1000, 676,
|
|
-1000, 1368, 286, 6905, 436, 218, 218, 6905, 6905, 6905,
|
|
6905, -1000, -1000, 7125, -1000, 6905, 6905, 6905, 6905, 6905,
|
|
6905, 6905, 285, 6905, -1000, 177, 175, 891, 6905, 665,
|
|
703, 278, 277, 6905, 6905, 270, 6905, 6905, -1000, 165,
|
|
-1000, -1000, 887, 840, -1000, 164, 269, 6133, -1000, 163,
|
|
160, -1000, 228, 830, 560, -1000, -1000, -1000, -1000, -1000,
|
|
-1000, -1000, -1000, -1000, 116, 137, -1000, 556, 231, -1000,
|
|
386, -1000, 216, 339, -1000, 830, -1000, 91, 610, 604,
|
|
-1000, 674, 830, -1000, 901, -1000, -70, 4503, 5429, 7125,
|
|
5275, 752, 26, 521, 6905, 272, -1000, 7987, -1000, 707,
|
|
-1000, 7934, -1000, 360, 1606, 8132, -1000, 67, -1000, -1000,
|
|
150, 64, 26, -73, 48, 8132, -1000, 6905, 6905, 6905,
|
|
6905, 6905, 6905, 6905, 6905, 6905, 6905, 6905, 6905, 6905,
|
|
6905, 6905, 6905, 6905, 6905, 6905, 6905, 6905, 6905, 6905,
|
|
6905, 6905, 703, 6465, 218, 6905, 897, -1000, 7881, 358,
|
|
341, -1000, 671, 670, -1000, 1368, 7828, -1000, -1000, 6355,
|
|
6905, 6905, 6905, 6905, 6905, 6905, 6905, 6905, 6905, 6905,
|
|
6905, 6905, 699, -1000, -1000, -1000, -1000, -1000, 228, 520,
|
|
830, 555, 554, -1000, -1000, 400, 400, 448, 400, 215,
|
|
7761, 213, 400, 400, 400, 400, 400, 400, 400, -1000,
|
|
6243, -1000, 400, 6905, 6905, 389, 684, 852, -1000, 246,
|
|
7015, 218, 8324, 134, 231, 543, -1000, 485, 517, 830,
|
|
664, 116, 137, 537, 6905, 6905, 8132, 8132, 6905, 8132,
|
|
8132, 6905, 574, 684, 843, -1000, 786, 6905, 6133, 152,
|
|
17, 7708, 218, 6905, 6905, 892, -1000, 1698, 228, 111,
|
|
6905, 6905, 116, 386, 138, -1000, 6905, 351, -1000, -1000,
|
|
2319, 228, -1000, 630, 36, -1000, 666, 830, -4, -1000,
|
|
606, 830, 856, 545, -77, 8856, -1000, -1000, -1000, -1000,
|
|
-1000, -1000, 267, -1000, -1000, -1000, -1000, -1000, 227, 265,
|
|
350, -39, 8132, -1000, 349, 348, -1000, -1000, -1000, -1000,
|
|
-1000, 162, -1000, 6905, -1000, -1000, 806, 263, 8856, -1000,
|
|
6905, 8462, 8549, 8223, 8324, 8274, 8636, 8723, 1836, 34,
|
|
34, 34, 448, 400, 448, 448, 57, 57, 297, 297,
|
|
297, 297, 38, 38, 38, 38, -1000, 7655, 6905, 31,
|
|
-1000, -1000, 996, 741, 8, -82, 4347, -1000, -1000, 256,
|
|
563, 668, 612, 385, 612, 6905, 8324, 708, 8324, 8324,
|
|
8324, 8324, 8324, 8324, 8324, 8324, 8324, 8324, 8324, 8324,
|
|
-15, -1000, -1000, 254, 830, 228, 134, 134, 242, -1000,
|
|
-1000, -1000, 147, 8132, 135, -1000, -1000, -1000, -1000, 803,
|
|
848, 7598, 158, 370, 231, 140, -1000, -1000, 116, 137,
|
|
-1000, 6905, -1000, -1000, 133, 830, 485, 134, 116, 133,
|
|
-16, -1000, 1368, -1000, 119, 209, 7545, 132, -1000, -1000,
|
|
-1000, 123, 207, -1000, -1000, 6023, 5913, -1000, -1000, 122,
|
|
118, -1000, -1000, -20, 197, -1000, -1000, 1368, 218, 6905,
|
|
-1000, 231, 231, -1000, -1000, 110, 7488, 231, 231, -1000,
|
|
7431, -1000, 2163, -1000, -1000, -1000, -1000, 610, 844, 527,
|
|
-1000, 604, 841, 522, -1000, 839, 8856, -1000, 8079, -1000,
|
|
-1000, 485, 516, 830, 245, 8856, -1000, -1000, -1000, -1000,
|
|
632, 532, 8856, 8856, 8856, 8856, 8856, 195, 456, 4659,
|
|
4191, 342, 6905, 6905, 458, -1000, 919, -1000, -1000, 7374,
|
|
-84, 563, -1000, 8132, 6905, 8374, 340, 218, 204, 204,
|
|
5121, 838, 8856, 704, 563, 192, -43, -1000, 26, -1000,
|
|
-1000, -1000, 485, 508, 830, 383, 612, -1000, -1000, -60,
|
|
-1000, -1000, 1368, -1000, 703, -91, 699, 699, 228, -1000,
|
|
-1000, 199, 643, 6905, -1000, 134, -1000, -1000, 108, -1000,
|
|
-1000, -1000, -1000, -1000, 6905, -1000, -1000, 156, 141, -1000,
|
|
6905, 6905, 116, 7317, -1000, 485, -1000, -1000, -1000, 6905,
|
|
-1000, -1000, -1000, -1000, -1000, -1000, 7264, 218, 8132, 218,
|
|
-1000, -1000, -1000, 5693, -1000, -1000, 8132, -1000, -1000, -1000,
|
|
-1000, -1000, -1000, -1000, -1000, -1000, -1000, 836, -1000, -1000,
|
|
831, -1000, -1000, 8856, 8856, 8856, 8856, 8856, 8856, 8856,
|
|
8856, 8856, 8856, 8856, 8856, 8856, 8856, 8856, 8856, 8856,
|
|
8856, 8856, 8856, 8856, 8856, 8856, 8856, 8856, 8856, 8833,
|
|
830, 485, 8856, 106, -55, 7209, 573, 717, 121, 121,
|
|
-71, -71, 1935, 338, -1000, 227, 5583, 452, 336, -1000,
|
|
334, 8132, -1000, 6905, 241, 438, 333, 916, -1000, 8856,
|
|
190, 8374, -1000, -1000, 595, -1000, 218, 238, 595, -1000,
|
|
-1000, -1000, -93, -1000, 697, 235, 189, 691, 563, 464,
|
|
830, 485, -1000, -60, 7156, 612, 231, 6905, -1000, -40,
|
|
6905, 643, -1000, 105, 231, -1000, 7154, 643, 6905, 6905,
|
|
69, 1896, -1000, 633, -1000, 5803, -1000, -1000, -1000, -1000,
|
|
-1000, 1239, -71, -71, 121, 121, 121, 121, 8586, 8673,
|
|
1980, -51, -51, -71, 1785, 1383, 8171, 8499, 8412, 20,
|
|
20, 20, 20, -78, -78, -78, -78, 8856, 1186, 485,
|
|
188, -1000, -1000, 8856, 8856, -1000, -1000, -1000, -1000, 5583,
|
|
-1000, 449, 227, 299, -1000, 6905, 1053, -1000, -1000, -1000,
|
|
-1000, -1000, 330, -1000, 691, 186, 204, -1000, 699, 185,
|
|
4035, 8856, -1000, 381, 612, 380, 377, 223, -1000, 788,
|
|
-1000, 485, 2007, -1000, -1000, 784, -38, -1000, 707, 709,
|
|
-1000, 826, 612, -1000, -1000, -1000, -1000, -1000, -1000, -1000,
|
|
-1000, -1000, 8324, -1000, 63, -1000, -1000, 366, -1000, 58,
|
|
54, -1000, -1000, -1000, 134, 8132, 218, -1000, 1490, 8856,
|
|
-1000, 1734, 8079, -1000, 321, 219, -1000, 183, -1000, 4659,
|
|
-1000, 376, 4967, -1000, -48, 4967, 314, -1000, -1000, 774,
|
|
-1000, -1000, 187, -94, -1000, -49, -98, -1000, 825, 26,
|
|
-1000, -108, -79, -1000, -1000, -1000, -1000, -1000, -1000, -1000,
|
|
1490, 8856, -1000, -1000, 4659, 4813, 4659, -1000, -1000, -1000,
|
|
-1000, -1000, -1000, -1000, 3879, 182, 3723, 3567, -53, -1000,
|
|
772, 8856, -1000, 771, 8856, -116, 821, 8856, -1000, 612,
|
|
-1000, 619, 8079, 4659, -1000, -1000, -1000, 3411, 3255, -1000,
|
|
374, -1000, -1000, -1000, 169, -1000, -1000, -117, -1000, 8856,
|
|
222, -1000, -1000, 364, 619, -1000, 313, 310, 688, 737,
|
|
528, -1000, 3099, -1000, 309, -1000, -1000, 767, 8856, -1000,
|
|
563, -1000, -1000, -1000, -1000, 612, 709, 818, 302, -1000,
|
|
2943, -1000, -1000, 181, -62, -1000, 811, -1000, -1000, -1000,
|
|
701, 301, 612, -1000, -1000, 701, -1000, 221, -1000, -1000,
|
|
-1000, -1000, -1000, 612, 2787, 762, -1000, 170, 343, -1000,
|
|
2631, -1000,
|
|
}
|
|
var yyPgo = [...]int{
|
|
|
|
0, 29, 1094, 1092, 38, 31, 30, 572, 1091, 1090,
|
|
134, 217, 204, 88, 1385, 82, 72, 59, 684, 1422,
|
|
1088, 33, 1086, 1085, 1083, 136, 1082, 36, 37, 1081,
|
|
1080, 1079, 1078, 135, 1077, 1076, 24, 1075, 26, 48,
|
|
45, 1074, 708, 34, 1073, 1, 1072, 1070, 27, 1069,
|
|
73, 68, 61, 1068, 1067, 1066, 35, 1065, 1063, 4,
|
|
1062, 1061, 1060, 17, 1059, 1058, 1057, 1056, 51, 5,
|
|
1055, 1054, 1053, 1051, 1049, 2, 1048, 631, 1047, 18,
|
|
22, 1046, 1045, 1043, 15, 1042, 1041, 6, 19, 1040,
|
|
1037, 1033, 9, 39, 0, 1032, 1030, 1029, 117, 1028,
|
|
1027, 553, 1026, 1024, 42, 8, 1018, 1017, 1013, 1007,
|
|
14, 49, 1001, 1000, 998, 995, 993, 992, 3, 991,
|
|
16, 990, 988, 985, 28, 983, 982, 980, 976, 974,
|
|
971, 962, 21, 961, 959, 958, 25, 955, 23, 12,
|
|
953, 40, 945, 939, 937, 933, 41, 13, 930, 853,
|
|
7, 20,
|
|
}
|
|
var yyR1 = [...]int{
|
|
|
|
0, 149, 93, 93, 94, 94, 3, 3, 3, 3,
|
|
3, 3, 3, 3, 3, 3, 3, 3, 95, 95,
|
|
4, 4, 4, 4, 96, 96, 5, 5, 5, 5,
|
|
97, 97, 6, 6, 6, 6, 53, 53, 98, 98,
|
|
24, 24, 24, 24, 24, 25, 25, 26, 26, 26,
|
|
26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
|
|
26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
|
|
26, 26, 26, 26, 26, 115, 115, 58, 58, 116,
|
|
116, 117, 117, 59, 113, 113, 56, 51, 52, 147,
|
|
147, 148, 148, 60, 61, 61, 64, 64, 64, 64,
|
|
89, 89, 2, 91, 91, 90, 90, 124, 124, 88,
|
|
88, 87, 87, 87, 85, 85, 84, 84, 57, 57,
|
|
114, 114, 82, 82, 82, 82, 111, 111, 111, 150,
|
|
150, 86, 86, 107, 107, 108, 108, 54, 54, 55,
|
|
55, 118, 118, 119, 119, 63, 63, 62, 62, 62,
|
|
62, 80, 80, 80, 125, 125, 68, 68, 68, 68,
|
|
99, 99, 27, 27, 27, 100, 100, 100, 100, 120,
|
|
120, 65, 65, 65, 65, 67, 126, 126, 81, 81,
|
|
127, 127, 128, 128, 69, 69, 70, 129, 129, 73,
|
|
73, 72, 71, 71, 74, 74, 83, 83, 121, 121,
|
|
122, 122, 130, 130, 75, 75, 75, 75, 75, 75,
|
|
123, 123, 123, 123, 66, 66, 112, 112, 110, 110,
|
|
109, 109, 136, 136, 134, 134, 135, 135, 135, 137,
|
|
137, 42, 15, 15, 15, 15, 15, 15, 15, 15,
|
|
15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
|
|
15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
|
|
15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
|
|
15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
|
|
15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
|
|
15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
|
|
15, 15, 15, 15, 15, 15, 50, 50, 50, 50,
|
|
47, 47, 47, 47, 46, 46, 1, 92, 92, 106,
|
|
106, 106, 106, 23, 23, 23, 23, 23, 23, 23,
|
|
23, 11, 11, 11, 11, 45, 45, 45, 43, 43,
|
|
41, 41, 144, 144, 143, 49, 49, 49, 131, 131,
|
|
131, 79, 79, 7, 7, 7, 7, 7, 7, 7,
|
|
7, 7, 7, 7, 7, 8, 28, 77, 77, 77,
|
|
77, 77, 77, 77, 77, 77, 77, 78, 78, 78,
|
|
78, 78, 78, 78, 78, 78, 78, 78, 78, 78,
|
|
78, 78, 78, 78, 78, 78, 78, 78, 78, 78,
|
|
78, 78, 78, 78, 78, 78, 78, 78, 78, 78,
|
|
35, 35, 35, 35, 29, 29, 29, 29, 29, 29,
|
|
29, 132, 132, 151, 151, 133, 133, 133, 133, 14,
|
|
14, 48, 48, 16, 17, 18, 19, 19, 145, 145,
|
|
138, 140, 140, 76, 139, 139, 139, 40, 40, 44,
|
|
44, 12, 22, 22, 20, 20, 20, 21, 21, 21,
|
|
10, 10, 10, 9, 9, 13, 13, 141, 141, 142,
|
|
142, 142, 39, 39, 146, 146, 105, 105, 38, 38,
|
|
38, 104, 104, 103, 103, 103, 103, 103, 103, 103,
|
|
103, 101, 101, 101, 101, 33, 33, 33, 33, 33,
|
|
33, 34, 34, 34, 37, 37, 37, 37, 37, 37,
|
|
37, 37, 102, 102, 36, 36, 30, 30, 31, 32,
|
|
}
|
|
var yyR2 = [...]int{
|
|
|
|
0, 1, 2, 0, 1, 3, 1, 1, 1, 1,
|
|
4, 3, 5, 4, 3, 4, 4, 2, 3, 1,
|
|
1, 3, 2, 4, 3, 1, 1, 3, 2, 4,
|
|
3, 1, 1, 3, 2, 4, 5, 4, 2, 0,
|
|
1, 1, 1, 1, 4, 1, 2, 3, 5, 8,
|
|
3, 5, 9, 3, 2, 3, 2, 3, 2, 3,
|
|
3, 2, 3, 3, 3, 1, 2, 5, 8, 8,
|
|
5, 1, 6, 3, 3, 0, 9, 0, 4, 1,
|
|
0, 1, 2, 8, 1, 3, 1, 1, 1, 0,
|
|
1, 0, 1, 9, 7, 6, 1, 2, 1, 2,
|
|
0, 2, 1, 0, 2, 0, 2, 1, 3, 0,
|
|
2, 1, 2, 4, 1, 4, 1, 4, 1, 4,
|
|
3, 5, 3, 4, 4, 5, 0, 5, 4, 1,
|
|
1, 1, 4, 0, 4, 0, 5, 0, 2, 0,
|
|
3, 1, 0, 1, 3, 4, 6, 0, 1, 1,
|
|
1, 2, 3, 3, 1, 3, 1, 1, 2, 2,
|
|
3, 1, 1, 2, 4, 3, 5, 1, 3, 2,
|
|
0, 3, 2, 1, 8, 3, 1, 3, 1, 3,
|
|
0, 1, 1, 2, 2, 2, 3, 1, 3, 1,
|
|
1, 3, 4, 3, 0, 1, 1, 3, 1, 1,
|
|
0, 1, 1, 2, 1, 1, 1, 1, 1, 1,
|
|
3, 5, 1, 3, 5, 4, 3, 1, 0, 1,
|
|
3, 1, 2, 1, 4, 3, 2, 1, 1, 0,
|
|
1, 3, 6, 3, 4, 6, 2, 3, 3, 3,
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 2,
|
|
2, 2, 2, 3, 3, 3, 3, 3, 3, 3,
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
2, 2, 2, 2, 3, 3, 3, 3, 3, 3,
|
|
3, 3, 3, 1, 1, 4, 5, 4, 1, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 1, 1,
|
|
1, 3, 2, 1, 9, 10, 2, 2, 4, 4,
|
|
4, 4, 4, 4, 4, 3, 1, 0, 4, 3,
|
|
4, 1, 2, 2, 4, 3, 4, 4, 4, 4,
|
|
2, 1, 1, 3, 2, 1, 3, 2, 1, 1,
|
|
4, 1, 2, 0, 2, 0, 2, 1, 0, 1,
|
|
1, 0, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 3, 2, 3, 1, 1, 1, 1,
|
|
3, 2, 4, 3, 1, 1, 1, 4, 3, 3,
|
|
3, 3, 3, 3, 2, 2, 3, 3, 3, 3,
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
3, 3, 3, 3, 3, 4, 5, 2, 2, 3,
|
|
1, 1, 3, 2, 1, 1, 1, 1, 3, 3,
|
|
1, 0, 2, 0, 1, 5, 3, 3, 1, 1,
|
|
1, 3, 3, 1, 1, 1, 5, 1, 2, 0,
|
|
3, 4, 4, 1, 1, 1, 0, 1, 2, 3,
|
|
3, 1, 4, 4, 1, 1, 1, 1, 2, 1,
|
|
4, 4, 1, 1, 4, 0, 1, 1, 1, 4,
|
|
4, 1, 1, 3, 1, 2, 3, 1, 1, 4,
|
|
0, 0, 2, 5, 3, 3, 1, 6, 4, 4,
|
|
2, 2, 2, 1, 2, 1, 4, 3, 3, 6,
|
|
3, 1, 1, 1, 4, 4, 4, 2, 2, 4,
|
|
2, 2, 1, 3, 1, 1, 3, 3, 3, 3,
|
|
}
|
|
var yyChk = [...]int{
|
|
|
|
-1000, -149, -93, -3, 2, -25, -51, -52, 51, 79,
|
|
44, -53, -26, 10, -60, -61, 38, 142, 7, 21,
|
|
20, 23, 30, 34, 35, 39, -50, 46, 98, 19,
|
|
14, -14, 48, 25, 27, 144, 40, 43, 36, -1,
|
|
-64, -2, 97, -16, -15, 37, 52, 99, 53, 100,
|
|
54, -19, 59, 92, -18, 104, 105, 153, 152, 154,
|
|
155, -48, -42, 146, -37, 107, 108, 109, 110, 111,
|
|
112, 113, 6, 156, -29, -47, -46, 141, 96, -20,
|
|
91, 49, 50, 4, 5, 84, 85, 86, 11, -35,
|
|
-32, -7, 140, 74, 62, 18, 60, 148, -21, -22,
|
|
-23, -30, -94, 82, -11, 8, 9, 66, 67, 81,
|
|
63, 64, 65, 80, -10, -146, -44, -12, -40, -9,
|
|
157, 12, 146, -94, 142, 82, 10, -95, 37, 38,
|
|
-4, -94, 82, 144, 158, 145, 10, -98, -48, 146,
|
|
-48, -25, -1, 79, 146, -48, 144, -14, 97, 98,
|
|
144, -14, 144, -15, -19, -14, 144, -99, -27, 12,
|
|
157, -100, -1, 12, -112, -14, 144, 129, 130, 87,
|
|
89, 88, 159, 151, 161, 167, 153, 152, 162, 131,
|
|
163, 164, 132, 133, 134, 135, 136, 137, 165, 138,
|
|
166, 139, 90, 150, 146, 146, 146, 142, -14, 10,
|
|
-147, 151, 10, 10, -15, -19, -14, 52, 52, 160,
|
|
117, 118, 119, 120, 121, 122, 123, 124, 125, 126,
|
|
127, 128, 146, -14, 104, 105, -18, -19, -94, 79,
|
|
82, -11, -12, 98, -18, -14, -14, -14, -14, -42,
|
|
-14, -50, -14, -14, -14, -14, -14, -14, -14, -49,
|
|
146, -48, -14, 148, 148, -131, 17, -101, -33, 12,
|
|
76, 77, -14, 57, -43, -11, -41, -94, 79, 82,
|
|
-21, -10, -146, -12, 146, 146, -14, -14, 146, -14,
|
|
-14, 148, -101, 17, 17, 75, -101, 148, 146, -104,
|
|
-103, -14, 151, 148, 148, 82, -80, 146, -94, 78,
|
|
148, 142, -10, 157, 78, -80, 142, 147, 144, 142,
|
|
-93, -94, 144, 158, -96, -5, -94, 82, -97, -6,
|
|
-94, 82, 29, -94, 10, 160, -24, 143, 2, -25,
|
|
-51, -52, 51, -25, 145, -86, -25, 145, 21, -147,
|
|
-110, -109, -14, -82, 142, 145, 144, 144, 144, 144,
|
|
144, 158, -16, 142, -19, 144, 158, -147, 160, 144,
|
|
158, -14, -14, -14, -14, -14, -14, -14, -14, -14,
|
|
-14, -14, -14, -14, -14, -14, -14, -14, -14, -14,
|
|
-14, -14, -14, -14, -14, -14, -43, -14, 145, -113,
|
|
-56, -19, -19, -15, -114, 10, -98, 144, 144, 10,
|
|
146, -89, 55, -91, 55, 58, -14, 151, -14, -14,
|
|
-14, -14, -14, -14, -14, -14, -14, -14, -14, -14,
|
|
-105, -38, -19, 59, 82, -94, 78, 78, 147, 147,
|
|
147, 147, -13, -14, -13, 141, -33, -33, 17, 148,
|
|
57, -14, 11, -19, -141, -142, -40, -39, -10, -146,
|
|
10, 142, -79, -80, 78, 82, -94, 57, -10, 78,
|
|
-102, -36, -19, -15, -19, -15, -14, -13, 140, 75,
|
|
75, -13, -104, 149, -151, 158, 58, -17, -19, -13,
|
|
-13, 10, 147, -125, -50, -68, -15, -19, 151, 83,
|
|
-80, -39, -40, 10, 52, -13, -14, -39, -40, 10,
|
|
-14, 144, -93, 143, -80, -4, 144, 158, 29, -94,
|
|
144, 158, 29, -94, 10, 29, 160, -28, -77, -7,
|
|
-31, -94, 79, 82, 60, 148, -8, 62, -78, 18,
|
|
74, -11, 154, 155, 153, 152, 146, 146, -107, -98,
|
|
-98, -48, 144, 158, -111, 144, -111, 144, -27, -14,
|
|
12, 146, -28, -14, 145, -14, 147, 158, 29, 29,
|
|
147, 158, 160, 143, 146, -118, -119, -63, -62, 60,
|
|
61, -45, -94, 79, 82, -90, 56, -45, 142, -124,
|
|
-45, -15, -19, -19, 91, 147, 158, 146, -94, -137,
|
|
-135, -134, -136, 148, -138, 57, 149, 149, -34, 10,
|
|
13, 12, 10, 143, 148, 143, -139, -76, -140, -80,
|
|
148, 142, -10, -14, -40, -94, -141, -40, 147, 158,
|
|
147, 147, 147, 149, 149, 147, -14, 151, -14, 151,
|
|
149, 149, 147, 158, 147, -17, -14, -80, -80, 149,
|
|
143, -80, -80, 143, 143, -5, 10, 29, -6, 10,
|
|
29, 10, -28, 148, 153, 152, 162, 131, 163, 164,
|
|
159, 151, 161, 132, 133, 167, 88, 89, 87, 130,
|
|
129, 134, 135, 136, 137, 165, 166, 138, 139, 150,
|
|
82, -94, 146, -132, -133, -77, 17, 78, -77, -77,
|
|
-77, -77, -77, 147, -54, 93, 94, -108, 22, 144,
|
|
-110, -14, 143, 32, 33, -111, 31, -111, 143, 160,
|
|
-118, -14, 144, -56, -87, -19, 151, 59, -87, -57,
|
|
-25, 145, 10, -28, -115, 41, -118, 147, 158, -147,
|
|
82, -94, 142, -124, -120, 158, -43, 160, -38, -105,
|
|
148, -136, -138, -13, -141, 149, -14, -145, 148, 148,
|
|
-13, -14, 143, -144, -36, 58, -17, -17, -68, 10,
|
|
10, -77, -77, -77, -77, -77, -77, -77, -77, -77,
|
|
-77, -77, -77, -77, -77, -77, -77, -77, -77, -77,
|
|
-77, -77, -77, -77, -77, -77, -77, 145, -77, -94,
|
|
-132, 149, -151, 158, 58, 10, 52, 147, 144, -48,
|
|
-25, -55, 93, 94, 144, 144, -14, -150, 145, 144,
|
|
143, 144, 31, -28, 147, -88, 58, -19, 146, -88,
|
|
-98, 160, -58, 42, 146, 147, -92, 44, -63, -148,
|
|
83, -94, -120, 143, -65, -121, -66, -67, -122, -130,
|
|
47, 38, 44, -75, 103, 102, 101, 98, 99, 100,
|
|
-45, -79, -14, 147, -13, 149, -139, 149, -138, -13,
|
|
-13, 149, 143, -143, 57, -14, 151, 149, -77, 145,
|
|
147, -77, -77, -25, 95, -48, 145, -110, -150, -98,
|
|
144, -92, 147, -87, -105, 147, 28, -28, 142, -45,
|
|
142, 142, 146, 12, 143, -123, 12, 144, 158, -1,
|
|
-75, 10, -126, -45, 149, 143, 149, 149, -141, -17,
|
|
-77, 58, 144, 145, -98, 147, -98, 142, -84, -25,
|
|
145, 147, -84, 144, -98, 12, -98, -98, -106, 12,
|
|
151, 160, 144, 158, 160, 10, -147, 160, -81, 158,
|
|
144, 142, -77, -98, -85, -25, 145, -98, -98, 143,
|
|
147, 143, 143, 147, 158, 12, -28, 12, -28, 160,
|
|
10, -28, -45, -127, -128, -69, -70, -71, -72, -73,
|
|
-45, 10, -98, 143, 26, 142, 12, 151, 160, -28,
|
|
146, 143, -69, 144, 144, 45, 29, 78, 24, 144,
|
|
-98, 12, -28, -118, -129, -45, -74, -75, 10, 144,
|
|
143, 147, 158, 10, -116, -117, -59, 41, -83, 144,
|
|
142, -45, -59, 146, -98, -45, 143, 12, 147, 142,
|
|
-98, 143,
|
|
}
|
|
var yyDef = [...]int{
|
|
|
|
3, -2, -2, 2, 6, 7, 8, 9, 0, 0,
|
|
0, 0, 45, 4, 87, 88, 0, 39, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 331, 0,
|
|
65, 0, 0, 0, 0, 71, 0, 0, 0, 89,
|
|
0, 0, 303, 429, 430, 316, 96, 0, 98, 0,
|
|
102, -2, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 283, 284, 0, 288, 0, 0, 0, 0, 0,
|
|
0, 0, 345, 0, 298, 299, 300, 348, 0, 437,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 414, 415,
|
|
416, 417, 0, 0, 420, 355, 0, 481, 454, 455,
|
|
456, 410, -2, 0, 0, 353, 354, 356, 357, 358,
|
|
359, 360, 361, 362, -2, 0, 459, 0, 0, 462,
|
|
474, 463, 0, 0, 3, 0, 4, 0, 0, 0,
|
|
19, 20, 0, 17, 0, 46, 0, 0, 0, 0,
|
|
0, 0, 89, 0, 218, 0, 54, 0, 303, 331,
|
|
56, 0, 58, 430, -2, 0, 61, 0, 161, 162,
|
|
0, 0, 89, 167, 0, 217, 66, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 39, 0, 0,
|
|
0, 90, 100, 103, -2, -2, 0, 97, 99, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 480, 236, 249, 251, 250, 435, 332, 0,
|
|
0, 0, 0, 331, 252, 270, 271, 272, 273, 284,
|
|
0, 0, 289, 290, 291, 292, 293, 294, 295, 296,
|
|
0, 347, 297, 465, 465, 0, 349, 350, 493, 495,
|
|
0, 0, 302, 0, 351, 338, 339, 332, 0, 0,
|
|
341, -2, 0, 0, 0, 0, 507, 508, 0, 510,
|
|
511, 465, 0, 0, 0, 364, 0, 465, 481, 0,
|
|
423, 486, 0, 465, 465, 0, 323, 0, -2, 0,
|
|
465, 0, -2, 475, 0, 330, 0, 0, 11, 3,
|
|
0, -2, 14, 0, 0, 25, 26, 0, 0, 31,
|
|
32, 0, 0, 22, 0, 0, 38, 47, 40, 41,
|
|
42, 43, 0, 133, 39, 50, 131, 39, 0, 0,
|
|
0, 219, 221, 53, 126, 126, 55, 57, 59, 60,
|
|
62, 0, 163, 0, 433, 63, 0, 0, 0, 64,
|
|
0, 253, 254, 255, 256, 257, 258, 259, 260, 261,
|
|
262, 263, 264, 265, 266, 267, 268, 269, -2, -2,
|
|
-2, -2, -2, -2, -2, -2, 282, 0, 0, 0,
|
|
84, 86, -2, 430, 0, 0, 0, 73, 74, 0,
|
|
-2, 105, 0, 0, 0, 0, 233, 0, 237, 238,
|
|
239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
|
|
0, 477, 478, 0, 0, 334, 0, 0, 229, 431,
|
|
432, 346, 0, 466, 0, 301, 494, 491, 492, 0,
|
|
0, 0, 414, 0, 446, 467, 468, 471, 447, 0,
|
|
472, 0, 231, 352, 0, 0, 334, 0, 458, 0,
|
|
0, 512, -2, -2, -2, 430, 0, 0, 418, 363,
|
|
419, 0, 0, 315, 482, 424, 0, 490, 434, 0,
|
|
0, 5, 151, 0, 0, 154, -2, -2, 0, 0,
|
|
325, 0, 449, -2, 519, 0, 0, 0, 450, -2,
|
|
0, 10, 0, 13, 324, 18, 15, 0, 0, 28,
|
|
16, 0, 0, 34, 21, 0, 0, 37, 366, 367,
|
|
368, -2, 0, 0, 0, 421, 374, 375, 376, 355,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 137, -2,
|
|
0, 0, 218, 0, 0, 126, 0, 126, 160, 0,
|
|
165, -2, 168, 216, 0, 287, 0, 0, 0, 0,
|
|
0, 0, 0, 75, -2, 0, 141, 143, 89, 148,
|
|
149, 150, 335, 0, 0, 0, 0, 101, 170, 104,
|
|
107, -2, -2, 234, 0, 0, 480, 480, 333, 285,
|
|
230, 227, 228, 465, 223, 0, 311, 310, 0, 501,
|
|
502, 503, 497, 498, 0, 500, 439, 444, 445, 443,
|
|
465, 0, 448, 0, 449, 333, 343, 450, 504, 0,
|
|
505, 506, 509, 313, 312, 314, 484, 0, 485, 0,
|
|
452, 453, 152, 0, 153, 158, 159, 326, 327, 460,
|
|
461, 328, 329, 464, 12, 24, 27, 0, 30, 33,
|
|
0, 23, 36, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, -2, 421, 0, 423, 428, 0, 0, 384, 385,
|
|
407, 408, 0, 0, 48, 0, 0, 139, 0, 51,
|
|
0, 220, 122, 0, 0, 0, 0, 0, 164, 0,
|
|
0, 286, 67, 85, 109, 111, 0, 0, 109, 70,
|
|
118, 39, 0, 120, 77, 0, 0, 317, 147, 91,
|
|
0, 337, 170, 106, 200, 0, 351, 0, 476, 0,
|
|
465, 226, 222, 0, 446, 496, 0, 436, 465, 465,
|
|
0, 0, 473, 340, 513, 0, 488, 489, 155, 29,
|
|
35, 0, 378, 379, 380, 381, 382, 383, 386, 387,
|
|
388, 389, 390, 391, 392, 393, 394, 395, 396, -2,
|
|
-2, -2, -2, -2, -2, -2, -2, 0, 0, -2,
|
|
0, 373, 422, 424, 0, 365, 518, 409, 44, 0,
|
|
138, 0, 0, 0, 132, 218, 0, 39, 129, 130,
|
|
123, 124, 0, 166, 317, 0, 0, 112, 480, 0,
|
|
0, 0, 72, 0, 0, 0, 0, 0, 144, 0,
|
|
92, 336, 200, 95, 169, 0, 0, 173, 0, -2,
|
|
199, 0, 0, 202, 204, 205, 206, 207, 208, 209,
|
|
108, 235, 232, 479, 0, 225, 440, 0, 438, 0,
|
|
0, 469, 470, 342, 0, 483, 0, 377, 405, 0,
|
|
372, 426, 427, 134, 0, 0, 39, 0, 39, -2,
|
|
125, 0, 0, 110, 0, 0, 0, 121, 39, 0,
|
|
39, 39, 0, 145, 94, 0, 212, 172, 0, 89,
|
|
203, 0, 0, 176, 224, 499, 442, 441, 344, 487,
|
|
406, 0, 49, 39, -2, 0, -2, 39, 68, 116,
|
|
39, 113, 69, 119, 0, 0, 0, 0, 0, 321,
|
|
0, 0, 171, 0, 0, 0, 0, 0, 175, 0,
|
|
178, 180, 425, -2, 52, 114, 39, 0, 0, 78,
|
|
0, 93, 304, 318, 0, 322, 146, 210, 213, 0,
|
|
0, 215, 177, 0, 181, 182, 0, 0, 190, 0,
|
|
0, -2, 0, 305, 0, 39, 319, 0, 0, 214,
|
|
-2, 179, 183, 184, 185, 0, 194, 0, 0, 117,
|
|
0, 320, 211, 0, 186, 187, 0, -2, 191, 115,
|
|
80, 0, 0, 192, 76, 79, 81, 0, 174, 196,
|
|
39, 188, 82, 0, 0, 0, 197, 0, 0, 39,
|
|
0, 83,
|
|
}
|
|
var yyTok1 = [...]int{
|
|
|
|
1, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
3, 3, 3, 154, 140, 3, 157, 164, 151, 3,
|
|
146, 147, 162, 153, 158, 152, 167, 163, 3, 3,
|
|
3, 3, 3, 3, 3, 3, 3, 3, 145, 144,
|
|
165, 160, 166, 150, 156, 3, 3, 3, 3, 3,
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
3, 148, 3, 149, 161, 3, 141, 3, 3, 3,
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
3, 3, 3, 142, 159, 143, 155,
|
|
}
|
|
var yyTok2 = [...]int{
|
|
|
|
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,
|
|
}
|
|
var yyTok3 = [...]int{
|
|
0,
|
|
}
|
|
|
|
var yyErrorMessages = [...]struct {
|
|
state int
|
|
token int
|
|
msg string
|
|
}{}
|
|
|
|
//line yaccpar:1
|
|
|
|
/* parser for yacc output */
|
|
|
|
var (
|
|
yyDebug = 0
|
|
yyErrorVerbose = false
|
|
)
|
|
|
|
type yyLexer interface {
|
|
Lex(lval *yySymType) int
|
|
Error(s string)
|
|
}
|
|
|
|
type yyParser interface {
|
|
Parse(yyLexer) int
|
|
Lookahead() int
|
|
}
|
|
|
|
type yyParserImpl struct {
|
|
lval yySymType
|
|
stack [yyInitialStackSize]yySymType
|
|
char int
|
|
}
|
|
|
|
func (p *yyParserImpl) Lookahead() int {
|
|
return p.char
|
|
}
|
|
|
|
func yyNewParser() yyParser {
|
|
return &yyParserImpl{}
|
|
}
|
|
|
|
const yyFlag = -1000
|
|
|
|
func yyTokname(c int) string {
|
|
if c >= 1 && c-1 < len(yyToknames) {
|
|
if yyToknames[c-1] != "" {
|
|
return yyToknames[c-1]
|
|
}
|
|
}
|
|
return __yyfmt__.Sprintf("tok-%v", c)
|
|
}
|
|
|
|
func yyStatname(s int) string {
|
|
if s >= 0 && s < len(yyStatenames) {
|
|
if yyStatenames[s] != "" {
|
|
return yyStatenames[s]
|
|
}
|
|
}
|
|
return __yyfmt__.Sprintf("state-%v", s)
|
|
}
|
|
|
|
func yyErrorMessage(state, lookAhead int) string {
|
|
const TOKSTART = 4
|
|
|
|
if !yyErrorVerbose {
|
|
return "syntax error"
|
|
}
|
|
|
|
for _, e := range yyErrorMessages {
|
|
if e.state == state && e.token == lookAhead {
|
|
return "syntax error: " + e.msg
|
|
}
|
|
}
|
|
|
|
res := "syntax error: unexpected " + yyTokname(lookAhead)
|
|
|
|
// To match Bison, suggest at most four expected tokens.
|
|
expected := make([]int, 0, 4)
|
|
|
|
// Look for shiftable tokens.
|
|
base := yyPact[state]
|
|
for tok := TOKSTART; tok-1 < len(yyToknames); tok++ {
|
|
if n := base + tok; n >= 0 && n < yyLast && yyChk[yyAct[n]] == tok {
|
|
if len(expected) == cap(expected) {
|
|
return res
|
|
}
|
|
expected = append(expected, tok)
|
|
}
|
|
}
|
|
|
|
if yyDef[state] == -2 {
|
|
i := 0
|
|
for yyExca[i] != -1 || yyExca[i+1] != state {
|
|
i += 2
|
|
}
|
|
|
|
// Look for tokens that we accept or reduce.
|
|
for i += 2; yyExca[i] >= 0; i += 2 {
|
|
tok := yyExca[i]
|
|
if tok < TOKSTART || yyExca[i+1] == 0 {
|
|
continue
|
|
}
|
|
if len(expected) == cap(expected) {
|
|
return res
|
|
}
|
|
expected = append(expected, tok)
|
|
}
|
|
|
|
// If the default action is to accept or reduce, give up.
|
|
if yyExca[i+1] != 0 {
|
|
return res
|
|
}
|
|
}
|
|
|
|
for i, tok := range expected {
|
|
if i == 0 {
|
|
res += ", expecting "
|
|
} else {
|
|
res += " or "
|
|
}
|
|
res += yyTokname(tok)
|
|
}
|
|
return res
|
|
}
|
|
|
|
func yylex1(lex yyLexer, lval *yySymType) (char, token int) {
|
|
token = 0
|
|
char = lex.Lex(lval)
|
|
if char <= 0 {
|
|
token = yyTok1[0]
|
|
goto out
|
|
}
|
|
if char < len(yyTok1) {
|
|
token = yyTok1[char]
|
|
goto out
|
|
}
|
|
if char >= yyPrivate {
|
|
if char < yyPrivate+len(yyTok2) {
|
|
token = yyTok2[char-yyPrivate]
|
|
goto out
|
|
}
|
|
}
|
|
for i := 0; i < len(yyTok3); i += 2 {
|
|
token = yyTok3[i+0]
|
|
if token == char {
|
|
token = yyTok3[i+1]
|
|
goto out
|
|
}
|
|
}
|
|
|
|
out:
|
|
if token == 0 {
|
|
token = yyTok2[1] /* unknown char */
|
|
}
|
|
if yyDebug >= 3 {
|
|
__yyfmt__.Printf("lex %s(%d)\n", yyTokname(token), uint(char))
|
|
}
|
|
return char, token
|
|
}
|
|
|
|
func yyParse(yylex yyLexer) int {
|
|
return yyNewParser().Parse(yylex)
|
|
}
|
|
|
|
func (yyrcvr *yyParserImpl) Parse(yylex yyLexer) int {
|
|
var yyn int
|
|
var yyVAL yySymType
|
|
var yyDollar []yySymType
|
|
_ = yyDollar // silence set and not used
|
|
yyS := yyrcvr.stack[:]
|
|
|
|
Nerrs := 0 /* number of errors */
|
|
Errflag := 0 /* error recovery flag */
|
|
yystate := 0
|
|
yyrcvr.char = -1
|
|
yytoken := -1 // yyrcvr.char translated into internal numbering
|
|
defer func() {
|
|
// Make sure we report no lookahead when not parsing.
|
|
yystate = -1
|
|
yyrcvr.char = -1
|
|
yytoken = -1
|
|
}()
|
|
yyp := -1
|
|
goto yystack
|
|
|
|
ret0:
|
|
return 0
|
|
|
|
ret1:
|
|
return 1
|
|
|
|
yystack:
|
|
/* put a state and value onto the stack */
|
|
if yyDebug >= 4 {
|
|
__yyfmt__.Printf("char %v in %v\n", yyTokname(yytoken), yyStatname(yystate))
|
|
}
|
|
|
|
yyp++
|
|
if yyp >= len(yyS) {
|
|
nyys := make([]yySymType, len(yyS)*2)
|
|
copy(nyys, yyS)
|
|
yyS = nyys
|
|
}
|
|
yyS[yyp] = yyVAL
|
|
yyS[yyp].yys = yystate
|
|
|
|
yynewstate:
|
|
yyn = yyPact[yystate]
|
|
if yyn <= yyFlag {
|
|
goto yydefault /* simple state */
|
|
}
|
|
if yyrcvr.char < 0 {
|
|
yyrcvr.char, yytoken = yylex1(yylex, &yyrcvr.lval)
|
|
}
|
|
yyn += yytoken
|
|
if yyn < 0 || yyn >= yyLast {
|
|
goto yydefault
|
|
}
|
|
yyn = yyAct[yyn]
|
|
if yyChk[yyn] == yytoken { /* valid shift */
|
|
yyrcvr.char = -1
|
|
yytoken = -1
|
|
yyVAL = yyrcvr.lval
|
|
yystate = yyn
|
|
if Errflag > 0 {
|
|
Errflag--
|
|
}
|
|
goto yystack
|
|
}
|
|
|
|
yydefault:
|
|
/* default state action */
|
|
yyn = yyDef[yystate]
|
|
if yyn == -2 {
|
|
if yyrcvr.char < 0 {
|
|
yyrcvr.char, yytoken = yylex1(yylex, &yyrcvr.lval)
|
|
}
|
|
|
|
/* look through exception table */
|
|
xi := 0
|
|
for {
|
|
if yyExca[xi+0] == -1 && yyExca[xi+1] == yystate {
|
|
break
|
|
}
|
|
xi += 2
|
|
}
|
|
for xi += 2; ; xi += 2 {
|
|
yyn = yyExca[xi+0]
|
|
if yyn < 0 || yyn == yytoken {
|
|
break
|
|
}
|
|
}
|
|
yyn = yyExca[xi+1]
|
|
if yyn < 0 {
|
|
goto ret0
|
|
}
|
|
}
|
|
if yyn == 0 {
|
|
/* error ... attempt to resume parsing */
|
|
switch Errflag {
|
|
case 0: /* brand new error */
|
|
yylex.Error(yyErrorMessage(yystate, yytoken))
|
|
Nerrs++
|
|
if yyDebug >= 1 {
|
|
__yyfmt__.Printf("%s", yyStatname(yystate))
|
|
__yyfmt__.Printf(" saw %s\n", yyTokname(yytoken))
|
|
}
|
|
fallthrough
|
|
|
|
case 1, 2: /* incompletely recovered error ... try again */
|
|
Errflag = 3
|
|
|
|
/* find a state where "error" is a legal shift action */
|
|
for yyp >= 0 {
|
|
yyn = yyPact[yyS[yyp].yys] + yyErrCode
|
|
if yyn >= 0 && yyn < yyLast {
|
|
yystate = yyAct[yyn] /* simulate a shift of "error" */
|
|
if yyChk[yystate] == yyErrCode {
|
|
goto yystack
|
|
}
|
|
}
|
|
|
|
/* the current p has no shift on "error", pop stack */
|
|
if yyDebug >= 2 {
|
|
__yyfmt__.Printf("error recovery pops state %d\n", yyS[yyp].yys)
|
|
}
|
|
yyp--
|
|
}
|
|
/* there is no state on the stack with an error shift ... abort */
|
|
goto ret1
|
|
|
|
case 3: /* no shift yet; clobber input char */
|
|
if yyDebug >= 2 {
|
|
__yyfmt__.Printf("error recovery discards %s\n", yyTokname(yytoken))
|
|
}
|
|
if yytoken == yyEofCode {
|
|
goto ret1
|
|
}
|
|
yyrcvr.char = -1
|
|
yytoken = -1
|
|
goto yynewstate /* try again in the same state */
|
|
}
|
|
}
|
|
|
|
/* reduction by production yyn */
|
|
if yyDebug >= 2 {
|
|
__yyfmt__.Printf("reduce %v in:\n\t%v\n", yyn, yyStatname(yystate))
|
|
}
|
|
|
|
yynt := yyn
|
|
yypt := yyp
|
|
_ = yypt // guard against "declared and not used"
|
|
|
|
yyp -= yyR2[yyn]
|
|
// yyp is now the index of $0. Perform the default action. Iff the
|
|
// reduced production is ε, $1 is possibly out of range.
|
|
if yyp+1 >= len(yyS) {
|
|
nyys := make([]yySymType, len(yyS)*2)
|
|
copy(nyys, yyS)
|
|
yyS = nyys
|
|
}
|
|
yyVAL = yyS[yyp+1]
|
|
|
|
/* consult goto table to find next state */
|
|
yyn = yyR1[yyn]
|
|
yyg := yyPgo[yyn]
|
|
yyj := yyg + yyS[yyp].yys + 1
|
|
|
|
if yyj >= yyLast {
|
|
yystate = yyAct[yyg]
|
|
} else {
|
|
yystate = yyAct[yyj]
|
|
if yyChk[yystate] != -yyn {
|
|
yystate = yyAct[yyg]
|
|
}
|
|
}
|
|
// dummy call; replaced with literal code
|
|
switch yynt {
|
|
|
|
case 1:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:278
|
|
{
|
|
yylex.(*Parser).rootNode = node.NewRoot(yyDollar[1].list)
|
|
yylex.(*Parser).positions.AddPosition(yylex.(*Parser).rootNode, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[1].list))
|
|
}
|
|
case 2:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:286
|
|
{
|
|
if yyDollar[2].node != nil {
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].node)
|
|
}
|
|
}
|
|
case 3:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:291
|
|
{
|
|
yyVAL.list = []node.Node{}
|
|
}
|
|
case 4:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:296
|
|
{
|
|
namePart := name.NewNamePart(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(namePart, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yyVAL.list = []node.Node{namePart}
|
|
yylex.(*Parser).comments.AddComments(namePart, yyDollar[1].token.Comments())
|
|
}
|
|
case 5:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:303
|
|
{
|
|
namePart := name.NewNamePart(yyDollar[3].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(namePart, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yyVAL.list = append(yyDollar[1].list, namePart)
|
|
yylex.(*Parser).comments.AddComments(namePart, yyDollar[3].token.Comments())
|
|
}
|
|
case 6:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:313
|
|
{
|
|
// error
|
|
yyVAL.node = nil
|
|
}
|
|
case 7:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:318
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 8:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:320
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 9:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:322
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 10:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:324
|
|
{
|
|
yyVAL.node = stmt.NewHaltCompiler()
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 11:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:330
|
|
{
|
|
name := name.NewName(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[2].list))
|
|
yyVAL.node = stmt.NewNamespace(name, nil)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[2].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 12:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:340
|
|
{
|
|
name := name.NewName(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[2].list))
|
|
yyVAL.node = stmt.NewNamespace(name, yyDollar[4].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[5].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[2].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 13:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:350
|
|
{
|
|
yyVAL.node = stmt.NewNamespace(nil, yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 14:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:356
|
|
{
|
|
yyVAL.node = stmt.NewUseList(nil, yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 15:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:362
|
|
{
|
|
useType := node.NewIdentifier(yyDollar[2].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[2].token.Comments())
|
|
|
|
yyVAL.node = stmt.NewUseList(useType, yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 16:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:372
|
|
{
|
|
useType := node.NewIdentifier(yyDollar[2].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[2].token.Comments())
|
|
|
|
yyVAL.node = stmt.NewUseList(useType, yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 17:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:382
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 18:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:387
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
|
}
|
|
case 19:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:389
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 20:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:394
|
|
{
|
|
name := name.NewName(yyDollar[1].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[1].list))
|
|
yyVAL.node = stmt.NewUse(nil, name, nil)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[1].list))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
}
|
|
case 21:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:404
|
|
{
|
|
name := name.NewName(yyDollar[1].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[1].list))
|
|
alias := node.NewIdentifier(yyDollar[3].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(alias, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yyVAL.node = stmt.NewUse(nil, name, alias)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeListTokenPosition(yyDollar[1].list, yyDollar[3].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
yylex.(*Parser).comments.AddComments(alias, yyDollar[3].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
}
|
|
case 22:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:417
|
|
{
|
|
name := name.NewName(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[2].list))
|
|
yyVAL.node = stmt.NewUse(nil, name, nil)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[2].list))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[2].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).listGetFirstNodeComments(yyDollar[2].list))
|
|
}
|
|
case 23:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:427
|
|
{
|
|
name := name.NewName(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[2].list))
|
|
alias := node.NewIdentifier(yyDollar[4].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(alias, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[4].token))
|
|
yyVAL.node = stmt.NewUse(nil, name, alias)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeListTokenPosition(yyDollar[2].list, yyDollar[4].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[2].list))
|
|
yylex.(*Parser).comments.AddComments(alias, yyDollar[4].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).listGetFirstNodeComments(yyDollar[2].list))
|
|
}
|
|
case 24:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:443
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
|
}
|
|
case 25:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:445
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 26:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:450
|
|
{
|
|
name := name.NewName(yyDollar[1].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[1].list))
|
|
yyVAL.node = stmt.NewUse(nil, name, nil)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[1].list))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
}
|
|
case 27:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:460
|
|
{
|
|
name := name.NewName(yyDollar[1].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[1].list))
|
|
alias := node.NewIdentifier(yyDollar[3].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(alias, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yyVAL.node = stmt.NewUse(nil, name, alias)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeListTokenPosition(yyDollar[1].list, yyDollar[3].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
yylex.(*Parser).comments.AddComments(alias, yyDollar[3].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
}
|
|
case 28:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:473
|
|
{
|
|
name := name.NewName(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[2].list))
|
|
yyVAL.node = stmt.NewUse(nil, name, nil)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[2].list))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[2].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).listGetFirstNodeComments(yyDollar[2].list))
|
|
}
|
|
case 29:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:483
|
|
{
|
|
name := name.NewName(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[2].list))
|
|
alias := node.NewIdentifier(yyDollar[4].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(alias, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[4].token))
|
|
yyVAL.node = stmt.NewUse(nil, name, alias)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeListTokenPosition(yyDollar[2].list, yyDollar[4].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[2].list))
|
|
yylex.(*Parser).comments.AddComments(alias, yyDollar[4].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).listGetFirstNodeComments(yyDollar[2].list))
|
|
}
|
|
case 30:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:499
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
|
}
|
|
case 31:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:501
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 32:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:506
|
|
{
|
|
name := name.NewName(yyDollar[1].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[1].list))
|
|
yyVAL.node = stmt.NewUse(nil, name, nil)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[1].list))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
}
|
|
case 33:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:516
|
|
{
|
|
name := name.NewName(yyDollar[1].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[1].list))
|
|
alias := node.NewIdentifier(yyDollar[3].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(alias, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yyVAL.node = stmt.NewUse(nil, name, alias)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeListTokenPosition(yyDollar[1].list, yyDollar[3].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
yylex.(*Parser).comments.AddComments(alias, yyDollar[3].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
}
|
|
case 34:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:529
|
|
{
|
|
name := name.NewName(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[2].list))
|
|
yyVAL.node = stmt.NewUse(nil, name, nil)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[2].list))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[2].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).listGetFirstNodeComments(yyDollar[2].list))
|
|
}
|
|
case 35:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:539
|
|
{
|
|
name := name.NewName(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[2].list))
|
|
alias := node.NewIdentifier(yyDollar[4].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(alias, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[4].token))
|
|
yyVAL.node = stmt.NewUse(nil, name, alias)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeListTokenPosition(yyDollar[2].list, yyDollar[4].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[2].list))
|
|
yylex.(*Parser).comments.AddComments(alias, yyDollar[4].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).listGetFirstNodeComments(yyDollar[2].list))
|
|
}
|
|
case 36:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:555
|
|
{
|
|
name := node.NewIdentifier(yyDollar[3].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[3].token.Comments())
|
|
|
|
constant := stmt.NewConstant(name, yyDollar[5].node, "")
|
|
yylex.(*Parser).positions.AddPosition(constant, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[3].token, yyDollar[5].node))
|
|
yylex.(*Parser).comments.AddComments(constant, yyDollar[3].token.Comments())
|
|
|
|
constList := yyDollar[1].node.(*stmt.ConstList)
|
|
constList.Consts = append(constList.Consts, constant)
|
|
|
|
yyVAL.node = yyDollar[1].node
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeNodeListPosition(yyDollar[1].node, constList.Consts))
|
|
}
|
|
case 37:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:571
|
|
{
|
|
name := node.NewIdentifier(yyDollar[2].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[2].token.Comments())
|
|
|
|
constant := stmt.NewConstant(name, yyDollar[4].node, "")
|
|
yylex.(*Parser).positions.AddPosition(constant, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[2].token, yyDollar[4].node))
|
|
yylex.(*Parser).comments.AddComments(constant, yyDollar[2].token.Comments())
|
|
|
|
constList := []node.Node{constant}
|
|
|
|
yyVAL.node = stmt.NewConstList(constList)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, constList))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 38:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:590
|
|
{
|
|
if yyDollar[2].node != nil {
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].node)
|
|
}
|
|
}
|
|
case 39:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:596
|
|
{
|
|
yyVAL.list = []node.Node{}
|
|
}
|
|
case 40:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:602
|
|
{
|
|
// error
|
|
yyVAL.node = nil
|
|
}
|
|
case 41:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:607
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 42:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:609
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 43:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:611
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 44:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:613
|
|
{
|
|
yyVAL.node = stmt.NewHaltCompiler()
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 45:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:623
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 46:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:625
|
|
{
|
|
label := node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(label, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yyVAL.node = stmt.NewLabel(label)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[2].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(label, yyDollar[1].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 47:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:638
|
|
{
|
|
yyVAL.node = stmt.NewStmtList(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 48:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:644
|
|
{
|
|
yyVAL.node = stmt.NewIf(yyDollar[2].node, yyDollar[3].node, yyDollar[4].list, yyDollar[5].node)
|
|
|
|
if yyDollar[5].node != nil {
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[5].node))
|
|
} else if len(yyDollar[4].list) > 0 {
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[4].list))
|
|
} else {
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[3].node))
|
|
}
|
|
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 49:
|
|
yyDollar = yyS[yypt-8 : yypt+1]
|
|
//line php5/php5.y:658
|
|
{
|
|
stmts := stmt.NewStmtList(yyDollar[4].list)
|
|
yylex.(*Parser).positions.AddPosition(stmts, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[4].list))
|
|
|
|
yyVAL.node = stmt.NewAltIf(yyDollar[2].node, stmts, yyDollar[5].list, yyDollar[6].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[8].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 50:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:667
|
|
{
|
|
switch n := yyDollar[3].node.(type) {
|
|
case *stmt.While:
|
|
n.Cond = yyDollar[2].node
|
|
case *stmt.AltWhile:
|
|
n.Cond = yyDollar[2].node
|
|
}
|
|
|
|
yyVAL.node = yyDollar[3].node
|
|
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 51:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:681
|
|
{
|
|
yyVAL.node = stmt.NewDo(yyDollar[2].node, yyDollar[4].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[5].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 52:
|
|
yyDollar = yyS[yypt-9 : yypt+1]
|
|
//line php5/php5.y:687
|
|
{
|
|
switch n := yyDollar[9].node.(type) {
|
|
case *stmt.For:
|
|
n.Init = yyDollar[3].list
|
|
n.Cond = yyDollar[5].list
|
|
n.Loop = yyDollar[7].list
|
|
case *stmt.AltFor:
|
|
n.Init = yyDollar[3].list
|
|
n.Cond = yyDollar[5].list
|
|
n.Loop = yyDollar[7].list
|
|
}
|
|
|
|
yyVAL.node = yyDollar[9].node
|
|
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[9].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 53:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:705
|
|
{
|
|
switch n := yyDollar[3].node.(type) {
|
|
case *stmt.Switch:
|
|
n.Cond = yyDollar[2].node
|
|
case *stmt.AltSwitch:
|
|
n.Cond = yyDollar[2].node
|
|
default:
|
|
panic("unexpected node type")
|
|
}
|
|
|
|
yyVAL.node = yyDollar[3].node
|
|
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 54:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:721
|
|
{
|
|
yyVAL.node = stmt.NewBreak(nil)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 55:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:727
|
|
{
|
|
yyVAL.node = stmt.NewBreak(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 56:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:733
|
|
{
|
|
yyVAL.node = stmt.NewContinue(nil)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 57:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:739
|
|
{
|
|
yyVAL.node = stmt.NewContinue(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 58:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:745
|
|
{
|
|
yyVAL.node = stmt.NewReturn(nil)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 59:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:751
|
|
{
|
|
yyVAL.node = stmt.NewReturn(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 60:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:757
|
|
{
|
|
yyVAL.node = stmt.NewReturn(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 61:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:763
|
|
{
|
|
yyVAL.node = stmt.NewExpression(yyDollar[1].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 62:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:769
|
|
{
|
|
yyVAL.node = stmt.NewGlobal(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 63:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:775
|
|
{
|
|
yyVAL.node = stmt.NewStatic(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 64:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:781
|
|
{
|
|
yyVAL.node = stmt.NewEcho(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 65:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:787
|
|
{
|
|
yyVAL.node = stmt.NewInlineHtml(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 66:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:793
|
|
{
|
|
yyVAL.node = stmt.NewExpression(yyDollar[1].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 67:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:799
|
|
{
|
|
yyVAL.node = stmt.NewUnset(yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[5].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 68:
|
|
yyDollar = yyS[yypt-8 : yypt+1]
|
|
//line php5/php5.y:805
|
|
{
|
|
if yyDollar[6].node == nil {
|
|
switch n := yyDollar[8].node.(type) {
|
|
case *stmt.Foreach:
|
|
n.Expr = yyDollar[3].node
|
|
n.Variable = yyDollar[5].node
|
|
case *stmt.AltForeach:
|
|
n.Expr = yyDollar[3].node
|
|
n.Variable = yyDollar[5].node
|
|
}
|
|
} else {
|
|
switch n := yyDollar[8].node.(type) {
|
|
case *stmt.Foreach:
|
|
n.Expr = yyDollar[3].node
|
|
n.Key = yyDollar[5].node
|
|
n.Variable = yyDollar[6].node
|
|
case *stmt.AltForeach:
|
|
n.Expr = yyDollar[3].node
|
|
n.Key = yyDollar[5].node
|
|
n.Variable = yyDollar[6].node
|
|
}
|
|
}
|
|
|
|
yyVAL.node = yyDollar[8].node
|
|
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[8].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 69:
|
|
yyDollar = yyS[yypt-8 : yypt+1]
|
|
//line php5/php5.y:834
|
|
{
|
|
if yyDollar[6].node == nil {
|
|
switch n := yyDollar[8].node.(type) {
|
|
case *stmt.Foreach:
|
|
n.Expr = yyDollar[3].node
|
|
n.Variable = yyDollar[5].node
|
|
case *stmt.AltForeach:
|
|
n.Expr = yyDollar[3].node
|
|
n.Variable = yyDollar[5].node
|
|
}
|
|
} else {
|
|
switch n := yyDollar[8].node.(type) {
|
|
case *stmt.Foreach:
|
|
n.Expr = yyDollar[3].node
|
|
n.Key = yyDollar[5].node
|
|
n.Variable = yyDollar[6].node
|
|
case *stmt.AltForeach:
|
|
n.Expr = yyDollar[3].node
|
|
n.Key = yyDollar[5].node
|
|
n.Variable = yyDollar[6].node
|
|
}
|
|
}
|
|
|
|
yyVAL.node = yyDollar[8].node
|
|
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[8].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 70:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:863
|
|
{
|
|
yyVAL.node = stmt.NewDeclare(yyDollar[3].list, yyDollar[5].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[5].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 71:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:869
|
|
{
|
|
yyVAL.node = stmt.NewNop()
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 72:
|
|
yyDollar = yyS[yypt-6 : yypt+1]
|
|
//line php5/php5.y:875
|
|
{
|
|
yyVAL.node = stmt.NewTry(yyDollar[3].list, yyDollar[5].list, yyDollar[6].node)
|
|
|
|
if yyDollar[6].node == nil {
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[5].list))
|
|
} else {
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[6].node))
|
|
}
|
|
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 73:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:887
|
|
{
|
|
yyVAL.node = stmt.NewThrow(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 74:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:893
|
|
{
|
|
label := node.NewIdentifier(yyDollar[2].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(label, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[2].token))
|
|
yyVAL.node = stmt.NewGoto(label)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(label, yyDollar[2].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 75:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:906
|
|
{
|
|
yyVAL.list = []node.Node{}
|
|
}
|
|
case 76:
|
|
yyDollar = yyS[yypt-9 : yypt+1]
|
|
//line php5/php5.y:908
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[4].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[4].token.Comments())
|
|
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[4].token.Comments())
|
|
|
|
catch := stmt.NewCatch([]node.Node{yyDollar[3].node}, variable, yyDollar[7].list)
|
|
yylex.(*Parser).positions.AddPosition(catch, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[8].token))
|
|
yylex.(*Parser).comments.AddComments(catch, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.list = append([]node.Node{catch}, yyDollar[9].list...)
|
|
}
|
|
case 77:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:926
|
|
{
|
|
yyVAL.node = nil
|
|
}
|
|
case 78:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:928
|
|
{
|
|
yyVAL.node = stmt.NewFinally(yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 79:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:937
|
|
{
|
|
yyVAL.list = yyDollar[1].list
|
|
}
|
|
case 80:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:939
|
|
{
|
|
yyVAL.list = []node.Node{}
|
|
}
|
|
case 81:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:944
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 82:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:946
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].node)
|
|
}
|
|
case 83:
|
|
yyDollar = yyS[yypt-8 : yypt+1]
|
|
//line php5/php5.y:951
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[4].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[4].token.Comments())
|
|
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[4].token.Comments())
|
|
|
|
yyVAL.node = stmt.NewCatch([]node.Node{yyDollar[3].node}, variable, yyDollar[7].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[8].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 84:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:968
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 85:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:970
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
|
}
|
|
case 86:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:975
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 87:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:980
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 88:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:985
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 89:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:990
|
|
{
|
|
yyVAL.token = nil
|
|
}
|
|
case 90:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:992
|
|
{
|
|
yyVAL.token = yyDollar[1].token
|
|
}
|
|
case 91:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:997
|
|
{
|
|
yyVAL.token = nil
|
|
}
|
|
case 92:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:999
|
|
{
|
|
yyVAL.token = yyDollar[1].token
|
|
}
|
|
case 93:
|
|
yyDollar = yyS[yypt-9 : yypt+1]
|
|
//line php5/php5.y:1004
|
|
{
|
|
name := node.NewIdentifier(yyDollar[3].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[3].token.Comments())
|
|
|
|
yyVAL.node = stmt.NewFunction(name, yyDollar[2].token != nil, yyDollar[5].list, nil, yyDollar[8].list, "")
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[9].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 94:
|
|
yyDollar = yyS[yypt-7 : yypt+1]
|
|
//line php5/php5.y:1017
|
|
{
|
|
switch n := yyDollar[1].node.(type) {
|
|
case *stmt.Class:
|
|
name := node.NewIdentifier(yyDollar[2].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[2].token))
|
|
n.ClassName = name
|
|
n.Stmts = yyDollar[6].list
|
|
n.Extends = yyDollar[3].ClassExtends
|
|
n.Implements = yyDollar[4].ClassImplements
|
|
|
|
case *stmt.Trait:
|
|
// TODO: is it possible that trait extend or implement
|
|
name := node.NewIdentifier(yyDollar[2].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[2].token))
|
|
n.TraitName = name
|
|
n.Stmts = yyDollar[6].list
|
|
}
|
|
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 95:
|
|
yyDollar = yyS[yypt-6 : yypt+1]
|
|
//line php5/php5.y:1038
|
|
{
|
|
name := node.NewIdentifier(yyDollar[2].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[2].token.Comments())
|
|
|
|
yyVAL.node = stmt.NewInterface(name, yyDollar[3].InterfaceExtends, yyDollar[5].list, "")
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[6].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 96:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1052
|
|
{
|
|
yyVAL.node = stmt.NewClass(nil, nil, nil, nil, nil, nil, "")
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 97:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1058
|
|
{
|
|
classModifier := node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(classModifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(classModifier, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.node = stmt.NewClass(nil, []node.Node{classModifier}, nil, nil, nil, nil, "")
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 98:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1068
|
|
{
|
|
yyVAL.node = stmt.NewTrait(nil, nil, "")
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 99:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1074
|
|
{
|
|
classModifier := node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(classModifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(classModifier, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.node = stmt.NewClass(nil, []node.Node{classModifier}, nil, nil, nil, nil, "")
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 100:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:1087
|
|
{
|
|
yyVAL.ClassExtends = nil
|
|
}
|
|
case 101:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1089
|
|
{
|
|
yyVAL.ClassExtends = stmt.NewClassExtends(yyDollar[2].node)
|
|
|
|
// save position
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.ClassExtends, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
}
|
|
case 102:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1099
|
|
{
|
|
yyVAL.token = yyDollar[1].token
|
|
}
|
|
case 103:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:1104
|
|
{
|
|
yyVAL.InterfaceExtends = nil
|
|
}
|
|
case 104:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1106
|
|
{
|
|
yyVAL.InterfaceExtends = stmt.NewInterfaceExtends(yyDollar[2].list)
|
|
|
|
// save position
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.InterfaceExtends, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list))
|
|
}
|
|
case 105:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:1116
|
|
{
|
|
yyVAL.ClassImplements = nil
|
|
}
|
|
case 106:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1118
|
|
{
|
|
yyVAL.ClassImplements = stmt.NewClassImplements(yyDollar[2].list)
|
|
|
|
// save position
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.ClassImplements, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list))
|
|
}
|
|
case 107:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1128
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 108:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1130
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
|
}
|
|
case 109:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:1135
|
|
{
|
|
yyVAL.node = nil
|
|
}
|
|
case 110:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1137
|
|
{
|
|
yyVAL.node = yyDollar[2].node
|
|
}
|
|
case 111:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1142
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 112:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1144
|
|
{
|
|
yyVAL.node = expr.NewReference(yyDollar[2].node)
|
|
}
|
|
case 113:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:1146
|
|
{
|
|
list := expr.NewList(yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(list, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yyVAL.node = list
|
|
yylex.(*Parser).comments.AddComments(list, yyDollar[1].token.Comments())
|
|
}
|
|
case 114:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1156
|
|
{
|
|
yyVAL.node = stmt.NewFor(nil, nil, nil, yyDollar[1].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[1].node))
|
|
}
|
|
case 115:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:1161
|
|
{
|
|
stmtList := stmt.NewStmtList(yyDollar[2].list)
|
|
yyVAL.node = stmt.NewAltFor(nil, nil, nil, stmtList)
|
|
|
|
yylex.(*Parser).positions.AddPosition(stmtList, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[2].list))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
}
|
|
case 116:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1173
|
|
{
|
|
yyVAL.node = stmt.NewForeach(nil, nil, nil, yyDollar[1].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[1].node))
|
|
}
|
|
case 117:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:1178
|
|
{
|
|
stmtList := stmt.NewStmtList(yyDollar[2].list)
|
|
yyVAL.node = stmt.NewAltForeach(nil, nil, nil, stmtList)
|
|
|
|
yylex.(*Parser).positions.AddPosition(stmtList, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[2].list))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
}
|
|
case 118:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1190
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 119:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:1192
|
|
{
|
|
yyVAL.node = stmt.NewStmtList(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 120:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1202
|
|
{
|
|
name := node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[1].token.Comments())
|
|
|
|
constant := stmt.NewConstant(name, yyDollar[3].node, "")
|
|
yylex.(*Parser).positions.AddPosition(constant, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(constant, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.list = []node.Node{constant}
|
|
}
|
|
case 121:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:1214
|
|
{
|
|
name := node.NewIdentifier(yyDollar[3].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[3].token.Comments())
|
|
|
|
constant := stmt.NewConstant(name, yyDollar[5].node, "")
|
|
yylex.(*Parser).positions.AddPosition(constant, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[3].token, yyDollar[5].node))
|
|
yylex.(*Parser).comments.AddComments(constant, yyDollar[3].token.Comments())
|
|
|
|
yyVAL.list = append(yyDollar[1].list, constant)
|
|
}
|
|
case 122:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1230
|
|
{
|
|
caseList := stmt.NewCaseList(yyDollar[2].list)
|
|
yyVAL.node = stmt.NewSwitch(nil, caseList)
|
|
|
|
yylex.(*Parser).positions.AddPosition(caseList, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
}
|
|
case 123:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:1238
|
|
{
|
|
caseList := stmt.NewCaseList(yyDollar[3].list)
|
|
yyVAL.node = stmt.NewSwitch(nil, caseList)
|
|
|
|
yylex.(*Parser).positions.AddPosition(caseList, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
}
|
|
case 124:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:1246
|
|
{
|
|
caseList := stmt.NewCaseList(yyDollar[2].list)
|
|
yyVAL.node = stmt.NewAltSwitch(nil, caseList)
|
|
|
|
yylex.(*Parser).positions.AddPosition(caseList, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[2].list))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
}
|
|
case 125:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:1254
|
|
{
|
|
|
|
caseList := stmt.NewCaseList(yyDollar[3].list)
|
|
yyVAL.node = stmt.NewAltSwitch(nil, caseList)
|
|
|
|
yylex.(*Parser).positions.AddPosition(caseList, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[3].list))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[5].token))
|
|
}
|
|
case 126:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:1267
|
|
{
|
|
yyVAL.list = []node.Node{}
|
|
}
|
|
case 127:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:1269
|
|
{
|
|
_case := stmt.NewCase(yyDollar[3].node, yyDollar[5].list)
|
|
yylex.(*Parser).positions.AddPosition(_case, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[2].token, yyDollar[5].list))
|
|
yyVAL.list = append(yyDollar[1].list, _case)
|
|
yylex.(*Parser).comments.AddComments(_case, yyDollar[2].token.Comments())
|
|
}
|
|
case 128:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:1276
|
|
{
|
|
_default := stmt.NewDefault(yyDollar[4].list)
|
|
yylex.(*Parser).positions.AddPosition(_default, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[2].token, yyDollar[4].list))
|
|
yyVAL.list = append(yyDollar[1].list, _default)
|
|
yylex.(*Parser).comments.AddComments(_default, yyDollar[2].token.Comments())
|
|
}
|
|
case 131:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1293
|
|
{
|
|
yyVAL.node = stmt.NewWhile(nil, yyDollar[1].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[1].node))
|
|
}
|
|
case 132:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:1298
|
|
{
|
|
stmtList := stmt.NewStmtList(yyDollar[2].list)
|
|
yyVAL.node = stmt.NewAltWhile(nil, stmtList)
|
|
|
|
yylex.(*Parser).positions.AddPosition(stmtList, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[2].list))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
}
|
|
case 133:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:1311
|
|
{
|
|
yyVAL.list = nil
|
|
}
|
|
case 134:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:1313
|
|
{
|
|
_elseIf := stmt.NewElseIf(yyDollar[3].node, yyDollar[4].node)
|
|
yylex.(*Parser).positions.AddPosition(_elseIf, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[2].token, yyDollar[4].node))
|
|
yylex.(*Parser).comments.AddComments(_elseIf, yyDollar[2].token.Comments())
|
|
|
|
yyVAL.list = append(yyDollar[1].list, _elseIf)
|
|
}
|
|
case 135:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:1325
|
|
{
|
|
yyVAL.list = nil
|
|
}
|
|
case 136:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:1327
|
|
{
|
|
stmts := stmt.NewStmtList(yyDollar[5].list)
|
|
yylex.(*Parser).positions.AddPosition(stmts, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[5].list))
|
|
|
|
_elseIf := stmt.NewAltElseIf(yyDollar[3].node, stmts)
|
|
yylex.(*Parser).positions.AddPosition(_elseIf, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[2].token, yyDollar[5].list))
|
|
yylex.(*Parser).comments.AddComments(_elseIf, yyDollar[2].token.Comments())
|
|
|
|
yyVAL.list = append(yyDollar[1].list, _elseIf)
|
|
}
|
|
case 137:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:1342
|
|
{
|
|
yyVAL.node = nil
|
|
}
|
|
case 138:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1344
|
|
{
|
|
yyVAL.node = stmt.NewElse(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 139:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:1354
|
|
{
|
|
yyVAL.node = nil
|
|
}
|
|
case 140:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1356
|
|
{
|
|
stmts := stmt.NewStmtList(yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(stmts, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[3].list))
|
|
|
|
yyVAL.node = stmt.NewAltElse(stmts)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[3].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 141:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1369
|
|
{
|
|
yyVAL.list = yyDollar[1].list
|
|
}
|
|
case 142:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:1371
|
|
{
|
|
yyVAL.list = nil
|
|
}
|
|
case 143:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1376
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 144:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1378
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
|
}
|
|
case 145:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:1383
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[4].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[4].token.Comments())
|
|
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[4].token.Comments())
|
|
|
|
yyVAL.node = node.NewParameter(yyDollar[1].node, variable, nil, yyDollar[2].token != nil, yyDollar[3].token != nil)
|
|
|
|
if yyDollar[1].node != nil {
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
} else if yyDollar[2].token != nil {
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[2].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[2].token.Comments())
|
|
} else if yyDollar[3].token != nil {
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[3].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[3].token.Comments())
|
|
} else {
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[4].token.Comments())
|
|
}
|
|
}
|
|
case 146:
|
|
yyDollar = yyS[yypt-6 : yypt+1]
|
|
//line php5/php5.y:1409
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[4].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[4].token.Comments())
|
|
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[4].token.Comments())
|
|
|
|
yyVAL.node = node.NewParameter(yyDollar[1].node, variable, yyDollar[6].node, yyDollar[2].token != nil, yyDollar[3].token != nil)
|
|
|
|
if yyDollar[1].node != nil {
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[6].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
} else if yyDollar[2].token != nil {
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[2].token, yyDollar[6].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[2].token.Comments())
|
|
} else if yyDollar[3].token != nil {
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[3].token, yyDollar[6].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[3].token.Comments())
|
|
} else {
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[4].token, yyDollar[6].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[4].token.Comments())
|
|
}
|
|
}
|
|
case 147:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:1439
|
|
{
|
|
yyVAL.node = nil
|
|
}
|
|
case 148:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1441
|
|
{
|
|
yyVAL.node = node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 149:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1447
|
|
{
|
|
yyVAL.node = node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 150:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1453
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 151:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1459
|
|
{
|
|
yyVAL.node = node.NewArgumentList(nil)
|
|
|
|
// save position
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[2].token))
|
|
}
|
|
case 152:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1466
|
|
{
|
|
yyVAL.node = node.NewArgumentList(yyDollar[2].list)
|
|
|
|
// save position
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
}
|
|
case 153:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1473
|
|
{
|
|
arg := node.NewArgument(yyDollar[2].node, false, false)
|
|
yyVAL.node = node.NewArgumentList([]node.Node{arg})
|
|
|
|
// save position
|
|
yylex.(*Parser).positions.AddPosition(arg, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[2].node))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
}
|
|
case 154:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1486
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 155:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1488
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
|
}
|
|
case 156:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1493
|
|
{
|
|
yyVAL.node = node.NewArgument(yyDollar[1].node, false, false)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[1].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 157:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1499
|
|
{
|
|
yyVAL.node = node.NewArgument(yyDollar[1].node, false, false)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[1].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 158:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1505
|
|
{
|
|
yyVAL.node = node.NewArgument(yyDollar[2].node, false, true)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 159:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1511
|
|
{
|
|
yyVAL.node = node.NewArgument(yyDollar[2].node, true, false)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 160:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1520
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
|
}
|
|
case 161:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1522
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 162:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1528
|
|
{
|
|
name := node.NewIdentifier(strings.TrimLeft(yyDollar[1].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yyVAL.node = expr.NewVariable(name)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[1].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 163:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1538
|
|
{
|
|
yyVAL.node = expr.NewVariable(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 164:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:1544
|
|
{
|
|
yyVAL.node = expr.NewVariable(yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 165:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1554
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[3].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
|
|
staticVar := stmt.NewStaticVar(variable, nil)
|
|
yylex.(*Parser).positions.AddPosition(staticVar, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
|
|
yyVAL.list = append(yyDollar[1].list, staticVar)
|
|
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[3].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[3].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(staticVar, yyDollar[3].token.Comments())
|
|
}
|
|
case 166:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:1571
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[3].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
|
|
staticVar := stmt.NewStaticVar(variable, yyDollar[5].node)
|
|
yylex.(*Parser).positions.AddPosition(staticVar, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[3].token, yyDollar[5].node))
|
|
|
|
yyVAL.list = append(yyDollar[1].list, staticVar)
|
|
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[3].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[3].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(staticVar, yyDollar[3].token.Comments())
|
|
}
|
|
case 167:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1588
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[1].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
|
|
staticVar := stmt.NewStaticVar(variable, nil)
|
|
yylex.(*Parser).positions.AddPosition(staticVar, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
|
|
yyVAL.list = []node.Node{staticVar}
|
|
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[1].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[1].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(staticVar, yyDollar[1].token.Comments())
|
|
}
|
|
case 168:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1605
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[1].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
|
|
staticVar := stmt.NewStaticVar(variable, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(staticVar, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[3].node))
|
|
|
|
yyVAL.list = []node.Node{staticVar}
|
|
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[1].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[1].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(staticVar, yyDollar[1].token.Comments())
|
|
}
|
|
case 169:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1627
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].node)
|
|
}
|
|
case 170:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:1629
|
|
{
|
|
yyVAL.list = []node.Node{}
|
|
}
|
|
case 171:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1635
|
|
{
|
|
yyVAL.node = stmt.NewPropertyList(yyDollar[1].list, yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeListTokenPosition(yyDollar[1].list, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
}
|
|
case 172:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1641
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 173:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1643
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 174:
|
|
yyDollar = yyS[yypt-8 : yypt+1]
|
|
//line php5/php5.y:1645
|
|
{
|
|
name := node.NewIdentifier(yyDollar[4].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[4].token.Comments())
|
|
|
|
yyVAL.node = stmt.NewClassMethod(name, yyDollar[1].list, yyDollar[3].token != nil, yyDollar[6].list, nil, yyDollar[8].node, "")
|
|
|
|
if yyDollar[1].list == nil {
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[2].token, yyDollar[8].node))
|
|
} else {
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeListNodePosition(yyDollar[1].list, yyDollar[8].node))
|
|
}
|
|
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
}
|
|
case 175:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1664
|
|
{
|
|
var adaptationList *stmt.TraitAdaptationList
|
|
switch n := yyDollar[3].node.(type) {
|
|
case *stmt.TraitAdaptationList:
|
|
adaptationList = n
|
|
default:
|
|
adaptationList = nil
|
|
}
|
|
|
|
yyVAL.node = stmt.NewTraitUse(yyDollar[2].list, adaptationList)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 176:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1681
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 177:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1683
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
|
}
|
|
case 178:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1688
|
|
{
|
|
yyVAL.node = stmt.NewNop()
|
|
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
}
|
|
case 179:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1694
|
|
{
|
|
yyVAL.node = stmt.NewTraitAdaptationList(yyDollar[2].list)
|
|
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
}
|
|
case 180:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:1703
|
|
{
|
|
yyVAL.list = nil
|
|
}
|
|
case 181:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1705
|
|
{
|
|
yyVAL.list = yyDollar[1].list
|
|
}
|
|
case 182:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1710
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 183:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1712
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].node)
|
|
}
|
|
case 184:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1717
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 185:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1719
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 186:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1724
|
|
{
|
|
yyVAL.node = stmt.NewTraitUsePrecedence(yyDollar[1].node, yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeNodeListPosition(yyDollar[1].node, yyDollar[3].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 187:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1733
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 188:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1735
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
|
}
|
|
case 189:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1740
|
|
{
|
|
name := node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.node = stmt.NewTraitMethodRef(nil, name)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 190:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1750
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 191:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1755
|
|
{
|
|
target := node.NewIdentifier(yyDollar[3].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(target, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(target, yyDollar[3].token.Comments())
|
|
|
|
yyVAL.node = stmt.NewTraitMethodRef(yyDollar[1].node, target)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 192:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:1768
|
|
{
|
|
alias := node.NewIdentifier(yyDollar[4].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(alias, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[4].token))
|
|
yyVAL.node = stmt.NewTraitUseAlias(yyDollar[1].node, yyDollar[3].node, alias)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(alias, yyDollar[4].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 193:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1778
|
|
{
|
|
yyVAL.node = stmt.NewTraitUseAlias(yyDollar[1].node, yyDollar[3].node, nil)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 194:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:1787
|
|
{
|
|
yyVAL.node = nil
|
|
}
|
|
case 195:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1789
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 196:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1794
|
|
{
|
|
yyVAL.node = stmt.NewNop()
|
|
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
}
|
|
case 197:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1800
|
|
{
|
|
yyVAL.node = stmt.NewStmtList(yyDollar[2].list)
|
|
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
}
|
|
case 198:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1809
|
|
{
|
|
yyVAL.list = yyDollar[1].list
|
|
}
|
|
case 199:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1811
|
|
{
|
|
modifier := node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(modifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(modifier, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.list = []node.Node{modifier}
|
|
}
|
|
case 200:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:1822
|
|
{
|
|
yyVAL.list = nil
|
|
}
|
|
case 201:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1824
|
|
{
|
|
yyVAL.list = yyDollar[1].list
|
|
}
|
|
case 202:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1829
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 203:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1831
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].node)
|
|
}
|
|
case 204:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1836
|
|
{
|
|
yyVAL.node = node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 205:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1842
|
|
{
|
|
yyVAL.node = node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 206:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1848
|
|
{
|
|
yyVAL.node = node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 207:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1854
|
|
{
|
|
yyVAL.node = node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 208:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1860
|
|
{
|
|
yyVAL.node = node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 209:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1866
|
|
{
|
|
yyVAL.node = node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 210:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1875
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[3].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[3].token.Comments())
|
|
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[3].token.Comments())
|
|
|
|
property := stmt.NewProperty(variable, nil, "")
|
|
yylex.(*Parser).positions.AddPosition(property, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(property, yyDollar[3].token.Comments())
|
|
|
|
yyVAL.list = append(yyDollar[1].list, property)
|
|
}
|
|
case 211:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:1891
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[3].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[3].token.Comments())
|
|
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[3].token.Comments())
|
|
|
|
property := stmt.NewProperty(variable, yyDollar[5].node, "")
|
|
yylex.(*Parser).positions.AddPosition(property, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[3].token, yyDollar[5].node))
|
|
yylex.(*Parser).comments.AddComments(property, yyDollar[3].token.Comments())
|
|
|
|
yyVAL.list = append(yyDollar[1].list, property)
|
|
}
|
|
case 212:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1907
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[1].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[1].token.Comments())
|
|
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[1].token.Comments())
|
|
|
|
property := stmt.NewProperty(variable, nil, "")
|
|
yylex.(*Parser).positions.AddPosition(property, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(property, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.list = []node.Node{property}
|
|
}
|
|
case 213:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1923
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[1].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[1].token.Comments())
|
|
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[1].token.Comments())
|
|
|
|
property := stmt.NewProperty(variable, yyDollar[3].node, "")
|
|
yylex.(*Parser).positions.AddPosition(property, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(property, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.list = []node.Node{property}
|
|
}
|
|
case 214:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:1942
|
|
{
|
|
name := node.NewIdentifier(yyDollar[3].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[3].token.Comments())
|
|
|
|
constant := stmt.NewConstant(name, yyDollar[5].node, "")
|
|
yylex.(*Parser).positions.AddPosition(constant, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[3].token, yyDollar[5].node))
|
|
yylex.(*Parser).comments.AddComments(constant, yyDollar[3].token.Comments())
|
|
|
|
yyDollar[1].node.(*stmt.ClassConstList).Consts = append(yyDollar[1].node.(*stmt.ClassConstList).Consts, constant)
|
|
yylex.(*Parser).positions.AddPosition(yyDollar[1].node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[5].node))
|
|
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 215:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:1957
|
|
{
|
|
name := node.NewIdentifier(yyDollar[2].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[2].token.Comments())
|
|
|
|
constant := stmt.NewConstant(name, yyDollar[4].node, "")
|
|
yylex.(*Parser).positions.AddPosition(constant, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[2].token, yyDollar[4].node))
|
|
yylex.(*Parser).comments.AddComments(constant, yyDollar[2].token.Comments())
|
|
|
|
yyVAL.node = stmt.NewClassConstList(nil, []node.Node{constant})
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[4].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 216:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1974
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
|
}
|
|
case 217:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1976
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 218:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:1982
|
|
{
|
|
yyVAL.list = nil
|
|
}
|
|
case 219:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1984
|
|
{
|
|
yyVAL.list = yyDollar[1].list
|
|
}
|
|
case 220:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:1989
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
|
}
|
|
case 221:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1991
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 222:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:1996
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].list...)
|
|
}
|
|
case 223:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:1998
|
|
{
|
|
yyVAL.list = yyDollar[1].list
|
|
}
|
|
case 224:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2003
|
|
{
|
|
fetch := expr.NewArrayDimFetch(nil, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(fetch, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[3].node))
|
|
|
|
yyVAL.list = append(yyDollar[1].list, fetch)
|
|
}
|
|
case 225:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2010
|
|
{
|
|
fetch := expr.NewArrayDimFetch(nil, yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(fetch, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[2].node))
|
|
|
|
yyVAL.list = []node.Node{fetch}
|
|
}
|
|
case 226:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2020
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].list...)
|
|
}
|
|
case 227:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2022
|
|
{
|
|
yyVAL.list = yyDollar[1].list
|
|
}
|
|
case 228:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2024
|
|
{
|
|
yyVAL.list = yyDollar[1].list
|
|
}
|
|
case 229:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:2029
|
|
{
|
|
yyVAL.list = nil
|
|
}
|
|
case 230:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2031
|
|
{
|
|
yyVAL.list = yyDollar[1].list
|
|
}
|
|
case 231:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2036
|
|
{
|
|
|
|
if yyDollar[3].node != nil {
|
|
yyVAL.node = expr.NewNew(yyDollar[2].node, yyDollar[3].node.(*node.ArgumentList))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[3].node))
|
|
} else {
|
|
yyVAL.node = expr.NewNew(yyDollar[2].node, nil)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
}
|
|
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 232:
|
|
yyDollar = yyS[yypt-6 : yypt+1]
|
|
//line php5/php5.y:2052
|
|
{
|
|
list := expr.NewList(yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(list, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yyVAL.node = assign.NewAssign(list, yyDollar[6].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[6].node))
|
|
|
|
yylex.(*Parser).comments.AddComments(list, yyDollar[1].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 233:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2062
|
|
{
|
|
yyVAL.node = assign.NewAssign(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 234:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2068
|
|
{
|
|
yyVAL.node = assign.NewReference(yyDollar[1].node, yyDollar[4].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[4].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 235:
|
|
yyDollar = yyS[yypt-6 : yypt+1]
|
|
//line php5/php5.y:2074
|
|
{
|
|
var _new *expr.New
|
|
|
|
if yyDollar[6].node != nil {
|
|
_new = expr.NewNew(yyDollar[5].node, yyDollar[6].node.(*node.ArgumentList))
|
|
yylex.(*Parser).positions.AddPosition(_new, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[4].token, yyDollar[6].node))
|
|
} else {
|
|
_new = expr.NewNew(yyDollar[5].node, nil)
|
|
yylex.(*Parser).positions.AddPosition(_new, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[4].token, yyDollar[5].node))
|
|
}
|
|
yylex.(*Parser).comments.AddComments(_new, yylex.(*Parser).comments[yyDollar[1].node])
|
|
|
|
yyVAL.node = assign.NewReference(yyDollar[1].node, _new)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, _new))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 236:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2091
|
|
{
|
|
yyVAL.node = expr.NewClone(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 237:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2097
|
|
{
|
|
yyVAL.node = assign.NewPlus(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 238:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2103
|
|
{
|
|
yyVAL.node = assign.NewMinus(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 239:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2109
|
|
{
|
|
yyVAL.node = assign.NewMul(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 240:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2115
|
|
{
|
|
yyVAL.node = assign.NewPow(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 241:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2121
|
|
{
|
|
yyVAL.node = assign.NewDiv(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 242:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2127
|
|
{
|
|
yyVAL.node = assign.NewConcat(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 243:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2133
|
|
{
|
|
yyVAL.node = assign.NewMod(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 244:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2139
|
|
{
|
|
yyVAL.node = assign.NewBitwiseAnd(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 245:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2145
|
|
{
|
|
yyVAL.node = assign.NewBitwiseOr(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 246:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2151
|
|
{
|
|
yyVAL.node = assign.NewBitwiseXor(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 247:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2157
|
|
{
|
|
yyVAL.node = assign.NewShiftLeft(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 248:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2163
|
|
{
|
|
yyVAL.node = assign.NewShiftRight(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 249:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2169
|
|
{
|
|
yyVAL.node = expr.NewPostInc(yyDollar[1].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 250:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2175
|
|
{
|
|
yyVAL.node = expr.NewPreInc(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 251:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2181
|
|
{
|
|
yyVAL.node = expr.NewPostDec(yyDollar[1].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 252:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2187
|
|
{
|
|
yyVAL.node = expr.NewPreDec(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 253:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2193
|
|
{
|
|
yyVAL.node = binary.NewBooleanOr(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 254:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2199
|
|
{
|
|
yyVAL.node = binary.NewBooleanAnd(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 255:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2205
|
|
{
|
|
yyVAL.node = binary.NewLogicalOr(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 256:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2211
|
|
{
|
|
yyVAL.node = binary.NewLogicalAnd(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 257:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2217
|
|
{
|
|
yyVAL.node = binary.NewLogicalXor(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 258:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2223
|
|
{
|
|
yyVAL.node = binary.NewBitwiseOr(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 259:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2229
|
|
{
|
|
yyVAL.node = binary.NewBitwiseAnd(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 260:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2235
|
|
{
|
|
yyVAL.node = binary.NewBitwiseXor(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 261:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2241
|
|
{
|
|
yyVAL.node = binary.NewConcat(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 262:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2247
|
|
{
|
|
yyVAL.node = binary.NewPlus(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 263:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2253
|
|
{
|
|
yyVAL.node = binary.NewMinus(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 264:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2259
|
|
{
|
|
yyVAL.node = binary.NewMul(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 265:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2265
|
|
{
|
|
yyVAL.node = binary.NewPow(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 266:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2271
|
|
{
|
|
yyVAL.node = binary.NewDiv(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 267:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2277
|
|
{
|
|
yyVAL.node = binary.NewMod(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 268:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2283
|
|
{
|
|
yyVAL.node = binary.NewShiftLeft(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 269:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2289
|
|
{
|
|
yyVAL.node = binary.NewShiftRight(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 270:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2295
|
|
{
|
|
yyVAL.node = expr.NewUnaryPlus(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 271:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2301
|
|
{
|
|
yyVAL.node = expr.NewUnaryMinus(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 272:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2307
|
|
{
|
|
yyVAL.node = expr.NewBooleanNot(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 273:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2313
|
|
{
|
|
yyVAL.node = expr.NewBitwiseNot(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 274:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2319
|
|
{
|
|
yyVAL.node = binary.NewIdentical(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 275:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2325
|
|
{
|
|
yyVAL.node = binary.NewNotIdentical(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 276:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2331
|
|
{
|
|
yyVAL.node = binary.NewEqual(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 277:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2337
|
|
{
|
|
yyVAL.node = binary.NewNotEqual(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 278:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2343
|
|
{
|
|
yyVAL.node = binary.NewSmaller(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 279:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2349
|
|
{
|
|
yyVAL.node = binary.NewSmallerOrEqual(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 280:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2355
|
|
{
|
|
yyVAL.node = binary.NewGreater(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 281:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2361
|
|
{
|
|
yyVAL.node = binary.NewGreaterOrEqual(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 282:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2367
|
|
{
|
|
yyVAL.node = expr.NewInstanceOf(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 283:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2373
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 284:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2375
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 285:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2377
|
|
{
|
|
yyVAL.node = yyDollar[2].node
|
|
|
|
for _, n := range yyDollar[4].list {
|
|
switch nn := n.(type) {
|
|
case *expr.ArrayDimFetch:
|
|
nn.Variable = yyVAL.node
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyVAL.node, nn))
|
|
yylex.(*Parser).comments.AddComments(nn, yyDollar[1].token.Comments())
|
|
yyVAL.node = nn
|
|
|
|
case *expr.PropertyFetch:
|
|
nn.Variable = yyVAL.node
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyVAL.node, nn))
|
|
yylex.(*Parser).comments.AddComments(nn, yyDollar[1].token.Comments())
|
|
yyVAL.node = nn
|
|
|
|
case *expr.MethodCall:
|
|
nn.Variable = yyVAL.node
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyVAL.node, nn))
|
|
yylex.(*Parser).comments.AddComments(nn, yyDollar[1].token.Comments())
|
|
yyVAL.node = nn
|
|
}
|
|
}
|
|
}
|
|
case 286:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:2403
|
|
{
|
|
yyVAL.node = expr.NewTernary(yyDollar[1].node, yyDollar[3].node, yyDollar[5].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[5].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 287:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2409
|
|
{
|
|
yyVAL.node = expr.NewTernary(yyDollar[1].node, nil, yyDollar[4].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[4].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 288:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2415
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 289:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2417
|
|
{
|
|
yyVAL.node = cast.NewInt(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 290:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2423
|
|
{
|
|
yyVAL.node = cast.NewDouble(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 291:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2429
|
|
{
|
|
yyVAL.node = cast.NewString(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 292:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2435
|
|
{
|
|
yyVAL.node = cast.NewArray(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 293:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2441
|
|
{
|
|
yyVAL.node = cast.NewObject(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 294:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2447
|
|
{
|
|
yyVAL.node = cast.NewBool(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 295:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2453
|
|
{
|
|
yyVAL.node = cast.NewUnset(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 296:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2459
|
|
{
|
|
if strings.EqualFold(yyDollar[1].token.Value, "die") {
|
|
yyVAL.node = expr.NewDie(yyDollar[2].node)
|
|
} else {
|
|
yyVAL.node = expr.NewExit(yyDollar[2].node)
|
|
}
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 297:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2469
|
|
{
|
|
yyVAL.node = expr.NewErrorSuppress(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 298:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2475
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 299:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2477
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 300:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2479
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 301:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2481
|
|
{
|
|
yyVAL.node = expr.NewShellExec(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 302:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2487
|
|
{
|
|
yyVAL.node = expr.NewPrint(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 303:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2493
|
|
{
|
|
yyVAL.node = expr.NewYield(nil, nil)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 304:
|
|
yyDollar = yyS[yypt-9 : yypt+1]
|
|
//line php5/php5.y:2499
|
|
{
|
|
yyVAL.node = expr.NewClosure(yyDollar[4].list, yyDollar[6].ClosureUse, nil, yyDollar[8].list, false, yyDollar[2].token != nil, "")
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[9].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 305:
|
|
yyDollar = yyS[yypt-10 : yypt+1]
|
|
//line php5/php5.y:2506
|
|
{
|
|
yyVAL.node = expr.NewClosure(yyDollar[5].list, yyDollar[7].ClosureUse, nil, yyDollar[9].list, true, yyDollar[3].token != nil, "")
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[10].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 306:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2516
|
|
{
|
|
yyVAL.node = expr.NewYield(nil, yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 307:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2522
|
|
{
|
|
yyVAL.node = expr.NewYield(nil, yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 308:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2528
|
|
{
|
|
yyVAL.node = expr.NewYield(yyDollar[2].node, yyDollar[4].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[4].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 309:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2534
|
|
{
|
|
yyVAL.node = expr.NewYield(yyDollar[2].node, yyDollar[4].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[4].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 310:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2543
|
|
{
|
|
yyVAL.node = expr.NewArrayDimFetch(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 311:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2549
|
|
{
|
|
yyVAL.node = expr.NewArrayDimFetch(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 312:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2555
|
|
{
|
|
str := scalar.NewString(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(str, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(str, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.node = expr.NewArrayDimFetch(str, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(str, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[str])
|
|
}
|
|
case 313:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2565
|
|
{
|
|
yyVAL.node = expr.NewArrayDimFetch(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 314:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2574
|
|
{
|
|
yyVAL.node = expr.NewArray(yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 315:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2580
|
|
{
|
|
yyVAL.node = expr.NewShortArray(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 316:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2589
|
|
{
|
|
yyVAL.token = yyDollar[1].token
|
|
}
|
|
case 317:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:2594
|
|
{
|
|
yyVAL.ClosureUse = nil
|
|
}
|
|
case 318:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2596
|
|
{
|
|
yyVAL.ClosureUse = expr.NewClosureUse(yyDollar[3].list)
|
|
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.ClosureUse, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
}
|
|
case 319:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2605
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[3].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[3].token.Comments())
|
|
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[3].token.Comments())
|
|
|
|
yyVAL.list = append(yyDollar[1].list, variable)
|
|
}
|
|
case 320:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2617
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[4].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[4].token.Comments())
|
|
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[3].token.Comments())
|
|
|
|
reference := expr.NewReference(variable)
|
|
|
|
yyVAL.list = append(yyDollar[1].list, reference)
|
|
}
|
|
case 321:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2631
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[1].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[1].token.Comments())
|
|
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.list = []node.Node{variable}
|
|
}
|
|
case 322:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2643
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[2].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[2].token.Comments())
|
|
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[1].token.Comments())
|
|
|
|
reference := expr.NewReference(variable)
|
|
|
|
yyVAL.list = []node.Node{reference}
|
|
}
|
|
case 323:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2660
|
|
{
|
|
name := name.NewName(yyDollar[1].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[1].list))
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
|
|
yyVAL.node = expr.NewFunctionCall(name, yyDollar[2].node.(*node.ArgumentList))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(name, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[name])
|
|
}
|
|
case 324:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2670
|
|
{
|
|
funcName := name.NewRelative(yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(funcName, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[3].list))
|
|
yylex.(*Parser).comments.AddComments(funcName, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.node = expr.NewFunctionCall(funcName, yyDollar[4].node.(*node.ArgumentList))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(funcName, yyDollar[4].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[funcName])
|
|
}
|
|
case 325:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2680
|
|
{
|
|
funcName := name.NewFullyQualified(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(funcName, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list))
|
|
yylex.(*Parser).comments.AddComments(funcName, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.node = expr.NewFunctionCall(funcName, yyDollar[3].node.(*node.ArgumentList))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(funcName, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[funcName])
|
|
}
|
|
case 326:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2690
|
|
{
|
|
yyVAL.node = expr.NewStaticCall(yyDollar[1].node, yyDollar[3].node, yyDollar[4].node.(*node.ArgumentList))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[4].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 327:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2696
|
|
{
|
|
yyVAL.node = expr.NewStaticCall(yyDollar[1].node, yyDollar[3].node, yyDollar[4].node.(*node.ArgumentList))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[4].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 328:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2702
|
|
{
|
|
yyVAL.node = expr.NewStaticCall(yyDollar[1].node, yyDollar[3].node, yyDollar[4].node.(*node.ArgumentList))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[4].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 329:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2708
|
|
{
|
|
yyVAL.node = expr.NewStaticCall(yyDollar[1].node, yyDollar[3].node, yyDollar[4].node.(*node.ArgumentList))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[4].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 330:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2714
|
|
{
|
|
yyVAL.node = expr.NewFunctionCall(yyDollar[1].node, yyDollar[2].node.(*node.ArgumentList))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 331:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2723
|
|
{
|
|
yyVAL.node = node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 332:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2729
|
|
{
|
|
yyVAL.node = name.NewName(yyDollar[1].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[1].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
}
|
|
case 333:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2735
|
|
{
|
|
yyVAL.node = name.NewRelative(yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[3].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 334:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2741
|
|
{
|
|
yyVAL.node = name.NewFullyQualified(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 335:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2750
|
|
{
|
|
yyVAL.node = name.NewName(yyDollar[1].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[1].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
}
|
|
case 336:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2756
|
|
{
|
|
yyVAL.node = name.NewRelative(yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[3].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 337:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2762
|
|
{
|
|
yyVAL.node = name.NewFullyQualified(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 338:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2771
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 339:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2773
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 340:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2778
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
|
|
for _, n := range yyDollar[3].list {
|
|
switch nn := n.(type) {
|
|
case *expr.ArrayDimFetch:
|
|
nn.Variable = yyVAL.node
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyVAL.node, nn))
|
|
yylex.(*Parser).comments.AddComments(nn, yylex.(*Parser).comments[yyDollar[1].node])
|
|
yyVAL.node = nn
|
|
|
|
case *expr.PropertyFetch:
|
|
nn.Variable = yyVAL.node
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyVAL.node, nn))
|
|
yylex.(*Parser).comments.AddComments(nn, yylex.(*Parser).comments[yyDollar[1].node])
|
|
yyVAL.node = nn
|
|
}
|
|
}
|
|
|
|
for _, n := range yyDollar[4].list {
|
|
switch nn := n.(type) {
|
|
case *expr.ArrayDimFetch:
|
|
nn.Variable = yyVAL.node
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyVAL.node, nn))
|
|
yylex.(*Parser).comments.AddComments(nn, yylex.(*Parser).comments[yyDollar[1].node])
|
|
yyVAL.node = nn
|
|
|
|
case *expr.PropertyFetch:
|
|
nn.Variable = yyVAL.node
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyVAL.node, nn))
|
|
yylex.(*Parser).comments.AddComments(nn, yylex.(*Parser).comments[yyDollar[1].node])
|
|
yyVAL.node = nn
|
|
}
|
|
}
|
|
}
|
|
case 341:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2814
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 342:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2820
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].list...)
|
|
}
|
|
case 343:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:2822
|
|
{
|
|
yyVAL.list = []node.Node{}
|
|
}
|
|
case 344:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2828
|
|
{
|
|
yyVAL.list = yyDollar[2].list
|
|
}
|
|
case 345:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:2833
|
|
{
|
|
yyVAL.node = nil
|
|
}
|
|
case 346:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2835
|
|
{
|
|
yyVAL.node = nil
|
|
}
|
|
case 347:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2837
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 348:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:2842
|
|
{
|
|
yyVAL.list = []node.Node{}
|
|
}
|
|
case 349:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2844
|
|
{
|
|
yyVAL.list = []node.Node{scalar.NewEncapsedStringPart(yyDollar[1].token.Value)}
|
|
}
|
|
case 350:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2846
|
|
{
|
|
yyVAL.list = yyDollar[1].list
|
|
}
|
|
case 351:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:2851
|
|
{
|
|
yyVAL.node = nil
|
|
}
|
|
case 352:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2853
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 353:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2858
|
|
{
|
|
yyVAL.node = scalar.NewLnumber(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 354:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2864
|
|
{
|
|
yyVAL.node = scalar.NewDnumber(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 355:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2870
|
|
{
|
|
yyVAL.node = scalar.NewString(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 356:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2876
|
|
{
|
|
yyVAL.node = scalar.NewMagicConstant(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 357:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2882
|
|
{
|
|
yyVAL.node = scalar.NewMagicConstant(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 358:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2888
|
|
{
|
|
yyVAL.node = scalar.NewMagicConstant(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 359:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2894
|
|
{
|
|
yyVAL.node = scalar.NewMagicConstant(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 360:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2900
|
|
{
|
|
yyVAL.node = scalar.NewMagicConstant(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 361:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2906
|
|
{
|
|
yyVAL.node = scalar.NewMagicConstant(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 362:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2912
|
|
{
|
|
yyVAL.node = scalar.NewMagicConstant(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 363:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2918
|
|
{
|
|
encapsed := scalar.NewEncapsedStringPart(yyDollar[2].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(encapsed, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(encapsed, yyDollar[2].token.Comments())
|
|
|
|
yyVAL.node = scalar.NewHeredoc(yyDollar[1].token.Value, []node.Node{encapsed})
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 364:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2928
|
|
{
|
|
yyVAL.node = scalar.NewHeredoc(yyDollar[1].token.Value, nil)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 365:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2937
|
|
{
|
|
target := node.NewIdentifier(yyDollar[3].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(target, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yyVAL.node = expr.NewClassConstFetch(yyDollar[1].node, target)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[3].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(target, yyDollar[3].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 366:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2950
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 367:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2955
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 368:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2957
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 369:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:2959
|
|
{
|
|
name := name.NewName(yyDollar[1].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[1].list))
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
|
|
yyVAL.node = expr.NewConstFetch(name)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodePosition(name))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[name])
|
|
}
|
|
case 370:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2969
|
|
{
|
|
name := name.NewRelative(yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[3].list))
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.node = expr.NewConstFetch(name)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[3].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[name])
|
|
}
|
|
case 371:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:2979
|
|
{
|
|
name := name.NewFullyQualified(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list))
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.node = expr.NewConstFetch(name)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[name])
|
|
}
|
|
case 372:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:2989
|
|
{
|
|
yyVAL.node = expr.NewArray(yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 373:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:2995
|
|
{
|
|
yyVAL.node = expr.NewShortArray(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 374:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3001
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 375:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3003
|
|
{
|
|
yyVAL.node = scalar.NewMagicConstant(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 376:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3009
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 377:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3014
|
|
{
|
|
yyVAL.node = expr.NewArrayDimFetch(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 378:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3020
|
|
{
|
|
yyVAL.node = binary.NewPlus(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 379:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3026
|
|
{
|
|
yyVAL.node = binary.NewMinus(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 380:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3032
|
|
{
|
|
yyVAL.node = binary.NewMul(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 381:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3038
|
|
{
|
|
yyVAL.node = binary.NewPow(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 382:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3044
|
|
{
|
|
yyVAL.node = binary.NewDiv(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 383:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3050
|
|
{
|
|
yyVAL.node = binary.NewMod(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 384:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3056
|
|
{
|
|
yyVAL.node = expr.NewBooleanNot(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 385:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3062
|
|
{
|
|
yyVAL.node = expr.NewBitwiseNot(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 386:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3068
|
|
{
|
|
yyVAL.node = binary.NewBitwiseOr(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 387:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3074
|
|
{
|
|
yyVAL.node = binary.NewBitwiseAnd(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 388:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3080
|
|
{
|
|
yyVAL.node = binary.NewBitwiseXor(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 389:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3086
|
|
{
|
|
yyVAL.node = binary.NewShiftLeft(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 390:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3092
|
|
{
|
|
yyVAL.node = binary.NewShiftRight(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 391:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3098
|
|
{
|
|
yyVAL.node = binary.NewConcat(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 392:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3104
|
|
{
|
|
yyVAL.node = binary.NewLogicalXor(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 393:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3110
|
|
{
|
|
yyVAL.node = binary.NewLogicalAnd(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 394:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3116
|
|
{
|
|
yyVAL.node = binary.NewLogicalOr(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 395:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3122
|
|
{
|
|
yyVAL.node = binary.NewBooleanAnd(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 396:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3128
|
|
{
|
|
yyVAL.node = binary.NewBooleanOr(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 397:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3134
|
|
{
|
|
yyVAL.node = binary.NewIdentical(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 398:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3140
|
|
{
|
|
yyVAL.node = binary.NewNotIdentical(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 399:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3146
|
|
{
|
|
yyVAL.node = binary.NewEqual(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 400:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3152
|
|
{
|
|
yyVAL.node = binary.NewNotEqual(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 401:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3158
|
|
{
|
|
yyVAL.node = binary.NewSmaller(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 402:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3164
|
|
{
|
|
yyVAL.node = binary.NewGreater(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 403:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3170
|
|
{
|
|
yyVAL.node = binary.NewSmallerOrEqual(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 404:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3176
|
|
{
|
|
yyVAL.node = binary.NewGreaterOrEqual(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 405:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3182
|
|
{
|
|
yyVAL.node = expr.NewTernary(yyDollar[1].node, nil, yyDollar[4].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[4].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 406:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:3188
|
|
{
|
|
yyVAL.node = expr.NewTernary(yyDollar[1].node, yyDollar[3].node, yyDollar[5].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[5].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 407:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3194
|
|
{
|
|
yyVAL.node = expr.NewUnaryPlus(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 408:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3200
|
|
{
|
|
yyVAL.node = expr.NewUnaryMinus(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 409:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3206
|
|
{
|
|
yyVAL.node = yyDollar[2].node
|
|
}
|
|
case 410:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3211
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 411:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3213
|
|
{
|
|
name := name.NewName(yyDollar[1].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewNodeListPosition(yyDollar[1].list))
|
|
yylex.(*Parser).comments.AddComments(name, yylex.(*Parser).listGetFirstNodeComments(yyDollar[1].list))
|
|
|
|
yyVAL.node = expr.NewConstFetch(name)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodePosition(name))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[name])
|
|
}
|
|
case 412:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3223
|
|
{
|
|
name := name.NewRelative(yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[3].list))
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.node = expr.NewConstFetch(name)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodePosition(name))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[name])
|
|
}
|
|
case 413:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3233
|
|
{
|
|
name := name.NewFullyQualified(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list))
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.node = expr.NewConstFetch(name)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodePosition(name))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[name])
|
|
}
|
|
case 414:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3246
|
|
{
|
|
name := node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yyVAL.node = expr.NewVariable(name)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[1].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 415:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3256
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 416:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3258
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 417:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3260
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 418:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3262
|
|
{
|
|
yyVAL.node = scalar.NewEncapsed(yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 419:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3268
|
|
{
|
|
yyVAL.node = scalar.NewHeredoc(yyDollar[1].token.Value, yyDollar[2].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 420:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3274
|
|
{
|
|
yyVAL.node = scalar.NewMagicConstant(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 421:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:3283
|
|
{
|
|
yyVAL.list = nil
|
|
}
|
|
case 422:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3285
|
|
{
|
|
yyVAL.list = yyDollar[1].list
|
|
}
|
|
case 425:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:3295
|
|
{
|
|
arrayItem := expr.NewArrayItem(yyDollar[3].node, yyDollar[5].node)
|
|
yylex.(*Parser).positions.AddPosition(arrayItem, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[3].node, yyDollar[5].node))
|
|
yylex.(*Parser).comments.AddComments(arrayItem, yylex.(*Parser).comments[yyDollar[3].node])
|
|
|
|
yyVAL.list = append(yyDollar[1].list, arrayItem)
|
|
}
|
|
case 426:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3303
|
|
{
|
|
arrayItem := expr.NewArrayItem(nil, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(arrayItem, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(arrayItem, yylex.(*Parser).comments[yyDollar[3].node])
|
|
|
|
yyVAL.list = append(yyDollar[1].list, arrayItem)
|
|
}
|
|
case 427:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3311
|
|
{
|
|
arrayItem := expr.NewArrayItem(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(arrayItem, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(arrayItem, yylex.(*Parser).comments[yyDollar[1].node])
|
|
|
|
yyVAL.list = []node.Node{arrayItem}
|
|
}
|
|
case 428:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3319
|
|
{
|
|
arrayItem := expr.NewArrayItem(nil, yyDollar[1].node)
|
|
yylex.(*Parser).positions.AddPosition(arrayItem, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[1].node))
|
|
yylex.(*Parser).comments.AddComments(arrayItem, yylex.(*Parser).comments[yyDollar[1].node])
|
|
|
|
yyVAL.list = []node.Node{arrayItem}
|
|
}
|
|
case 429:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3330
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 430:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3332
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 431:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3337
|
|
{
|
|
yyVAL.node = yyDollar[2].node
|
|
}
|
|
case 432:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3339
|
|
{
|
|
yyVAL.node = yyDollar[2].node
|
|
}
|
|
case 433:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3345
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 434:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3351
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 435:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3356
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 436:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:3361
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
|
|
if yyDollar[4].list != nil {
|
|
yyDollar[4].list[0].(*expr.MethodCall).Method = yyDollar[3].list[len(yyDollar[3].list)-1].(*expr.PropertyFetch).Property
|
|
yyDollar[3].list = append(yyDollar[3].list[:len(yyDollar[3].list)-1], yyDollar[4].list...)
|
|
}
|
|
|
|
for _, n := range yyDollar[3].list {
|
|
switch nn := n.(type) {
|
|
case *expr.ArrayDimFetch:
|
|
nn.Variable = yyVAL.node
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyVAL.node, nn))
|
|
yylex.(*Parser).comments.AddComments(nn, yylex.(*Parser).comments[yyDollar[1].node])
|
|
yyVAL.node = nn
|
|
|
|
case *expr.PropertyFetch:
|
|
nn.Variable = yyVAL.node
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyVAL.node, nn))
|
|
yylex.(*Parser).comments.AddComments(nn, yylex.(*Parser).comments[yyDollar[1].node])
|
|
yyVAL.node = nn
|
|
|
|
case *expr.MethodCall:
|
|
nn.Variable = yyVAL.node
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyVAL.node, nn))
|
|
yylex.(*Parser).comments.AddComments(nn, yylex.(*Parser).comments[yyDollar[1].node])
|
|
yyVAL.node = nn
|
|
}
|
|
}
|
|
|
|
for _, n := range yyDollar[5].list {
|
|
switch nn := n.(type) {
|
|
case *expr.ArrayDimFetch:
|
|
nn.Variable = yyVAL.node
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyVAL.node, nn))
|
|
yylex.(*Parser).comments.AddComments(nn, yylex.(*Parser).comments[yyDollar[1].node])
|
|
yyVAL.node = nn
|
|
|
|
case *expr.PropertyFetch:
|
|
nn.Variable = yyVAL.node
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyVAL.node, nn))
|
|
yylex.(*Parser).comments.AddComments(nn, yylex.(*Parser).comments[yyDollar[1].node])
|
|
yyVAL.node = nn
|
|
|
|
case *expr.MethodCall:
|
|
nn.Variable = yyVAL.node
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyVAL.node, nn))
|
|
yylex.(*Parser).comments.AddComments(nn, yylex.(*Parser).comments[yyDollar[1].node])
|
|
yyVAL.node = nn
|
|
}
|
|
}
|
|
}
|
|
case 437:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3414
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 438:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3419
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].list...)
|
|
}
|
|
case 439:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:3421
|
|
{
|
|
yyVAL.list = []node.Node{}
|
|
}
|
|
case 440:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3427
|
|
{
|
|
if yyDollar[3].list != nil {
|
|
yyDollar[3].list[0].(*expr.MethodCall).Method = yyDollar[2].list[len(yyDollar[2].list)-1].(*expr.PropertyFetch).Property
|
|
yyDollar[2].list = append(yyDollar[2].list[:len(yyDollar[2].list)-1], yyDollar[3].list...)
|
|
}
|
|
|
|
yyVAL.list = yyDollar[2].list
|
|
}
|
|
case 441:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3439
|
|
{
|
|
fetch := expr.NewArrayDimFetch(nil, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(fetch, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[3].node))
|
|
|
|
yyVAL.list = append(yyDollar[1].list, fetch)
|
|
}
|
|
case 442:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3446
|
|
{
|
|
fetch := expr.NewArrayDimFetch(nil, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(fetch, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[3].node))
|
|
|
|
yyVAL.list = []node.Node{yyDollar[1].node, fetch}
|
|
}
|
|
case 443:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3456
|
|
{
|
|
yyVAL.node = expr.NewMethodCall(nil, nil, yyDollar[1].node.(*node.ArgumentList))
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[1].node))
|
|
}
|
|
case 444:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3464
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 445:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3466
|
|
{
|
|
yyVAL.list = yyDollar[1].list
|
|
}
|
|
case 446:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:3468
|
|
{
|
|
yyVAL.list = nil
|
|
}
|
|
case 447:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3473
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 448:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3475
|
|
{
|
|
yyDollar[1].simpleIndirectReference.last.SetVarName(yyDollar[2].node)
|
|
|
|
for _, n := range yyDollar[1].simpleIndirectReference.all {
|
|
yylex.(*Parser).positions[n] = yylex.(*Parser).positionBuilder.NewNodesPosition(n, yyDollar[2].node)
|
|
}
|
|
|
|
yyVAL.node = yyDollar[1].simpleIndirectReference.all[0]
|
|
}
|
|
case 449:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3488
|
|
{
|
|
yyVAL.node = expr.NewStaticPropertyFetch(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 450:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3494
|
|
{
|
|
yyVAL.node = expr.NewStaticPropertyFetch(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 451:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3504
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 452:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3509
|
|
{
|
|
yyVAL.node = expr.NewArrayDimFetch(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 453:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3515
|
|
{
|
|
yyVAL.node = expr.NewArrayDimFetch(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 454:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3523
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 455:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3524
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 456:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3525
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 457:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3531
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 458:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3533
|
|
{
|
|
yyDollar[1].simpleIndirectReference.last.SetVarName(yyDollar[2].node)
|
|
|
|
for _, n := range yyDollar[1].simpleIndirectReference.all {
|
|
yylex.(*Parser).positions[n] = yylex.(*Parser).positionBuilder.NewNodesPosition(n, yyDollar[2].node)
|
|
}
|
|
|
|
yyVAL.node = yyDollar[1].simpleIndirectReference.all[0]
|
|
}
|
|
case 459:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3543
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 460:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3548
|
|
{
|
|
yyVAL.node = expr.NewArrayDimFetch(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 461:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3554
|
|
{
|
|
yyVAL.node = expr.NewArrayDimFetch(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 462:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3560
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 463:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3566
|
|
{
|
|
name := node.NewIdentifier(strings.TrimLeft(yyDollar[1].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yyVAL.node = expr.NewVariable(name)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[1].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 464:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3576
|
|
{
|
|
yyVAL.node = expr.NewVariable(yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 465:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:3585
|
|
{
|
|
yyVAL.node = nil
|
|
}
|
|
case 466:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3587
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 467:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3593
|
|
{
|
|
yyVAL.list = yyDollar[1].list
|
|
}
|
|
case 468:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3595
|
|
{
|
|
fetch := expr.NewPropertyFetch(nil, yyDollar[1].node)
|
|
yylex.(*Parser).positions.AddPosition(fetch, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[1].node))
|
|
|
|
yyVAL.list = []node.Node{fetch}
|
|
}
|
|
case 469:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3605
|
|
{
|
|
fetch := expr.NewArrayDimFetch(nil, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(fetch, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[3].node))
|
|
|
|
yyVAL.list = append(yyDollar[1].list, fetch)
|
|
}
|
|
case 470:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3612
|
|
{
|
|
fetch := expr.NewArrayDimFetch(nil, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(fetch, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[3].node))
|
|
|
|
yyVAL.list = append(yyDollar[1].list, fetch)
|
|
}
|
|
case 471:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3619
|
|
{
|
|
fetch := expr.NewPropertyFetch(nil, yyDollar[1].node)
|
|
yylex.(*Parser).positions.AddPosition(fetch, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[1].node))
|
|
|
|
yyVAL.list = []node.Node{fetch}
|
|
}
|
|
case 472:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3629
|
|
{
|
|
yyVAL.node = node.NewIdentifier(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 473:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3635
|
|
{
|
|
yyVAL.node = yyDollar[2].node
|
|
}
|
|
case 474:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3640
|
|
{
|
|
n := expr.NewVariable(nil)
|
|
yylex.(*Parser).positions.AddPosition(n, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(n, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.simpleIndirectReference = simpleIndirectReference{[]*expr.Variable{n}, n}
|
|
}
|
|
case 475:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3648
|
|
{
|
|
n := expr.NewVariable(nil)
|
|
yylex.(*Parser).positions.AddPosition(n, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[2].token))
|
|
yylex.(*Parser).comments.AddComments(n, yyDollar[2].token.Comments())
|
|
|
|
yyDollar[1].simpleIndirectReference.last.SetVarName(n)
|
|
|
|
yyDollar[1].simpleIndirectReference.all = append(yyDollar[1].simpleIndirectReference.all, n)
|
|
yyDollar[1].simpleIndirectReference.last = n
|
|
yyVAL.simpleIndirectReference = yyDollar[1].simpleIndirectReference
|
|
}
|
|
case 476:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3663
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
|
}
|
|
case 477:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3665
|
|
{
|
|
if yyDollar[1].node == nil {
|
|
yyVAL.list = []node.Node{}
|
|
} else {
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
}
|
|
case 478:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3677
|
|
{
|
|
yyVAL.node = expr.NewArrayItem(nil, yyDollar[1].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[1].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 479:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3683
|
|
{
|
|
item := expr.NewList(yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(item, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(item, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.node = expr.NewArrayItem(nil, item)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodePosition(item))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[item])
|
|
}
|
|
case 480:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:3693
|
|
{
|
|
yyVAL.node = nil
|
|
}
|
|
case 481:
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
|
//line php5/php5.y:3699
|
|
{
|
|
yyVAL.list = []node.Node{}
|
|
}
|
|
case 482:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3701
|
|
{
|
|
yyVAL.list = yyDollar[1].list
|
|
}
|
|
case 483:
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
|
//line php5/php5.y:3706
|
|
{
|
|
arrayItem := expr.NewArrayItem(yyDollar[3].node, yyDollar[5].node)
|
|
yylex.(*Parser).positions.AddPosition(arrayItem, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[3].node, yyDollar[5].node))
|
|
yylex.(*Parser).comments.AddComments(arrayItem, yylex.(*Parser).comments[yyDollar[3].node])
|
|
|
|
yyVAL.list = append(yyDollar[1].list, arrayItem)
|
|
}
|
|
case 484:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3714
|
|
{
|
|
arrayItem := expr.NewArrayItem(nil, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(arrayItem, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(arrayItem, yylex.(*Parser).comments[yyDollar[3].node])
|
|
|
|
yyVAL.list = append(yyDollar[1].list, arrayItem)
|
|
}
|
|
case 485:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3722
|
|
{
|
|
arrayItem := expr.NewArrayItem(yyDollar[1].node, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(arrayItem, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
|
yylex.(*Parser).comments.AddComments(arrayItem, yylex.(*Parser).comments[yyDollar[1].node])
|
|
|
|
yyVAL.list = []node.Node{arrayItem}
|
|
}
|
|
case 486:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3730
|
|
{
|
|
arrayItem := expr.NewArrayItem(nil, yyDollar[1].node)
|
|
yylex.(*Parser).positions.AddPosition(arrayItem, yylex.(*Parser).positionBuilder.NewNodePosition(yyDollar[1].node))
|
|
yylex.(*Parser).comments.AddComments(arrayItem, yylex.(*Parser).comments[yyDollar[1].node])
|
|
|
|
yyVAL.list = []node.Node{arrayItem}
|
|
}
|
|
case 487:
|
|
yyDollar = yyS[yypt-6 : yypt+1]
|
|
//line php5/php5.y:3738
|
|
{
|
|
reference := expr.NewReference(yyDollar[6].node)
|
|
arrayItem := expr.NewArrayItem(yyDollar[3].node, reference)
|
|
yylex.(*Parser).positions.AddPosition(arrayItem, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[3].node, yyDollar[6].node))
|
|
yylex.(*Parser).comments.AddComments(arrayItem, yylex.(*Parser).comments[yyDollar[3].node])
|
|
|
|
yyVAL.list = append(yyDollar[1].list, arrayItem)
|
|
}
|
|
case 488:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3747
|
|
{
|
|
reference := expr.NewReference(yyDollar[4].node)
|
|
arrayItem := expr.NewArrayItem(nil, reference)
|
|
yylex.(*Parser).positions.AddPosition(arrayItem, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[3].token, yyDollar[4].node))
|
|
yylex.(*Parser).comments.AddComments(arrayItem, yyDollar[3].token.Comments())
|
|
|
|
yyVAL.list = append(yyDollar[1].list, arrayItem)
|
|
}
|
|
case 489:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3756
|
|
{
|
|
reference := expr.NewReference(yyDollar[4].node)
|
|
arrayItem := expr.NewArrayItem(yyDollar[1].node, reference)
|
|
yylex.(*Parser).positions.AddPosition(arrayItem, yylex.(*Parser).positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[4].node))
|
|
yylex.(*Parser).comments.AddComments(arrayItem, yylex.(*Parser).comments[yyDollar[1].node])
|
|
|
|
yyVAL.list = []node.Node{arrayItem}
|
|
}
|
|
case 490:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3765
|
|
{
|
|
reference := expr.NewReference(yyDollar[2].node)
|
|
arrayItem := expr.NewArrayItem(nil, reference)
|
|
yylex.(*Parser).positions.AddPosition(arrayItem, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(arrayItem, yyDollar[1].token.Comments())
|
|
|
|
yyVAL.list = []node.Node{arrayItem}
|
|
}
|
|
case 491:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3777
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].node)
|
|
}
|
|
case 492:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3779
|
|
{
|
|
encapsed := scalar.NewEncapsedStringPart(yyDollar[2].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(encapsed, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[2].token))
|
|
yyVAL.list = append(yyDollar[1].list, encapsed)
|
|
yylex.(*Parser).comments.AddComments(encapsed, yyDollar[2].token.Comments())
|
|
}
|
|
case 493:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3786
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 494:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3788
|
|
{
|
|
encapsed := scalar.NewEncapsedStringPart(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(encapsed, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yyVAL.list = []node.Node{encapsed, yyDollar[2].node}
|
|
yylex.(*Parser).comments.AddComments(encapsed, yyDollar[1].token.Comments())
|
|
}
|
|
case 495:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3798
|
|
{
|
|
name := node.NewIdentifier(strings.TrimLeft(yyDollar[1].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yyVAL.node = expr.NewVariable(name)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(name, yyDollar[1].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 496:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3808
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[1].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yyVAL.node = expr.NewArrayDimFetch(variable, yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[1].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[1].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 497:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3821
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[1].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
fetch := node.NewIdentifier(yyDollar[3].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(fetch, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yyVAL.node = expr.NewPropertyFetch(variable, fetch)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[1].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[1].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(fetch, yyDollar[3].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 498:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3837
|
|
{
|
|
yyVAL.node = yyDollar[2].node
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 499:
|
|
yyDollar = yyS[yypt-6 : yypt+1]
|
|
//line php5/php5.y:3843
|
|
{
|
|
identifier := node.NewIdentifier(yyDollar[2].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[2].token))
|
|
variable := expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(variable, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[2].token))
|
|
yyVAL.node = expr.NewArrayDimFetch(variable, yyDollar[4].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[6].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[2].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(variable, yyDollar[1].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 500:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3857
|
|
{
|
|
yyVAL.node = yyDollar[2].node
|
|
}
|
|
case 501:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3862
|
|
{
|
|
yyVAL.node = scalar.NewString(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 502:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3868
|
|
{
|
|
// TODO: add option to handle 64 bit integer
|
|
if _, err := strconv.Atoi(yyDollar[1].token.Value); err == nil {
|
|
yyVAL.node = scalar.NewLnumber(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
} else {
|
|
yyVAL.node = scalar.NewString(yyDollar[1].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
}
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 503:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3880
|
|
{
|
|
identifier := node.NewIdentifier(strings.TrimLeft(yyDollar[1].token.Value, "$"))
|
|
yylex.(*Parser).positions.AddPosition(identifier, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
yyVAL.node = expr.NewVariable(identifier)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[1].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(identifier, yyDollar[1].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 504:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3893
|
|
{
|
|
yyVAL.node = expr.NewIsset(yyDollar[3].list)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 505:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3899
|
|
{
|
|
yyVAL.node = expr.NewEmpty(yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 506:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3905
|
|
{
|
|
yyVAL.node = expr.NewEmpty(yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 507:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3911
|
|
{
|
|
yyVAL.node = expr.NewInclude(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 508:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3917
|
|
{
|
|
yyVAL.node = expr.NewIncludeOnce(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 509:
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
|
//line php5/php5.y:3923
|
|
{
|
|
yyVAL.node = expr.NewEval(yyDollar[3].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 510:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3929
|
|
{
|
|
yyVAL.node = expr.NewRequire(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 511:
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
|
//line php5/php5.y:3935
|
|
{
|
|
yyVAL.node = expr.NewRequireOnce(yyDollar[2].node)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node))
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yyDollar[1].token.Comments())
|
|
}
|
|
case 512:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3944
|
|
{
|
|
yyVAL.list = []node.Node{yyDollar[1].node}
|
|
}
|
|
case 513:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3946
|
|
{
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
|
}
|
|
case 514:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3951
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 515:
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
|
//line php5/php5.y:3953
|
|
{
|
|
yyVAL.node = yyDollar[1].node
|
|
}
|
|
case 516:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3958
|
|
{
|
|
target := node.NewIdentifier(yyDollar[3].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(target, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yyVAL.node = expr.NewClassConstFetch(yyDollar[1].node, target)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[3].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(target, yyDollar[3].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 517:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3968
|
|
{
|
|
target := node.NewIdentifier(yyDollar[3].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(target, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yyVAL.node = expr.NewClassConstFetch(yyDollar[1].node, target)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[3].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(target, yyDollar[3].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 518:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3981
|
|
{
|
|
target := node.NewIdentifier(yyDollar[3].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(target, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yyVAL.node = expr.NewClassConstFetch(yyDollar[1].node, target)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[3].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(target, yyDollar[3].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
case 519:
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
|
//line php5/php5.y:3994
|
|
{
|
|
target := node.NewIdentifier(yyDollar[3].token.Value)
|
|
yylex.(*Parser).positions.AddPosition(target, yylex.(*Parser).positionBuilder.NewTokenPosition(yyDollar[3].token))
|
|
yyVAL.node = expr.NewClassConstFetch(yyDollar[1].node, target)
|
|
yylex.(*Parser).positions.AddPosition(yyVAL.node, yylex.(*Parser).positionBuilder.NewNodeTokenPosition(yyDollar[1].node, yyDollar[3].token))
|
|
|
|
yylex.(*Parser).comments.AddComments(target, yyDollar[3].token.Comments())
|
|
yylex.(*Parser).comments.AddComments(yyVAL.node, yylex.(*Parser).comments[yyDollar[1].node])
|
|
}
|
|
}
|
|
goto yystack /* stack new state and value */
|
|
}
|