2020-05-13 17:18:53 +00:00
|
|
|
// Code generated by goyacc -o internal/php5/php5.go internal/php5/php5.y. DO NOT EDIT.
|
|
|
|
|
|
|
|
// line internal/php5/php5.y:2
|
2018-01-26 13:24:56 +00:00
|
|
|
package php5
|
2017-11-23 15:33:47 +00:00
|
|
|
|
|
|
|
import __yyfmt__ "fmt"
|
|
|
|
|
2020-05-13 17:18:53 +00:00
|
|
|
// line internal/php5/php5.y:2
|
|
|
|
|
2017-11-23 15:33:47 +00:00
|
|
|
import (
|
2020-05-13 17:18:53 +00:00
|
|
|
"bytes"
|
2018-01-31 10:55:50 +00:00
|
|
|
"strconv"
|
2020-05-13 17:18:53 +00:00
|
|
|
|
2020-06-29 11:38:10 +00:00
|
|
|
"github.com/z7zmey/php-parser/internal/position"
|
2020-05-13 17:18:53 +00:00
|
|
|
"github.com/z7zmey/php-parser/pkg/ast"
|
|
|
|
"github.com/z7zmey/php-parser/pkg/token"
|
2017-11-23 15:33:47 +00:00
|
|
|
)
|
|
|
|
|
2020-08-17 17:31:04 +00:00
|
|
|
// line internal/php5/php5.y:15
|
2017-11-23 15:33:47 +00:00
|
|
|
type yySymType struct {
|
2018-02-03 17:33:22 +00:00
|
|
|
yys int
|
2020-05-13 17:18:53 +00:00
|
|
|
node ast.Vertex
|
2020-08-17 17:31:04 +00:00
|
|
|
token *token.Token
|
2020-05-13 17:18:53 +00:00
|
|
|
list []ast.Vertex
|
2018-01-29 19:12:12 +00:00
|
|
|
simpleIndirectReference simpleIndirectReference
|
2018-05-12 20:10:01 +00:00
|
|
|
|
2020-05-13 17:18:53 +00:00
|
|
|
ClassExtends *ast.StmtClassExtends
|
|
|
|
ClassImplements *ast.StmtClassImplements
|
|
|
|
InterfaceExtends *ast.StmtInterfaceExtends
|
|
|
|
ClosureUse *ast.ExprClosureUse
|
2017-11-23 15:33:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const T_INCLUDE = 57346
|
|
|
|
const T_INCLUDE_ONCE = 57347
|
2018-01-29 14:11:45 +00:00
|
|
|
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
|
2019-12-24 14:16:35 +00:00
|
|
|
const T_FN = 57380
|
|
|
|
const T_CONST = 57381
|
|
|
|
const T_RETURN = 57382
|
|
|
|
const T_TRY = 57383
|
|
|
|
const T_CATCH = 57384
|
|
|
|
const T_FINALLY = 57385
|
|
|
|
const T_THROW = 57386
|
|
|
|
const T_USE = 57387
|
|
|
|
const T_INSTEADOF = 57388
|
|
|
|
const T_GLOBAL = 57389
|
|
|
|
const T_VAR = 57390
|
|
|
|
const T_UNSET = 57391
|
|
|
|
const T_ISSET = 57392
|
|
|
|
const T_EMPTY = 57393
|
|
|
|
const T_HALT_COMPILER = 57394
|
|
|
|
const T_CLASS = 57395
|
|
|
|
const T_TRAIT = 57396
|
|
|
|
const T_INTERFACE = 57397
|
|
|
|
const T_EXTENDS = 57398
|
|
|
|
const T_IMPLEMENTS = 57399
|
|
|
|
const T_OBJECT_OPERATOR = 57400
|
|
|
|
const T_DOUBLE_ARROW = 57401
|
|
|
|
const T_LIST = 57402
|
|
|
|
const T_ARRAY = 57403
|
|
|
|
const T_CALLABLE = 57404
|
|
|
|
const T_CLASS_C = 57405
|
|
|
|
const T_TRAIT_C = 57406
|
|
|
|
const T_METHOD_C = 57407
|
|
|
|
const T_FUNC_C = 57408
|
|
|
|
const T_LINE = 57409
|
|
|
|
const T_FILE = 57410
|
|
|
|
const T_COMMENT = 57411
|
|
|
|
const T_DOC_COMMENT = 57412
|
|
|
|
const T_OPEN_TAG = 57413
|
|
|
|
const T_OPEN_TAG_WITH_ECHO = 57414
|
|
|
|
const T_CLOSE_TAG = 57415
|
|
|
|
const T_WHITESPACE = 57416
|
|
|
|
const T_START_HEREDOC = 57417
|
|
|
|
const T_END_HEREDOC = 57418
|
|
|
|
const T_DOLLAR_OPEN_CURLY_BRACES = 57419
|
|
|
|
const T_CURLY_OPEN = 57420
|
|
|
|
const T_PAAMAYIM_NEKUDOTAYIM = 57421
|
|
|
|
const T_NAMESPACE = 57422
|
|
|
|
const T_NS_C = 57423
|
|
|
|
const T_DIR = 57424
|
|
|
|
const T_NS_SEPARATOR = 57425
|
|
|
|
const T_ELLIPSIS = 57426
|
|
|
|
const T_EVAL = 57427
|
|
|
|
const T_REQUIRE = 57428
|
|
|
|
const T_REQUIRE_ONCE = 57429
|
|
|
|
const T_LOGICAL_OR = 57430
|
|
|
|
const T_LOGICAL_XOR = 57431
|
|
|
|
const T_LOGICAL_AND = 57432
|
|
|
|
const T_INSTANCEOF = 57433
|
|
|
|
const T_NEW = 57434
|
|
|
|
const T_CLONE = 57435
|
|
|
|
const T_ELSEIF = 57436
|
|
|
|
const T_ELSE = 57437
|
|
|
|
const T_ENDIF = 57438
|
|
|
|
const T_PRINT = 57439
|
|
|
|
const T_YIELD = 57440
|
|
|
|
const T_STATIC = 57441
|
|
|
|
const T_ABSTRACT = 57442
|
|
|
|
const T_FINAL = 57443
|
|
|
|
const T_PRIVATE = 57444
|
|
|
|
const T_PROTECTED = 57445
|
|
|
|
const T_PUBLIC = 57446
|
|
|
|
const T_INC = 57447
|
|
|
|
const T_DEC = 57448
|
|
|
|
const T_YIELD_FROM = 57449
|
|
|
|
const T_INT_CAST = 57450
|
|
|
|
const T_DOUBLE_CAST = 57451
|
|
|
|
const T_STRING_CAST = 57452
|
|
|
|
const T_ARRAY_CAST = 57453
|
|
|
|
const T_OBJECT_CAST = 57454
|
|
|
|
const T_BOOL_CAST = 57455
|
|
|
|
const T_UNSET_CAST = 57456
|
|
|
|
const T_COALESCE = 57457
|
|
|
|
const T_SPACESHIP = 57458
|
|
|
|
const T_NOELSE = 57459
|
|
|
|
const T_PLUS_EQUAL = 57460
|
|
|
|
const T_MINUS_EQUAL = 57461
|
|
|
|
const T_MUL_EQUAL = 57462
|
|
|
|
const T_POW_EQUAL = 57463
|
|
|
|
const T_DIV_EQUAL = 57464
|
|
|
|
const T_CONCAT_EQUAL = 57465
|
|
|
|
const T_MOD_EQUAL = 57466
|
|
|
|
const T_AND_EQUAL = 57467
|
|
|
|
const T_OR_EQUAL = 57468
|
|
|
|
const T_XOR_EQUAL = 57469
|
|
|
|
const T_SL_EQUAL = 57470
|
|
|
|
const T_SR_EQUAL = 57471
|
|
|
|
const T_COALESCE_EQUAL = 57472
|
|
|
|
const T_BOOLEAN_OR = 57473
|
|
|
|
const T_BOOLEAN_AND = 57474
|
|
|
|
const T_POW = 57475
|
|
|
|
const T_SL = 57476
|
|
|
|
const T_SR = 57477
|
|
|
|
const T_IS_IDENTICAL = 57478
|
|
|
|
const T_IS_NOT_IDENTICAL = 57479
|
|
|
|
const T_IS_EQUAL = 57480
|
|
|
|
const T_IS_NOT_EQUAL = 57481
|
|
|
|
const T_IS_SMALLER_OR_EQUAL = 57482
|
|
|
|
const T_IS_GREATER_OR_EQUAL = 57483
|
2017-11-23 15:33:47 +00:00
|
|
|
|
|
|
|
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",
|
2019-12-24 14:16:35 +00:00
|
|
|
"T_FN",
|
2017-11-23 15:33:47 +00:00
|
|
|
"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",
|
2018-01-27 10:33:13 +00:00
|
|
|
"T_DOUBLE_ARROW",
|
2017-11-23 15:33:47 +00:00
|
|
|
"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",
|
2018-01-29 14:11:45 +00:00
|
|
|
"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",
|
2018-01-27 10:33:13 +00:00
|
|
|
"T_YIELD_FROM",
|
2018-01-29 14:11:45 +00:00
|
|
|
"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",
|
2018-05-27 15:02:58 +00:00
|
|
|
"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",
|
2019-12-24 14:16:35 +00:00
|
|
|
"T_COALESCE_EQUAL",
|
2018-05-27 15:02:58 +00:00
|
|
|
"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",
|
2017-12-03 21:29:17 +00:00
|
|
|
"'\"'",
|
|
|
|
"'`'",
|
2017-12-07 09:46:25 +00:00
|
|
|
"'{'",
|
|
|
|
"'}'",
|
2017-12-08 14:54:44 +00:00
|
|
|
"';'",
|
2018-01-29 14:11:45 +00:00
|
|
|
"':'",
|
2017-11-30 16:25:41 +00:00
|
|
|
"'('",
|
|
|
|
"')'",
|
2018-01-29 14:11:45 +00:00
|
|
|
"'['",
|
2017-11-29 10:24:08 +00:00
|
|
|
"']'",
|
2018-01-29 14:11:45 +00:00
|
|
|
"'?'",
|
|
|
|
"'&'",
|
|
|
|
"'-'",
|
|
|
|
"'+'",
|
|
|
|
"'!'",
|
|
|
|
"'~'",
|
|
|
|
"'@'",
|
2017-11-28 16:00:27 +00:00
|
|
|
"'$'",
|
2018-01-29 14:11:45 +00:00
|
|
|
"','",
|
|
|
|
"'|'",
|
2018-05-27 15:02:58 +00:00
|
|
|
"'='",
|
2018-01-29 14:11:45 +00:00
|
|
|
"'^'",
|
|
|
|
"'*'",
|
|
|
|
"'/'",
|
|
|
|
"'%'",
|
2018-05-27 15:02:58 +00:00
|
|
|
"'<'",
|
|
|
|
"'>'",
|
|
|
|
"'.'",
|
2017-11-23 15:33:47 +00:00
|
|
|
}
|
|
|
|
var yyStatenames = [...]string{}
|
|
|
|
|
|
|
|
const yyEofCode = 1
|
|
|
|
const yyErrCode = 2
|
|
|
|
const yyInitialStackSize = 16
|
|
|
|
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:6201
|
2018-12-26 10:09:54 +00:00
|
|
|
|
2018-04-09 21:52:38 +00:00
|
|
|
type simpleIndirectReference struct {
|
2020-05-13 17:18:53 +00:00
|
|
|
all []*ast.ExprVariable
|
|
|
|
last *ast.ExprVariable
|
2018-04-09 21:52:38 +00:00
|
|
|
}
|
|
|
|
|
2020-01-08 07:47:23 +00:00
|
|
|
// line yacctab:1
|
2017-11-23 15:33:47 +00:00
|
|
|
var yyExca = [...]int{
|
|
|
|
-1, 1,
|
|
|
|
1, -1,
|
|
|
|
-2, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
-1, 2,
|
|
|
|
1, 1,
|
|
|
|
-2, 0,
|
|
|
|
-1, 51,
|
|
|
|
105, 435,
|
2019-12-24 14:16:35 +00:00
|
|
|
106, 435,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 433,
|
|
|
|
-1, 102,
|
2019-12-24 14:16:35 +00:00
|
|
|
79, 332,
|
2018-02-04 17:37:27 +00:00
|
|
|
-2, 411,
|
2018-04-09 20:08:29 +00:00
|
|
|
-1, 114,
|
2019-12-24 14:16:35 +00:00
|
|
|
79, 451,
|
|
|
|
148, 447,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 457,
|
|
|
|
-1, 154,
|
|
|
|
105, 435,
|
2019-12-24 14:16:35 +00:00
|
|
|
106, 435,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 433,
|
|
|
|
-1, 204,
|
2019-12-24 14:16:35 +00:00
|
|
|
146, 306,
|
|
|
|
149, 306,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 430,
|
|
|
|
-1, 205,
|
|
|
|
105, 435,
|
2019-12-24 14:16:35 +00:00
|
|
|
106, 435,
|
|
|
|
146, 307,
|
|
|
|
149, 307,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 433,
|
|
|
|
-1, 271,
|
2019-12-24 14:16:35 +00:00
|
|
|
79, 451,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 457,
|
|
|
|
-1, 298,
|
2019-12-24 14:16:35 +00:00
|
|
|
79, 334,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 413,
|
|
|
|
-1, 302,
|
2019-12-24 14:16:35 +00:00
|
|
|
148, 448,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 458,
|
|
|
|
-1, 311,
|
2019-12-24 14:16:35 +00:00
|
|
|
79, 333,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 412,
|
|
|
|
-1, 378,
|
2018-05-27 15:02:58 +00:00
|
|
|
136, 0,
|
|
|
|
137, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
138, 0,
|
|
|
|
139, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 274,
|
|
|
|
-1, 379,
|
2018-05-27 15:02:58 +00:00
|
|
|
136, 0,
|
|
|
|
137, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
138, 0,
|
|
|
|
139, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 275,
|
|
|
|
-1, 380,
|
2018-05-27 15:02:58 +00:00
|
|
|
136, 0,
|
|
|
|
137, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
138, 0,
|
|
|
|
139, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 276,
|
|
|
|
-1, 381,
|
2018-05-27 15:02:58 +00:00
|
|
|
136, 0,
|
|
|
|
137, 0,
|
|
|
|
138, 0,
|
|
|
|
139, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
-2, 277,
|
|
|
|
-1, 382,
|
|
|
|
140, 0,
|
|
|
|
141, 0,
|
|
|
|
167, 0,
|
|
|
|
168, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 278,
|
|
|
|
-1, 383,
|
2019-12-24 14:16:35 +00:00
|
|
|
140, 0,
|
|
|
|
141, 0,
|
|
|
|
167, 0,
|
|
|
|
168, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 279,
|
|
|
|
-1, 384,
|
2019-12-24 14:16:35 +00:00
|
|
|
140, 0,
|
|
|
|
141, 0,
|
|
|
|
167, 0,
|
|
|
|
168, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 280,
|
|
|
|
-1, 385,
|
2019-12-24 14:16:35 +00:00
|
|
|
140, 0,
|
|
|
|
141, 0,
|
|
|
|
167, 0,
|
|
|
|
168, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 281,
|
|
|
|
-1, 392,
|
|
|
|
105, 435,
|
2019-12-24 14:16:35 +00:00
|
|
|
106, 435,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 433,
|
|
|
|
-1, 400,
|
2019-12-24 14:16:35 +00:00
|
|
|
149, 142,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 147,
|
2018-02-04 16:51:44 +00:00
|
|
|
-1, 462,
|
2018-04-09 20:08:29 +00:00
|
|
|
105, 435,
|
2019-12-24 14:16:35 +00:00
|
|
|
106, 435,
|
|
|
|
149, 515,
|
|
|
|
160, 515,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 433,
|
|
|
|
-1, 463,
|
2019-12-24 14:16:35 +00:00
|
|
|
149, 516,
|
|
|
|
160, 516,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 430,
|
|
|
|
-1, 464,
|
|
|
|
105, 435,
|
2019-12-24 14:16:35 +00:00
|
|
|
106, 435,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 433,
|
|
|
|
-1, 486,
|
2019-12-24 14:16:35 +00:00
|
|
|
149, 156,
|
|
|
|
160, 156,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 430,
|
|
|
|
-1, 487,
|
|
|
|
105, 435,
|
2019-12-24 14:16:35 +00:00
|
|
|
106, 435,
|
|
|
|
149, 157,
|
|
|
|
160, 157,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 433,
|
|
|
|
-1, 493,
|
2019-12-24 14:16:35 +00:00
|
|
|
148, 472,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 517,
|
|
|
|
-1, 499,
|
2019-12-24 14:16:35 +00:00
|
|
|
148, 472,
|
2018-06-06 23:25:27 +00:00
|
|
|
-2, 518,
|
2018-04-09 20:08:29 +00:00
|
|
|
-1, 521,
|
2019-12-24 14:16:35 +00:00
|
|
|
79, 332,
|
2018-02-04 17:37:27 +00:00
|
|
|
-2, 369,
|
2018-04-09 20:08:29 +00:00
|
|
|
-1, 539,
|
|
|
|
94, 135,
|
|
|
|
95, 135,
|
2019-12-24 14:16:35 +00:00
|
|
|
96, 135,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 0,
|
|
|
|
-1, 551,
|
2019-12-24 14:16:35 +00:00
|
|
|
149, 142,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 147,
|
|
|
|
-1, 564,
|
2019-12-24 14:16:35 +00:00
|
|
|
149, 142,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 147,
|
|
|
|
-1, 581,
|
2019-12-24 14:16:35 +00:00
|
|
|
146, 308,
|
|
|
|
149, 308,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 430,
|
|
|
|
-1, 582,
|
|
|
|
105, 435,
|
2019-12-24 14:16:35 +00:00
|
|
|
106, 435,
|
|
|
|
146, 309,
|
|
|
|
149, 309,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 433,
|
2018-06-06 23:25:27 +00:00
|
|
|
-1, 682,
|
2019-12-24 14:16:35 +00:00
|
|
|
79, 334,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 371,
|
|
|
|
-1, 780,
|
2018-05-27 15:02:58 +00:00
|
|
|
136, 0,
|
|
|
|
137, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
138, 0,
|
|
|
|
139, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 397,
|
|
|
|
-1, 781,
|
2018-05-27 15:02:58 +00:00
|
|
|
136, 0,
|
|
|
|
137, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
138, 0,
|
|
|
|
139, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 398,
|
|
|
|
-1, 782,
|
2018-05-27 15:02:58 +00:00
|
|
|
136, 0,
|
|
|
|
137, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
138, 0,
|
|
|
|
139, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 399,
|
|
|
|
-1, 783,
|
2018-05-27 15:02:58 +00:00
|
|
|
136, 0,
|
|
|
|
137, 0,
|
|
|
|
138, 0,
|
|
|
|
139, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
-2, 400,
|
|
|
|
-1, 784,
|
|
|
|
140, 0,
|
|
|
|
141, 0,
|
|
|
|
167, 0,
|
|
|
|
168, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 401,
|
|
|
|
-1, 785,
|
2019-12-24 14:16:35 +00:00
|
|
|
140, 0,
|
|
|
|
141, 0,
|
|
|
|
167, 0,
|
|
|
|
168, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 402,
|
|
|
|
-1, 786,
|
2019-12-24 14:16:35 +00:00
|
|
|
140, 0,
|
|
|
|
141, 0,
|
|
|
|
167, 0,
|
|
|
|
168, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 403,
|
2018-06-06 23:25:27 +00:00
|
|
|
-1, 787,
|
2019-12-24 14:16:35 +00:00
|
|
|
140, 0,
|
|
|
|
141, 0,
|
|
|
|
167, 0,
|
|
|
|
168, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 404,
|
2018-06-06 23:25:27 +00:00
|
|
|
-1, 790,
|
2019-12-24 14:16:35 +00:00
|
|
|
79, 333,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 370,
|
2018-06-06 23:25:27 +00:00
|
|
|
-1, 840,
|
2018-04-09 20:08:29 +00:00
|
|
|
37, 201,
|
|
|
|
-2, 198,
|
2018-06-06 23:25:27 +00:00
|
|
|
-1, 880,
|
2018-04-09 20:08:29 +00:00
|
|
|
31, 128,
|
|
|
|
32, 128,
|
|
|
|
33, 128,
|
2019-12-24 14:16:35 +00:00
|
|
|
145, 128,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
-1, 915,
|
2019-12-24 14:16:35 +00:00
|
|
|
96, 140,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
-1, 917,
|
2018-04-09 20:08:29 +00:00
|
|
|
31, 127,
|
|
|
|
32, 127,
|
|
|
|
33, 127,
|
2019-12-24 14:16:35 +00:00
|
|
|
145, 127,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
-1, 944,
|
2018-04-09 20:08:29 +00:00
|
|
|
94, 136,
|
|
|
|
95, 136,
|
2019-12-24 14:16:35 +00:00
|
|
|
96, 136,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
-1, 972,
|
2018-04-09 20:08:29 +00:00
|
|
|
29, 189,
|
2018-01-29 14:11:45 +00:00
|
|
|
-2, 4,
|
2018-06-06 23:25:27 +00:00
|
|
|
-1, 981,
|
2019-12-24 14:16:35 +00:00
|
|
|
149, 142,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 147,
|
2018-06-06 23:25:27 +00:00
|
|
|
-1, 998,
|
2019-12-24 14:16:35 +00:00
|
|
|
146, 193,
|
2018-04-09 20:08:29 +00:00
|
|
|
-2, 195,
|
2017-11-23 15:33:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const yyPrivate = 57344
|
|
|
|
|
2019-12-24 14:16:35 +00:00
|
|
|
const yyLast = 8877
|
2017-11-23 15:33:47 +00:00
|
|
|
|
|
|
|
var yyAct = [...]int{
|
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
102, 571, 844, 565, 1007, 966, 715, 61, 420, 827,
|
|
|
|
123, 131, 919, 200, 340, 594, 567, 607, 452, 816,
|
|
|
|
461, 808, 474, 735, 592, 684, 138, 140, 421, 142,
|
|
|
|
145, 390, 39, 98, 444, 579, 264, 517, 118, 319,
|
|
|
|
158, 315, 331, 330, 447, 7, 6, 544, 485, 130,
|
2019-12-24 14:16:35 +00:00
|
|
|
2, 979, 26, 960, 938, 935, 228, 228, 162, 477,
|
|
|
|
932, 942, 289, 941, 44, 670, 658, 664, 665, 672,
|
|
|
|
673, 674, 675, 678, 679, 822, 738, 940, 658, 1003,
|
|
|
|
251, 267, 710, 654, 258, 562, 662, 656, 655, 516,
|
2018-06-06 23:25:27 +00:00
|
|
|
153, 658, 664, 665, 661, 654, 663, 657, 659, 660,
|
2019-12-24 14:16:35 +00:00
|
|
|
676, 677, 666, 358, 298, 325, 736, 204, 654, 657,
|
|
|
|
659, 660, 656, 655, 270, 794, 241, 137, 977, 729,
|
|
|
|
954, 933, 657, 659, 660, 543, 311, 666, 475, 316,
|
|
|
|
320, 955, 192, 323, 43, 934, 329, 922, 854, 5,
|
|
|
|
898, 126, 450, 121, 121, 499, 192, 121, 586, 586,
|
|
|
|
121, 658, 664, 665, 899, 633, 339, 141, 678, 679,
|
|
|
|
619, 228, 201, 930, 114, 121, 634, 39, 654, 750,
|
|
|
|
585, 620, 656, 655, 179, 310, 357, 115, 159, 162,
|
|
|
|
432, 586, 657, 659, 660, 676, 677, 666, 179, 182,
|
|
|
|
183, 192, 241, 267, 908, 228, 907, 905, 510, 493,
|
|
|
|
862, 121, 296, 749, 506, 178, 180, 181, 192, 177,
|
|
|
|
176, 229, 511, 856, 230, 792, 560, 104, 507, 178,
|
|
|
|
180, 181, 746, 228, 175, 640, 270, 561, 117, 386,
|
|
|
|
233, 425, 168, 179, 182, 183, 184, 185, 186, 187,
|
|
|
|
189, 191, 494, 359, 595, 271, 126, 632, 121, 631,
|
|
|
|
179, 1019, 625, 173, 177, 176, 624, 360, 272, 978,
|
|
|
|
393, 172, 228, 174, 178, 180, 181, 188, 190, 175,
|
|
|
|
456, 177, 176, 231, 231, 333, 451, 336, 556, 451,
|
|
|
|
302, 178, 180, 181, 232, 232, 175, 355, 658, 557,
|
|
|
|
120, 120, 350, 228, 120, 352, 423, 120, 265, 597,
|
|
|
|
596, 356, 446, 241, 931, 654, 351, 473, 294, 273,
|
|
|
|
312, 126, 303, 121, 131, 396, 229, 301, 509, 230,
|
|
|
|
133, 305, 513, 300, 313, 160, 521, 604, 595, 126,
|
|
|
|
440, 121, 605, 451, 134, 233, 741, 293, 492, 463,
|
|
|
|
39, 436, 437, 498, 491, 287, 541, 281, 120, 497,
|
|
|
|
484, 472, 612, 7, 6, 658, 254, 271, 611, 521,
|
|
|
|
502, 718, 486, 505, 253, 1002, 951, 437, 436, 436,
|
|
|
|
272, 437, 654, 916, 886, 883, 656, 655, 231, 871,
|
|
|
|
826, 229, 815, 295, 230, 399, 657, 659, 660, 232,
|
|
|
|
728, 666, 548, 546, 694, 120, 552, 635, 626, 229,
|
|
|
|
233, 572, 230, 572, 577, 572, 580, 430, 228, 428,
|
|
|
|
265, 584, 231, 126, 307, 121, 1014, 981, 233, 893,
|
|
|
|
593, 273, 439, 232, 139, 588, 39, 297, 448, 825,
|
|
|
|
126, 819, 121, 810, 809, 434, 683, 458, 587, 564,
|
|
|
|
231, 449, 551, 400, 537, 288, 344, 5, 297, 345,
|
|
|
|
295, 232, 539, 278, 717, 540, 616, 275, 274, 250,
|
|
|
|
120, 222, 467, 196, 448, 492, 498, 453, 471, 448,
|
|
|
|
581, 491, 497, 195, 479, 480, 194, 449, 120, 231,
|
|
|
|
144, 495, 449, 229, 122, 1011, 230, 1010, 1000, 228,
|
|
|
|
232, 914, 617, 615, 877, 135, 446, 990, 618, 985,
|
|
|
|
268, 490, 233, 269, 704, 705, 984, 924, 316, 913,
|
|
|
|
231, 309, 320, 308, 504, 881, 812, 521, 806, 233,
|
|
|
|
805, 232, 799, 400, 682, 713, 521, 704, 705, 700,
|
|
|
|
547, 545, 39, 521, 521, 521, 521, 521, 542, 501,
|
|
|
|
398, 348, 156, 531, 91, 7, 6, 353, 636, 646,
|
|
|
|
982, 649, 572, 126, 653, 711, 906, 701, 228, 228,
|
|
|
|
228, 606, 120, 521, 435, 572, 719, 1020, 727, 39,
|
|
|
|
39, 976, 918, 892, 891, 732, 531, 572, 580, 120,
|
|
|
|
889, 733, 730, 578, 306, 267, 197, 228, 228, 714,
|
|
|
|
179, 448, 448, 706, 875, 708, 740, 224, 225, 257,
|
|
|
|
724, 192, 803, 804, 449, 449, 831, 518, 743, 696,
|
|
|
|
697, 295, 734, 126, 613, 739, 742, 811, 270, 448,
|
|
|
|
731, 737, 448, 126, 448, 231, 125, 681, 490, 228,
|
|
|
|
745, 228, 449, 455, 446, 449, 232, 449, 424, 5,
|
|
|
|
703, 755, 126, 179, 125, 988, 688, 610, 259, 459,
|
|
|
|
128, 651, 129, 438, 126, 521, 521, 521, 521, 521,
|
2018-04-09 20:08:29 +00:00
|
|
|
521, 521, 521, 521, 521, 521, 521, 521, 521, 521,
|
|
|
|
521, 521, 521, 521, 521, 521, 521, 521, 521, 521,
|
2019-12-24 14:16:35 +00:00
|
|
|
521, 521, 790, 759, 521, 463, 321, 124, 757, 454,
|
|
|
|
758, 648, 282, 286, 638, 639, 132, 721, 972, 486,
|
|
|
|
642, 643, 427, 426, 800, 295, 231, 515, 793, 791,
|
|
|
|
126, 521, 573, 260, 261, 574, 512, 232, 228, 848,
|
|
|
|
849, 850, 847, 846, 845, 508, 304, 317, 322, 299,
|
|
|
|
572, 469, 832, 126, 531, 687, 62, 572, 851, 820,
|
|
|
|
817, 865, 595, 531, 457, 295, 829, 263, 814, 271,
|
|
|
|
531, 531, 531, 531, 531, 576, 852, 833, 743, 404,
|
|
|
|
448, 295, 272, 857, 859, 402, 796, 259, 573, 208,
|
|
|
|
295, 574, 438, 449, 744, 231, 231, 231, 468, 295,
|
|
|
|
531, 54, 295, 132, 569, 570, 232, 232, 232, 521,
|
|
|
|
259, 504, 751, 207, 285, 521, 521, 986, 828, 1008,
|
|
|
|
239, 842, 265, 573, 231, 231, 574, 843, 824, 797,
|
|
|
|
841, 876, 726, 273, 163, 232, 232, 45, 228, 987,
|
|
|
|
228, 878, 559, 521, 884, 882, 572, 890, 885, 879,
|
|
|
|
338, 470, 260, 261, 801, 1018, 992, 226, 234, 45,
|
|
|
|
821, 958, 956, 901, 572, 904, 231, 926, 231, 897,
|
|
|
|
259, 39, 894, 259, 469, 260, 261, 232, 284, 232,
|
|
|
|
888, 848, 849, 850, 847, 846, 845, 550, 228, 900,
|
2018-06-06 23:25:27 +00:00
|
|
|
519, 521, 531, 531, 531, 531, 531, 531, 531, 531,
|
2018-04-09 20:08:29 +00:00
|
|
|
531, 531, 531, 531, 531, 531, 531, 531, 531, 531,
|
2018-06-06 23:25:27 +00:00
|
|
|
531, 531, 531, 531, 531, 531, 531, 531, 531, 923,
|
2019-12-24 14:16:35 +00:00
|
|
|
909, 531, 1, 519, 446, 1004, 599, 895, 601, 600,
|
|
|
|
39, 999, 961, 521, 937, 260, 261, 285, 260, 261,
|
|
|
|
936, 902, 855, 813, 704, 705, 880, 910, 531, 126,
|
|
|
|
860, 861, 761, 521, 760, 231, 521, 874, 723, 521,
|
|
|
|
453, 572, 963, 572, 971, 39, 232, 39, 610, 707,
|
|
|
|
704, 705, 652, 650, 647, 39, 602, 39, 39, 259,
|
|
|
|
514, 521, 481, 259, 438, 395, 572, 971, 283, 324,
|
|
|
|
957, 983, 203, 959, 39, 202, 962, 199, 39, 39,
|
|
|
|
521, 136, 572, 830, 748, 994, 754, 572, 996, 259,
|
|
|
|
998, 864, 445, 609, 256, 915, 589, 917, 980, 590,
|
|
|
|
591, 685, 255, 39, 572, 1012, 531, 925, 840, 927,
|
|
|
|
928, 1013, 531, 531, 995, 572, 1016, 993, 965, 964,
|
|
|
|
920, 39, 903, 920, 260, 261, 483, 896, 260, 261,
|
|
|
|
448, 839, 944, 836, 566, 231, 948, 231, 1006, 949,
|
|
|
|
531, 842, 1005, 449, 725, 39, 232, 843, 232, 192,
|
|
|
|
841, 39, 394, 946, 260, 261, 389, 164, 341, 698,
|
|
|
|
538, 519, 929, 290, 460, 973, 161, 157, 318, 314,
|
|
|
|
519, 127, 403, 575, 401, 335, 945, 519, 519, 519,
|
|
|
|
519, 519, 1009, 343, 939, 231, 528, 608, 531, 997,
|
|
|
|
970, 179, 182, 183, 991, 969, 232, 968, 189, 191,
|
|
|
|
967, 848, 849, 850, 847, 846, 845, 519, 838, 837,
|
|
|
|
835, 40, 177, 176, 568, 169, 171, 170, 192, 15,
|
|
|
|
14, 823, 178, 180, 181, 188, 190, 175, 720, 1015,
|
|
|
|
531, 802, 695, 686, 11, 249, 75, 76, 1021, 116,
|
|
|
|
689, 690, 691, 692, 693, 266, 64, 834, 89, 598,
|
|
|
|
531, 90, 520, 531, 101, 74, 531, 12, 167, 168,
|
|
|
|
179, 182, 183, 184, 185, 186, 187, 189, 191, 326,
|
|
|
|
100, 99, 79, 810, 809, 119, 526, 3, 531, 193,
|
|
|
|
173, 177, 176, 41, 0, 0, 0, 0, 172, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
174, 178, 180, 181, 188, 190, 175, 531, 0, 519,
|
2018-02-04 17:37:27 +00:00
|
|
|
519, 519, 519, 519, 519, 519, 519, 519, 519, 519,
|
2018-04-09 20:08:29 +00:00
|
|
|
519, 519, 519, 519, 519, 519, 519, 519, 519, 519,
|
2018-06-06 23:25:27 +00:00
|
|
|
519, 519, 519, 519, 519, 519, 0, 0, 519, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 669,
|
|
|
|
667, 668, 0, 0, 0, 519, 0, 0, 0, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 0, 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, 787, 789, 0,
|
|
|
|
0, 686, 671, 670, 658, 664, 665, 672, 673, 674,
|
2019-12-24 14:16:35 +00:00
|
|
|
675, 678, 679, 0, 169, 171, 170, 192, 870, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 654, 0, 680, 662, 656, 655, 0, 0, 0,
|
|
|
|
0, 0, 661, 0, 663, 657, 659, 660, 676, 677,
|
|
|
|
666, 0, 0, 519, 0, 0, 0, 0, 0, 519,
|
2019-12-24 14:16:35 +00:00
|
|
|
519, 0, 0, 0, 0, 0, 0, 167, 168, 179,
|
|
|
|
182, 183, 184, 185, 186, 187, 189, 191, 0, 0,
|
|
|
|
0, 863, 31, 0, 0, 0, 0, 519, 193, 173,
|
|
|
|
177, 176, 0, 0, 0, 0, 0, 172, 0, 174,
|
|
|
|
178, 180, 181, 188, 190, 175, 147, 151, 155, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 0, 165, 0, 0, 0, 869, 0, 0, 51,
|
|
|
|
198, 0, 872, 873, 0, 206, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 519, 223, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
235, 236, 237, 238, 0, 154, 240, 0, 242, 243,
|
2018-06-06 23:25:27 +00:00
|
|
|
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, 519, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
291, 0, 0, 671, 670, 658, 664, 665, 672, 673,
|
|
|
|
674, 675, 678, 679, 0, 0, 0, 519, 911, 0,
|
|
|
|
519, 0, 654, 519, 680, 662, 656, 655, 0, 0,
|
|
|
|
0, 0, 0, 661, 0, 663, 657, 659, 660, 676,
|
|
|
|
677, 666, 240, 0, 0, 519, 0, 342, 0, 0,
|
2018-02-03 13:24:00 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
943, 0, 0, 0, 519, 0, 0, 0, 0, 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,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 391, 392, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 912, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 240, 0, 0, 433, 433, 0, 0,
|
|
|
|
0, 0, 422, 441, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 669, 667, 668, 155, 465, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 462, 464, 0, 671, 670, 658,
|
|
|
|
664, 665, 672, 673, 674, 675, 678, 679, 0, 0,
|
|
|
|
0, 0, 478, 0, 0, 0, 654, 487, 680, 662,
|
|
|
|
656, 655, 0, 0, 0, 0, 0, 661, 0, 663,
|
|
|
|
657, 659, 660, 676, 677, 666, 549, 0, 0, 0,
|
|
|
|
0, 0, 0, 553, 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, 555, 0, 95, 29, 20, 19, 0, 21, 0,
|
|
|
|
33, 0, 34, 0, 0, 22, 0, 0, 155, 23,
|
|
|
|
24, 38, 45, 0, 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, 582, 0, 583, 0, 0,
|
|
|
|
93, 0, 0, 0, 614, 9, 113, 109, 103, 0,
|
|
|
|
85, 86, 87, 0, 0, 0, 0, 80, 53, 0,
|
|
|
|
0, 0, 78, 42, 28, 47, 49, 0, 627, 629,
|
|
|
|
55, 56, 0, 65, 66, 67, 68, 69, 70, 71,
|
|
|
|
0, 0, 637, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 658, 664, 665, 672, 673,
|
|
|
|
674, 675, 678, 679, 0, 0, 0, 92, 77, 17,
|
|
|
|
645, 35, 654, 63, 0, 97, 656, 655, 478, 58,
|
|
|
|
57, 59, 60, 73, 120, 0, 657, 659, 660, 676,
|
|
|
|
677, 666, 0, 192, 0, 342, 702, 658, 664, 665,
|
|
|
|
672, 673, 674, 675, 678, 679, 0, 712, 0, 0,
|
|
|
|
0, 0, 0, 0, 654, 0, 0, 662, 656, 655,
|
|
|
|
0, 0, 0, 0, 0, 661, 0, 663, 657, 659,
|
|
|
|
660, 676, 677, 666, 0, 179, 182, 183, 184, 185,
|
|
|
|
186, 187, 189, 191, 0, 0, 433, 391, 716, 716,
|
|
|
|
669, 667, 668, 0, 0, 173, 177, 176, 747, 0,
|
|
|
|
0, 0, 0, 0, 433, 752, 178, 180, 181, 188,
|
2018-06-06 23:25:27 +00:00
|
|
|
190, 175, 0, 155, 0, 0, 422, 422, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 155, 0, 169,
|
|
|
|
171, 170, 192, 671, 670, 658, 664, 665, 672, 673,
|
|
|
|
674, 675, 678, 679, 0, 0, 0, 0, 0, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
462, 0, 654, 868, 680, 662, 656, 655, 478, 0,
|
|
|
|
478, 0, 0, 661, 487, 663, 657, 659, 660, 676,
|
2019-12-24 14:16:35 +00:00
|
|
|
677, 666, 167, 168, 179, 182, 183, 184, 185, 186,
|
|
|
|
187, 189, 191, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 858, 193, 173, 177, 176, 807, 0, 0,
|
|
|
|
0, 0, 172, 0, 174, 178, 180, 181, 188, 190,
|
|
|
|
175, 0, 0, 0, 0, 0, 0, 0, 0, 658,
|
|
|
|
664, 665, 672, 673, 674, 675, 678, 679, 0, 0,
|
|
|
|
0, 853, 0, 0, 433, 0, 654, 0, 0, 662,
|
|
|
|
656, 655, 433, 433, 0, 0, 0, 818, 0, 866,
|
|
|
|
657, 659, 660, 676, 677, 666, 0, 210, 211, 212,
|
2018-06-06 23:25:27 +00:00
|
|
|
213, 214, 215, 216, 217, 218, 219, 220, 221, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 4, 0, 83, 84, 72, 18, 105, 106,
|
|
|
|
13, 88, 121, 0, 30, 349, 0, 0, 95, 29,
|
|
|
|
20, 19, 0, 21, 0, 33, 0, 34, 0, 342,
|
|
|
|
22, 209, 0, 0, 23, 24, 38, 45, 0, 16,
|
2018-06-06 23:25:27 +00:00
|
|
|
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, 716, 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,
|
2019-12-24 14:16:35 +00:00
|
|
|
210, 211, 212, 213, 214, 215, 216, 217, 218, 219,
|
|
|
|
220, 221, 92, 77, 17, 503, 35, 0, 63, 0,
|
|
|
|
97, 0, 0, 0, 58, 57, 59, 60, 73, 120,
|
|
|
|
4, 621, 83, 84, 72, 18, 105, 106, 13, 88,
|
|
|
|
121, 0, 30, 0, 209, 0, 95, 29, 20, 19,
|
|
|
|
0, 21, 0, 33, 0, 34, 558, 0, 22, 0,
|
|
|
|
0, 0, 23, 24, 38, 45, 0, 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, 210, 211, 212, 213, 214,
|
|
|
|
215, 216, 217, 218, 219, 220, 221, 210, 211, 212,
|
|
|
|
213, 214, 215, 216, 217, 218, 219, 220, 221, 0,
|
|
|
|
92, 77, 17, 0, 35, 0, 63, 0, 97, 0,
|
|
|
|
0, 0, 58, 57, 59, 60, 73, 120, 328, 209,
|
|
|
|
83, 84, 72, 18, 105, 106, 13, 88, 121, 0,
|
|
|
|
30, 209, 0, 0, 95, 29, 20, 19, 0, 21,
|
|
|
|
0, 33, 0, 34, 0, 0, 22, 0, 0, 0,
|
|
|
|
23, 24, 38, 45, 0, 0, 25, 36, 0, 0,
|
|
|
|
37, 0, 0, 27, 0, 32, 81, 82, 332, 46,
|
2018-06-06 23:25:27 +00:00
|
|
|
48, 50, 0, 0, 0, 0, 52, 96, 0, 94,
|
|
|
|
110, 111, 112, 107, 108, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 93, 0, 0, 0, 0, 143, 113, 109, 103,
|
2018-06-06 23:25:27 +00:00
|
|
|
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,
|
2018-05-27 15:02:58 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 92, 77,
|
|
|
|
17, 1022, 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, 0, 25, 36, 0, 0, 37, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2018-02-04 17:37:27 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 92, 77, 17, 1017,
|
|
|
|
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, 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, 0, 92, 77, 17, 1001, 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, 989, 33, 0, 34, 0, 0,
|
|
|
|
22, 0, 0, 0, 23, 24, 38, 45, 0, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2018-05-27 15:02:58 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
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, 975, 34, 0, 0, 22, 0,
|
|
|
|
0, 0, 23, 24, 38, 45, 0, 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, 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, 0, 25, 36, 0, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2018-05-27 15:02:58 +00:00
|
|
|
71, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 92, 77,
|
|
|
|
17, 974, 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, 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, 0, 92, 77, 17, 953,
|
|
|
|
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, 0, 25, 36, 0, 0, 37, 0, 0, 27,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2018-05-27 15:02:58 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
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, 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, 0, 92, 77, 17, 950, 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, 887, 0, 22, 0,
|
|
|
|
0, 0, 23, 24, 38, 45, 0, 0, 25, 36,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2018-05-27 15:02:58 +00:00
|
|
|
69, 70, 71, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
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, 699, 21,
|
|
|
|
0, 33, 0, 34, 0, 0, 22, 0, 0, 0,
|
|
|
|
23, 24, 38, 45, 0, 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, 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, 0, 25, 36, 0, 0, 37, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2018-05-27 15:02:58 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
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, 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, 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, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2018-05-27 15:02:58 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
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, 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,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 78, 42, 28, 0, 0, 0, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
0, 55, 56, 0, 65, 66, 67, 68, 69, 70,
|
2018-05-27 15:02:58 +00:00
|
|
|
71, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 92, 77,
|
|
|
|
17, 0, 35, 947, 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, 0, 25, 36, 0, 0, 37, 0, 0, 27,
|
|
|
|
0, 32, 81, 82, 0, 0, 0, 0, 0, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
42, 28, 0, 0, 0, 0, 0, 55, 56, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
65, 66, 67, 68, 69, 70, 71, 0, 0, 0,
|
2018-05-27 15:02:58 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 92, 77, 17, 0, 35, 921,
|
|
|
|
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, 0, 25, 36,
|
2018-04-09 20:08:29 +00:00
|
|
|
0, 0, 37, 0, 0, 27, 0, 32, 81, 82,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 52, 96,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
80, 53, 0, 0, 0, 78, 42, 28, 0, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
0, 0, 0, 55, 56, 0, 65, 66, 67, 68,
|
2018-05-27 15:02:58 +00:00
|
|
|
69, 70, 71, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
92, 77, 17, 0, 35, 722, 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, 0, 25, 36, 0, 0, 37, 0,
|
|
|
|
0, 27, 0, 32, 81, 82, 0, 0, 0, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 78, 42, 28, 0, 0, 0, 0, 0, 55,
|
2018-04-09 20:08:29 +00:00
|
|
|
56, 0, 65, 66, 67, 68, 69, 70, 71, 0,
|
2018-05-27 15:02:58 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
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, 0,
|
2018-05-27 15:02:58 +00:00
|
|
|
25, 36, 0, 0, 37, 0, 0, 27, 0, 32,
|
2019-12-24 14:16:35 +00:00
|
|
|
81, 82, 0, 0, 0, 0, 0, 0, 0, 0,
|
2018-05-27 15:02:58 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 0, 55, 56, 0, 65, 66,
|
2018-05-27 15:02:58 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
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, 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,
|
2018-05-27 15:02:58 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 78, 42, 28, 0, 0, 0, 0,
|
2018-05-27 15:02:58 +00:00
|
|
|
0, 55, 56, 0, 65, 66, 67, 68, 69, 70,
|
2019-12-24 14:16:35 +00:00
|
|
|
71, 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, 0, 0, 92, 77,
|
|
|
|
17, 0, 35, 0, 63, 45, 97, 0, 0, 0,
|
|
|
|
58, 57, 59, 60, 73, 120, 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, 489, 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, 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, 482, 97, 45,
|
|
|
|
0, 488, 58, 57, 59, 60, 73, 120, 0, 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, 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, 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, 0, 0, 92, 77, 0, 0, 0, 0,
|
|
|
|
63, 45, 97, 0, 0, 488, 58, 57, 59, 60,
|
|
|
|
73, 120, 0, 0, 81, 82, 0, 0, 0, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 78, 148, 149, 0, 0, 0, 0, 0, 55,
|
2018-06-06 23:25:27 +00:00
|
|
|
56, 0, 65, 66, 67, 68, 69, 70, 71, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
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, 867, 58, 57,
|
|
|
|
59, 60, 73, 120, 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, 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, 0, 0, 92, 77,
|
|
|
|
0, 0, 0, 0, 63, 45, 97, 0, 0, 630,
|
|
|
|
58, 57, 59, 60, 73, 120, 0, 0, 81, 82,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 52, 96,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
80, 53, 0, 0, 0, 78, 148, 149, 0, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
0, 0, 0, 55, 56, 0, 65, 66, 67, 68,
|
2019-12-24 14:16:35 +00:00
|
|
|
69, 70, 71, 0, 83, 84, 72, 0, 105, 106,
|
|
|
|
126, 88, 121, 0, 0, 0, 0, 0, 95, 0,
|
2018-05-27 15:02:58 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
92, 77, 0, 0, 0, 0, 63, 45, 97, 0,
|
|
|
|
0, 628, 58, 57, 59, 60, 73, 120, 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, 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,
|
|
|
|
0, 0, 92, 77, 0, 0, 0, 0, 63, 45,
|
|
|
|
97, 0, 0, 292, 58, 57, 59, 60, 73, 120,
|
|
|
|
0, 0, 81, 82, 0, 0, 0, 0, 0, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
42, 149, 0, 0, 0, 0, 0, 55, 56, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
65, 66, 67, 68, 69, 70, 71, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
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, 0, 81, 82, 0, 0,
|
2018-05-27 15:02:58 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 78, 148, 149, 0, 0, 0, 0,
|
2018-05-27 15:02:58 +00:00
|
|
|
0, 55, 56, 0, 65, 66, 67, 68, 69, 70,
|
2019-12-24 14:16:35 +00:00
|
|
|
71, 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, 0, 0, 92, 77,
|
|
|
|
0, 0, 0, 0, 63, 45, 97, 0, 0, 407,
|
|
|
|
58, 57, 59, 60, 73, 120, 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, 0, 83, 84, 72, 0, 105, 106,
|
|
|
|
126, 88, 121, 0, 0, 0, 0, 0, 95, 0,
|
2018-05-27 15:02:58 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
92, 77, 0, 0, 0, 388, 63, 45, 97, 0,
|
|
|
|
0, 0, 58, 57, 59, 60, 73, 120, 0, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
67, 68, 69, 70, 71, 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,
|
|
|
|
0, 0, 92, 77, 0, 0, 152, 0, 63, 45,
|
|
|
|
97, 0, 0, 0, 58, 57, 59, 60, 73, 120,
|
|
|
|
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, 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, 0, 0, 92, 77, 0, 0, 150, 0,
|
|
|
|
63, 45, 97, 0, 0, 0, 58, 57, 59, 60,
|
|
|
|
73, 120, 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, 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, 0, 0, 92, 77, 0, 0,
|
|
|
|
146, 0, 63, 45, 97, 0, 0, 0, 58, 57,
|
|
|
|
59, 60, 73, 120, 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, 0, 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, 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, 0, 83, 84, 72, 0, 105, 106,
|
|
|
|
126, 88, 121, 0, 0, 0, 0, 0, 95, 0,
|
2018-05-27 15:02:58 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
92, 77, 0, 0, 0, 0, 63, 45, 97, 0,
|
|
|
|
0, 0, 58, 57, 59, 60, 73, 120, 0, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 80, 53, 0, 0, 0, 78, 42, 149,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 0, 0, 0, 0, 55, 56, 0, 65, 66,
|
2019-12-24 14:16:35 +00:00
|
|
|
67, 68, 69, 70, 71, 0, 0, 669, 667, 668,
|
2018-05-27 15:02:58 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 92, 77, 795, 0, 0, 0, 63, 0,
|
|
|
|
97, 0, 0, 0, 58, 57, 59, 60, 73, 120,
|
|
|
|
671, 670, 658, 664, 665, 672, 673, 674, 675, 678,
|
|
|
|
679, 0, 0, 669, 667, 668, 0, 0, 798, 654,
|
|
|
|
0, 680, 662, 656, 655, 0, 0, 0, 0, 0,
|
|
|
|
661, 0, 663, 657, 659, 660, 676, 677, 666, 756,
|
2018-02-03 10:09:02 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 671, 670, 658, 664,
|
2019-12-24 14:16:35 +00:00
|
|
|
665, 672, 673, 674, 675, 678, 679, 0, 169, 171,
|
|
|
|
170, 192, 0, 0, 0, 654, 0, 680, 662, 656,
|
2018-06-06 23:25:27 +00:00
|
|
|
655, 0, 0, 0, 0, 0, 661, 0, 663, 657,
|
|
|
|
659, 660, 676, 677, 666, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 169, 171, 170,
|
|
|
|
192, 167, 168, 179, 182, 183, 184, 185, 186, 187,
|
|
|
|
189, 191, 0, 0, 0, 0, 0, 0, 0, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 0, 193, 173, 177, 176, 0, 0, 0, 0,
|
|
|
|
0, 172, 0, 174, 178, 180, 181, 188, 190, 175,
|
2019-12-24 14:16:35 +00:00
|
|
|
167, 168, 179, 182, 183, 184, 185, 186, 187, 189,
|
|
|
|
191, 0, 0, 0, 753, 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,
|
2018-02-03 17:33:22 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 169, 171, 170, 192, 167, 168,
|
2018-06-06 23:25:27 +00:00
|
|
|
179, 182, 183, 184, 185, 186, 187, 189, 191, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 709, 0, 0, 0, 0, 0, 0, 193,
|
2018-06-06 23:25:27 +00:00
|
|
|
173, 177, 176, 0, 0, 0, 0, 0, 172, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
174, 178, 180, 181, 188, 190, 175, 167, 168, 179,
|
|
|
|
182, 183, 184, 185, 186, 187, 189, 191, 0, 0,
|
|
|
|
0, 644, 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,
|
2018-02-03 12:29:23 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 169, 171, 170, 192, 167, 168, 179, 182, 183,
|
2018-06-06 23:25:27 +00:00
|
|
|
184, 185, 186, 187, 189, 191, 0, 0, 0, 641,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 193, 173, 177, 176,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 0, 0, 0, 0, 172, 0, 174, 178, 180,
|
2019-12-24 14:16:35 +00:00
|
|
|
181, 188, 190, 175, 167, 168, 179, 182, 183, 184,
|
|
|
|
185, 186, 187, 189, 191, 169, 171, 170, 192, 0,
|
|
|
|
0, 0, 623, 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, 169, 171, 170, 192, 167, 168,
|
2018-06-06 23:25:27 +00:00
|
|
|
179, 182, 183, 184, 185, 186, 187, 189, 191, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 622, 0, 0, 193,
|
2018-06-06 23:25:27 +00:00
|
|
|
173, 177, 176, 0, 0, 0, 0, 0, 172, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
174, 178, 180, 181, 188, 190, 175, 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, 476, 0, 0, 0, 0, 172, 0, 174,
|
|
|
|
178, 180, 181, 188, 190, 175, 0, 0, 0, 0,
|
2018-02-03 12:29:23 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 169, 171, 170, 192, 167, 168, 179, 182, 183,
|
|
|
|
184, 185, 186, 187, 189, 191, 0, 0, 0, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 554, 0, 0, 0, 0, 193, 173, 177, 176,
|
|
|
|
0, 0, 0, 0, 0, 172, 0, 174, 178, 180,
|
2019-12-24 14:16:35 +00:00
|
|
|
181, 188, 190, 175, 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, 405, 0, 0, 0, 0, 0, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 167, 168,
|
2019-12-24 14:16:35 +00:00
|
|
|
179, 182, 183, 184, 185, 186, 187, 189, 191, 0,
|
|
|
|
0, 0, 169, 171, 170, 192, 429, 0, 0, 193,
|
2018-06-06 23:25:27 +00:00
|
|
|
173, 177, 176, 0, 0, 0, 0, 0, 172, 0,
|
|
|
|
174, 178, 180, 181, 188, 190, 175, 0, 0, 0,
|
2018-02-04 16:51:44 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 169, 171, 170, 192, 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, 167, 168, 179, 182, 183, 184,
|
|
|
|
185, 186, 187, 189, 191, 169, 171, 170, 192, 397,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 0, 0, 0, 0, 193, 173, 177, 176, 0,
|
2018-05-27 15:02:58 +00:00
|
|
|
0, 0, 0, 0, 172, 0, 174, 178, 180, 181,
|
|
|
|
188, 190, 175, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 169, 171, 170, 192, 167, 168,
|
|
|
|
179, 182, 183, 184, 185, 186, 187, 189, 191, 0,
|
|
|
|
0, 0, 0, 347, 0, 0, 0, 0, 0, 193,
|
|
|
|
173, 177, 176, 0, 0, 0, 0, 0, 172, 0,
|
|
|
|
174, 178, 180, 181, 188, 190, 175, 167, 168, 179,
|
2018-05-27 15:02:58 +00:00
|
|
|
182, 183, 184, 185, 186, 187, 189, 191, 169, 171,
|
2018-06-06 23:25:27 +00:00
|
|
|
170, 192, 346, 0, 0, 0, 0, 0, 193, 173,
|
2018-05-27 15:02:58 +00:00
|
|
|
177, 176, 0, 0, 0, 0, 0, 172, 0, 174,
|
|
|
|
178, 180, 181, 188, 190, 175, 0, 0, 0, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 669, 667, 668,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 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,
|
|
|
|
671, 670, 658, 664, 665, 672, 673, 674, 675, 678,
|
|
|
|
679, 169, 171, 170, 192, 0, 0, 0, 0, 654,
|
|
|
|
0, 680, 662, 656, 655, 0, 0, 0, 0, 0,
|
|
|
|
661, 0, 663, 657, 659, 660, 676, 677, 666, 0,
|
2018-02-04 17:37:27 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 667, 668, 0, 167, 168, 179, 182, 183, 184,
|
2018-06-06 23:25:27 +00:00
|
|
|
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, 671, 670, 658, 664, 665, 672, 673,
|
2019-12-24 14:16:35 +00:00
|
|
|
674, 675, 678, 679, 171, 170, 192, 0, 0, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 0, 654, 0, 680, 662, 656, 655, 0, 0,
|
|
|
|
0, 0, 0, 661, 0, 663, 657, 659, 660, 676,
|
|
|
|
677, 666, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 668, 0, 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, 671, 670, 658, 664, 665,
|
|
|
|
672, 673, 674, 675, 678, 679, 170, 192, 0, 0,
|
|
|
|
0, 0, 0, 0, 654, 0, 680, 662, 656, 655,
|
|
|
|
0, 0, 0, 0, 0, 661, 0, 663, 657, 659,
|
|
|
|
660, 676, 677, 666, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 192, 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, 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, 671, 670, 658, 664, 665,
|
|
|
|
672, 673, 674, 675, 678, 679, 192, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 654, 0, 0, 662, 656, 655,
|
|
|
|
0, 0, 0, 0, 0, 661, 0, 663, 657, 659,
|
|
|
|
660, 676, 677, 666, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 192, 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, 179, 182, 183, 184, 185,
|
2018-05-27 15:02:58 +00:00
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
190, 175, 658, 664, 665, 672, 673, 674, 675, 678,
|
|
|
|
679, 192, 0, 0, 0, 0, 0, 0, 0, 654,
|
|
|
|
0, 0, 662, 656, 655, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 663, 657, 659, 660, 676, 677, 666, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 192, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 0, 0, 179, 182, 183, 184, 185, 186, 187,
|
2018-05-27 15:02:58 +00:00
|
|
|
189, 191, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 173, 177, 176, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 174, 178, 180, 181, 188, 190, 175,
|
|
|
|
179, 182, 183, 184, 185, 186, 187, 189, 191, 105,
|
|
|
|
106, 126, 0, 0, 0, 0, 0, 0, 0, 529,
|
|
|
|
0, 177, 176, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 178, 180, 181, 188, 190, 175, 105, 106, 126,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 529, 0, 0,
|
2018-02-01 18:40:04 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
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, 0, 0, 0, 0, 0,
|
|
|
|
524, 0, 527, 110, 111, 112, 107, 108, 0, 0,
|
|
|
|
233, 0, 0, 0, 530, 0, 0, 0, 0, 522,
|
|
|
|
113, 109, 523, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 233, 0,
|
2018-02-03 10:09:02 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 788, 536,
|
2018-05-27 15:02:58 +00:00
|
|
|
0, 525, 0, 0, 0, 535, 534, 532, 533, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 536, 0, 525,
|
|
|
|
0, 0, 0, 535, 534, 532, 533,
|
2018-01-29 14:11:45 +00:00
|
|
|
}
|
|
|
|
var yyPact = [...]int{
|
|
|
|
|
2019-12-24 14:16:35 +00:00
|
|
|
-1000, -1000, 2298, -1000, -1000, -1000, -1000, -1000, 336, 543,
|
|
|
|
613, 174, -1000, 348, -1000, -1000, 971, -1000, 276, 276,
|
|
|
|
5446, 332, 276, 6794, 6682, 6570, 396, 166, 802, 6906,
|
|
|
|
-1000, 7990, 328, 325, 315, -1000, 442, 6906, 967, 9,
|
|
|
|
965, 962, 6906, -1000, -1000, -1000, -1000, 740, -1000, 716,
|
|
|
|
-1000, 2309, 313, 6906, 492, 131, 131, 6906, 6906, 6906,
|
|
|
|
6906, -1000, -1000, 7130, -1000, 6906, 6906, 6906, 6906, 6906,
|
|
|
|
6906, 6906, 311, 6906, -1000, 214, 206, 977, 6906, 689,
|
|
|
|
420, 310, 309, 6906, 6906, 305, 6906, 6906, -1000, 197,
|
|
|
|
-1000, -1000, 951, 841, -1000, 195, 297, 6120, -1000, 187,
|
|
|
|
158, -1000, 300, 919, 650, -1000, -1000, -1000, -1000, -1000,
|
|
|
|
-1000, -1000, -1000, -1000, 173, 153, -1000, 647, 279, -1000,
|
|
|
|
440, -1000, 265, 367, -1000, 919, -1000, 164, 644, 603,
|
|
|
|
-1000, 699, 919, -1000, 959, -1000, -57, 4352, 5290, 7130,
|
|
|
|
5134, 809, 9, 561, 6906, 302, -1000, 7936, -1000, 780,
|
|
|
|
-1000, 7897, -1000, 395, 2009, 8083, -1000, 146, -1000, -1000,
|
|
|
|
403, 141, 9, -59, 97, 8083, -1000, 6906, 6906, 6906,
|
|
|
|
6906, 6906, 6906, 6906, 6906, 6906, 6906, 6906, 6906, 6906,
|
|
|
|
6906, 6906, 6906, 6906, 6906, 6906, 6906, 6906, 6906, 6906,
|
|
|
|
6906, 6906, 420, 6458, 131, 6906, 955, -1000, 7843, 394,
|
|
|
|
375, -1000, 709, 703, -1000, 2309, 7804, -1000, -1000, 6346,
|
|
|
|
6906, 6906, 6906, 6906, 6906, 6906, 6906, 6906, 6906, 6906,
|
|
|
|
6906, 6906, 236, -1000, -1000, -1000, -1000, -1000, 300, 555,
|
|
|
|
919, 624, 623, -1000, -1000, 457, 457, 510, 457, 260,
|
|
|
|
7747, 258, 457, 457, 457, 457, 457, 457, 457, -1000,
|
|
|
|
6232, -1000, 457, 6906, 6906, 421, 838, 947, -1000, 272,
|
|
|
|
7018, 131, 8305, 132, 279, 610, -1000, 528, 550, 919,
|
|
|
|
686, 173, 153, 570, 6906, 6906, 8083, 8083, 6906, 8083,
|
|
|
|
8083, 6906, 636, 838, 778, -1000, 755, 6906, 6120, 156,
|
|
|
|
-32, 7693, 131, 6906, 6906, 952, -1000, 5558, 300, 189,
|
|
|
|
6906, 6906, 173, 440, 135, -1000, 6906, 393, -1000, -1000,
|
|
|
|
2140, 300, -1000, 700, 58, -1000, 696, 919, 52, -1000,
|
|
|
|
687, 919, 950, 678, -73, 8719, -1000, -1000, -1000, -1000,
|
|
|
|
-1000, -1000, 296, -1000, -1000, -1000, -1000, -1000, 276, 295,
|
|
|
|
392, -35, 8083, -1000, 385, 384, -1000, -1000, -1000, -1000,
|
|
|
|
-1000, 166, -1000, 6906, -1000, -1000, 855, 294, 8719, -1000,
|
|
|
|
6906, 100, 8432, 8175, 8305, 8266, 8520, 8557, 1812, 41,
|
|
|
|
41, 41, 510, 457, 510, 510, 117, 117, 958, 958,
|
|
|
|
958, 958, 55, 55, 55, 55, -1000, 7654, 6906, 129,
|
|
|
|
-1000, -1000, 2297, 793, 67, -77, 4194, -1000, -1000, 291,
|
|
|
|
723, 698, 632, 439, 632, 6906, 8305, 319, 8305, 8305,
|
|
|
|
8305, 8305, 8305, 8305, 8305, 8305, 8305, 8305, 8305, 8305,
|
|
|
|
21, -1000, -1000, 290, 919, 300, 132, 132, 270, -1000,
|
|
|
|
-1000, -1000, 149, 8083, 148, -1000, -1000, -1000, -1000, 896,
|
|
|
|
946, 7596, 182, 416, 279, 208, -1000, -1000, 173, 153,
|
|
|
|
-1000, 6906, -1000, -1000, 138, 919, 528, 132, 173, 138,
|
|
|
|
11, -1000, 2309, -1000, 2152, 7557, 7503, 105, -1000, -1000,
|
|
|
|
-1000, 101, 249, -1000, -1000, 6008, 5896, -1000, -1000, 98,
|
|
|
|
96, -1000, -1000, 6, 248, -1000, -1000, 2309, 131, 6906,
|
|
|
|
-1000, 279, 279, -1000, -1000, 74, 7464, 279, 279, -1000,
|
|
|
|
7406, -1000, 1735, -1000, -1000, -1000, -1000, 644, 944, 662,
|
|
|
|
-1000, 603, 943, 622, -1000, 942, 8719, -1000, 8029, -1000,
|
|
|
|
-1000, 528, 544, 919, 288, 8719, -1000, -1000, -1000, -1000,
|
|
|
|
718, 567, 8719, 8719, 8719, 8719, 8719, 245, 515, 4510,
|
|
|
|
4036, 383, 6906, 6906, 495, -1000, 918, -1000, -1000, 7367,
|
|
|
|
-80, 723, -1000, 8083, 6906, 8395, 379, 131, 301, 301,
|
|
|
|
4978, 928, 8719, 770, 723, 241, -41, -1000, 9, -1000,
|
|
|
|
-1000, -1000, 528, 537, 919, 437, 632, -1000, -1000, -54,
|
|
|
|
-1000, -1000, 2309, -1000, 420, -86, 236, 236, 300, -1000,
|
|
|
|
-1000, 186, 684, 6906, -1000, 132, -1000, -1000, 71, -1000,
|
|
|
|
-1000, -1000, -1000, -1000, -1000, 6906, -1000, -1000, 53, 19,
|
|
|
|
-1000, 6906, 6906, 173, 7309, -1000, 528, -1000, -1000, -1000,
|
|
|
|
6906, -1000, -1000, -1000, -1000, -1000, -1000, 7270, 131, 8083,
|
|
|
|
131, -1000, -1000, -1000, 5672, -1000, -1000, 8083, -1000, -1000,
|
|
|
|
-1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, 924, -1000,
|
|
|
|
-1000, 922, -1000, -1000, 8719, 8719, 8719, 8719, 8719, 8719,
|
|
|
|
8719, 8719, 8719, 8719, 8719, 8719, 8719, 8719, 8719, 8719,
|
|
|
|
8719, 8719, 8719, 8719, 8719, 8719, 8719, 8719, 8719, 8719,
|
|
|
|
8691, 919, 528, 8719, 64, -45, 7215, 655, 756, 155,
|
|
|
|
155, -55, -55, 7159, 376, -1000, 276, 5446, 508, 374,
|
|
|
|
-1000, 372, 8083, -1000, 6906, 287, 472, 370, 892, -1000,
|
|
|
|
8719, 233, 8395, -1000, -1000, 681, -1000, 131, 283, 681,
|
|
|
|
-1000, -1000, -1000, -87, -1000, 765, 281, 231, 753, 723,
|
|
|
|
522, 919, 528, -1000, -54, 1002, 632, 279, 6906, -1000,
|
|
|
|
-11, 6906, 684, -1000, 62, 279, -1000, 1911, 684, 6906,
|
|
|
|
6906, 49, 1216, -1000, 683, -1000, 5784, -1000, -1000, -1000,
|
|
|
|
-1000, -1000, 1872, -55, -55, 155, 155, 155, 155, 8469,
|
|
|
|
1732, 1956, 222, 222, -55, 8214, 1332, 8122, 1774, -67,
|
|
|
|
18, 18, 18, 18, -42, -42, -42, -42, 8719, 1161,
|
|
|
|
528, 230, -1000, -1000, 8719, 8719, -1000, -1000, -1000, -1000,
|
|
|
|
5446, -1000, 498, 276, 347, -1000, 6906, 1027, -1000, -1000,
|
|
|
|
-1000, -1000, -1000, 369, -1000, 753, 226, 301, -1000, 236,
|
|
|
|
225, 3878, 8719, -1000, 436, 632, 430, 429, 271, -1000,
|
|
|
|
840, -1000, 528, 762, -1000, -1000, 837, -6, -1000, 780,
|
|
|
|
620, -1000, 911, 632, -1000, -1000, -1000, -1000, -1000, -1000,
|
|
|
|
-1000, -1000, -1000, 8305, -1000, 46, -1000, -1000, 411, -1000,
|
|
|
|
45, 43, -1000, -1000, -1000, 132, 8083, 131, -1000, 8344,
|
|
|
|
8719, -1000, 1546, 8029, -1000, 363, 344, -1000, 224, -1000,
|
|
|
|
4510, -1000, 428, 4822, -1000, -12, 4822, 361, -1000, -1000,
|
|
|
|
835, -1000, -1000, 151, -102, -1000, -25, -107, -1000, 910,
|
|
|
|
9, -1000, -108, -83, -1000, -1000, -1000, -1000, -1000, -1000,
|
|
|
|
-1000, 8344, 8719, -1000, -1000, 4510, 4666, 4510, -1000, -1000,
|
|
|
|
-1000, -1000, -1000, -1000, -1000, 3720, 217, 3562, 3404, -29,
|
|
|
|
-1000, 830, 8719, -1000, 829, 8719, -109, 902, 8719, -1000,
|
|
|
|
632, -1000, 688, 8029, 4510, -1000, -1000, -1000, 3246, 3088,
|
|
|
|
-1000, 427, -1000, -1000, -1000, 106, -1000, -1000, -111, -1000,
|
|
|
|
8719, 269, -1000, -1000, 405, 688, -1000, 360, 353, 751,
|
|
|
|
790, 566, -1000, 2930, -1000, 351, -1000, -1000, 824, 8719,
|
|
|
|
-1000, 723, -1000, -1000, -1000, -1000, 632, 620, 901, 342,
|
|
|
|
-1000, 2772, -1000, -1000, 216, -81, -1000, 895, -1000, -1000,
|
|
|
|
-1000, 757, 341, 632, -1000, -1000, 757, -1000, 268, -1000,
|
|
|
|
-1000, -1000, -1000, -1000, 632, 2614, 823, -1000, 102, 423,
|
|
|
|
-1000, 2456, -1000,
|
2018-01-29 14:11:45 +00:00
|
|
|
}
|
|
|
|
var yyPgo = [...]int{
|
|
|
|
|
2019-12-24 14:16:35 +00:00
|
|
|
0, 29, 1183, 22, 21, 1177, 49, 41, 39, 544,
|
|
|
|
1176, 1175, 164, 217, 228, 180, 1362, 64, 134, 59,
|
|
|
|
781, 1399, 1172, 33, 1171, 1170, 1169, 136, 1157, 40,
|
|
|
|
37, 1155, 1154, 1152, 1151, 84, 1149, 1148, 20, 1146,
|
|
|
|
28, 44, 38, 1145, 736, 36, 1139, 1, 1137, 1136,
|
|
|
|
7, 1135, 52, 43, 42, 1134, 1132, 1131, 31, 1128,
|
|
|
|
1121, 4, 1120, 1119, 1114, 16, 1111, 1110, 1109, 1108,
|
|
|
|
48, 5, 1100, 1097, 1095, 1090, 1089, 2, 1087, 607,
|
|
|
|
1086, 18, 202, 1084, 1083, 1082, 12, 1076, 1075, 6,
|
|
|
|
19, 1074, 1073, 1072, 9, 50, 0, 1071, 1069, 1068,
|
|
|
|
117, 1067, 1066, 599, 1064, 1063, 62, 8, 1062, 1060,
|
|
|
|
1059, 1058, 14, 47, 1057, 1056, 1052, 1044, 1042, 1038,
|
|
|
|
3, 1034, 23, 1033, 1031, 1027, 35, 1026, 1022, 1019,
|
|
|
|
1018, 1014, 1008, 1002, 25, 1001, 1000, 999, 24, 996,
|
|
|
|
15, 17, 993, 34, 992, 991, 986, 984, 177, 13,
|
|
|
|
983, 902,
|
2017-11-23 15:33:47 +00:00
|
|
|
}
|
|
|
|
var yyR1 = [...]int{
|
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 151, 95, 95, 96, 96, 5, 5, 5, 5,
|
|
|
|
5, 5, 5, 5, 5, 5, 5, 5, 97, 97,
|
|
|
|
6, 6, 6, 6, 98, 98, 7, 7, 7, 7,
|
|
|
|
99, 99, 8, 8, 8, 8, 55, 55, 100, 100,
|
|
|
|
26, 26, 26, 26, 26, 27, 27, 28, 28, 28,
|
|
|
|
28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
|
|
|
|
28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
|
|
|
|
28, 28, 28, 28, 28, 117, 117, 60, 60, 118,
|
|
|
|
118, 119, 119, 61, 115, 115, 58, 53, 54, 149,
|
|
|
|
149, 150, 150, 62, 63, 63, 66, 66, 66, 66,
|
|
|
|
91, 91, 2, 93, 93, 92, 92, 126, 126, 90,
|
|
|
|
90, 89, 89, 89, 87, 87, 86, 86, 59, 59,
|
|
|
|
116, 116, 84, 84, 84, 84, 113, 113, 113, 4,
|
|
|
|
4, 88, 88, 109, 109, 110, 110, 56, 56, 57,
|
|
|
|
57, 120, 120, 121, 121, 65, 65, 64, 64, 64,
|
|
|
|
64, 82, 82, 82, 127, 127, 70, 70, 70, 70,
|
|
|
|
101, 101, 29, 29, 29, 102, 102, 102, 102, 122,
|
|
|
|
122, 67, 67, 67, 67, 69, 128, 128, 83, 83,
|
|
|
|
129, 129, 130, 130, 71, 71, 72, 131, 131, 75,
|
|
|
|
75, 74, 73, 73, 76, 76, 85, 85, 123, 123,
|
|
|
|
124, 124, 132, 132, 77, 77, 77, 77, 77, 77,
|
|
|
|
125, 125, 125, 125, 68, 68, 114, 114, 112, 112,
|
|
|
|
111, 111, 138, 138, 136, 136, 137, 137, 137, 139,
|
|
|
|
139, 44, 17, 17, 17, 17, 17, 17, 17, 17,
|
|
|
|
17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
|
|
|
|
17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
|
|
|
|
17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
|
|
|
|
17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
|
|
|
|
17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
|
|
|
|
17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
|
|
|
|
17, 17, 17, 17, 17, 17, 52, 52, 52, 52,
|
|
|
|
49, 49, 49, 49, 48, 48, 1, 94, 94, 108,
|
|
|
|
108, 108, 108, 25, 25, 25, 25, 25, 25, 25,
|
|
|
|
25, 13, 13, 13, 13, 47, 47, 47, 45, 45,
|
|
|
|
43, 43, 146, 146, 145, 51, 51, 51, 133, 133,
|
|
|
|
133, 81, 81, 9, 9, 9, 9, 9, 9, 9,
|
|
|
|
9, 9, 9, 9, 9, 10, 30, 79, 79, 79,
|
|
|
|
79, 79, 79, 79, 79, 79, 79, 80, 80, 80,
|
|
|
|
80, 80, 80, 80, 80, 80, 80, 80, 80, 80,
|
|
|
|
80, 80, 80, 80, 80, 80, 80, 80, 80, 80,
|
|
|
|
80, 80, 80, 80, 80, 80, 80, 80, 80, 80,
|
|
|
|
37, 37, 37, 37, 31, 31, 31, 31, 31, 31,
|
|
|
|
31, 134, 134, 3, 3, 135, 135, 135, 135, 16,
|
|
|
|
16, 50, 50, 18, 19, 20, 21, 21, 147, 147,
|
|
|
|
140, 142, 142, 78, 141, 141, 141, 42, 42, 46,
|
|
|
|
46, 14, 24, 24, 22, 22, 22, 23, 23, 23,
|
|
|
|
12, 12, 12, 11, 11, 15, 15, 143, 143, 144,
|
|
|
|
144, 144, 41, 41, 148, 148, 107, 107, 40, 40,
|
|
|
|
40, 106, 106, 105, 105, 105, 105, 105, 105, 105,
|
|
|
|
105, 103, 103, 103, 103, 35, 35, 35, 35, 35,
|
|
|
|
35, 35, 36, 36, 36, 39, 39, 39, 39, 39,
|
|
|
|
39, 39, 39, 104, 104, 38, 38, 32, 32, 33,
|
|
|
|
34,
|
2017-11-23 15:33:47 +00:00
|
|
|
}
|
|
|
|
var yyR2 = [...]int{
|
|
|
|
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2018-01-29 14:42:52 +00:00
|
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2018-06-06 23:25:27 +00:00
|
|
|
2, 2, 2, 1, 2, 1, 4, 3, 3, 3,
|
|
|
|
6, 3, 1, 1, 1, 4, 4, 4, 2, 2,
|
|
|
|
4, 2, 2, 1, 3, 1, 1, 3, 3, 3,
|
|
|
|
3,
|
2017-11-23 15:33:47 +00:00
|
|
|
}
|
|
|
|
var yyChk = [...]int{
|
|
|
|
|
2019-12-24 14:16:35 +00:00
|
|
|
-1000, -151, -95, -5, 2, -27, -53, -54, 52, 80,
|
|
|
|
45, -55, -28, 10, -62, -63, 39, 144, 7, 21,
|
|
|
|
20, 23, 30, 34, 35, 40, -52, 47, 99, 19,
|
|
|
|
14, -16, 49, 25, 27, 146, 41, 44, 36, -1,
|
|
|
|
-66, -2, 98, -18, -17, 37, 53, 100, 54, 101,
|
|
|
|
55, -21, 60, 93, -20, 105, 106, 155, 154, 156,
|
|
|
|
157, -50, -44, 148, -39, 108, 109, 110, 111, 112,
|
|
|
|
113, 114, 6, 158, -31, -49, -48, 143, 97, -22,
|
|
|
|
92, 50, 51, 4, 5, 85, 86, 87, 11, -37,
|
|
|
|
-34, -9, 142, 75, 63, 18, 61, 150, -23, -24,
|
|
|
|
-25, -32, -96, 83, -13, 8, 9, 67, 68, 82,
|
|
|
|
64, 65, 66, 81, -12, -148, -46, -14, -42, -11,
|
|
|
|
159, 12, 148, -96, 144, 83, 10, -97, 37, 39,
|
|
|
|
-6, -96, 83, 146, 160, 147, 10, -100, -50, 148,
|
|
|
|
-50, -27, -1, 80, 148, -50, 146, -16, 98, 99,
|
|
|
|
146, -16, 146, -17, -21, -16, 146, -101, -29, 12,
|
|
|
|
159, -102, -1, 12, -114, -16, 146, 131, 132, 88,
|
|
|
|
90, 89, 161, 153, 163, 169, 155, 154, 164, 133,
|
|
|
|
165, 166, 134, 135, 136, 137, 138, 139, 167, 140,
|
|
|
|
168, 141, 91, 152, 148, 148, 148, 144, -16, 10,
|
|
|
|
-149, 153, 10, 10, -17, -21, -16, 53, 53, 162,
|
|
|
|
118, 119, 120, 121, 122, 123, 124, 125, 126, 127,
|
|
|
|
128, 129, 148, -16, 105, 106, -20, -21, -96, 80,
|
|
|
|
83, -13, -14, 99, -20, -16, -16, -16, -16, -44,
|
2018-06-06 23:25:27 +00:00
|
|
|
-16, -52, -16, -16, -16, -16, -16, -16, -16, -51,
|
2019-12-24 14:16:35 +00:00
|
|
|
148, -50, -16, 150, 150, -133, 17, -103, -35, 12,
|
|
|
|
77, 78, -16, 58, -45, -13, -43, -96, 80, 83,
|
|
|
|
-23, -12, -148, -14, 148, 148, -16, -16, 148, -16,
|
|
|
|
-16, 150, -103, 17, 17, 76, -103, 150, 148, -106,
|
|
|
|
-105, -16, 153, 150, 150, 83, -82, 148, -96, 79,
|
|
|
|
150, 144, -12, 159, 79, -82, 144, 149, 146, 144,
|
|
|
|
-95, -96, 146, 160, -98, -7, -96, 83, -99, -8,
|
|
|
|
-96, 83, 29, -96, 10, 162, -26, 145, 2, -27,
|
|
|
|
-53, -54, 52, -27, 147, -88, -27, 147, 21, -149,
|
|
|
|
-112, -111, -16, -84, 144, 147, 146, 146, 146, 146,
|
|
|
|
146, 160, -18, 144, -21, 146, 160, -149, 162, 146,
|
|
|
|
160, -16, -16, -16, -16, -16, -16, -16, -16, -16,
|
2018-06-06 23:25:27 +00:00
|
|
|
-16, -16, -16, -16, -16, -16, -16, -16, -16, -16,
|
2019-12-24 14:16:35 +00:00
|
|
|
-16, -16, -16, -16, -16, -16, -45, -16, 147, -115,
|
|
|
|
-58, -21, -21, -17, -116, 10, -100, 146, 146, 10,
|
|
|
|
148, -91, 56, -93, 56, 59, -16, 153, -16, -16,
|
2018-06-06 23:25:27 +00:00
|
|
|
-16, -16, -16, -16, -16, -16, -16, -16, -16, -16,
|
2019-12-24 14:16:35 +00:00
|
|
|
-107, -40, -21, 60, 83, -96, 79, 79, 149, 149,
|
|
|
|
149, 149, -15, -16, -15, 143, -35, -35, 17, 150,
|
|
|
|
58, -16, 11, -21, -143, -144, -42, -41, -12, -148,
|
|
|
|
10, 144, -81, -82, 79, 83, -96, 58, -12, 79,
|
|
|
|
-104, -38, -21, -17, -21, -16, -16, -15, 142, 76,
|
|
|
|
76, -15, -106, 151, -3, 160, 59, -19, -21, -15,
|
|
|
|
-15, 10, 149, -127, -52, -70, -17, -21, 153, 84,
|
|
|
|
-82, -41, -42, 10, 53, -15, -16, -41, -42, 10,
|
|
|
|
-16, 146, -95, 145, -82, -6, 146, 160, 29, -96,
|
|
|
|
146, 160, 29, -96, 10, 29, 162, -30, -79, -9,
|
|
|
|
-33, -96, 80, 83, 61, 150, -10, 63, -80, 18,
|
|
|
|
75, -13, 156, 157, 155, 154, 148, 148, -109, -100,
|
|
|
|
-100, -50, 146, 160, -113, 146, -113, 146, -29, -16,
|
|
|
|
12, 148, -30, -16, 147, -16, 149, 160, 29, 29,
|
|
|
|
149, 160, 162, 145, 148, -120, -121, -65, -64, 61,
|
|
|
|
62, -47, -96, 80, 83, -92, 57, -47, 144, -126,
|
|
|
|
-47, -17, -21, -21, 92, 149, 160, 148, -96, -139,
|
|
|
|
-137, -136, -138, 150, -140, 58, 151, 151, -36, 10,
|
|
|
|
13, 12, 10, 145, 145, 150, 145, -141, -78, -142,
|
|
|
|
-82, 150, 144, -12, -16, -42, -96, -143, -42, 149,
|
|
|
|
160, 149, 149, 149, 151, 151, 149, -16, 153, -16,
|
|
|
|
153, 151, 151, 149, 160, 149, -19, -16, -82, -82,
|
|
|
|
151, 145, -82, -82, 145, 145, -7, 10, 29, -8,
|
|
|
|
10, 29, 10, -30, 150, 155, 154, 164, 133, 165,
|
|
|
|
166, 161, 153, 163, 134, 135, 169, 89, 90, 88,
|
|
|
|
132, 131, 136, 137, 138, 139, 167, 168, 140, 141,
|
|
|
|
152, 83, -96, 148, -134, -135, -79, 17, 79, -79,
|
|
|
|
-79, -79, -79, -79, 149, -56, 94, 95, -110, 22,
|
|
|
|
146, -112, -16, 145, 32, 33, -113, 31, -113, 145,
|
|
|
|
162, -120, -16, 146, -58, -89, -21, 153, 60, -89,
|
|
|
|
-59, -27, 147, 10, -30, -117, 42, -120, 149, 160,
|
|
|
|
-149, 83, -96, 144, -126, -122, 160, -45, 162, -40,
|
|
|
|
-107, 150, -138, -140, -15, -143, 151, -16, -147, 150,
|
|
|
|
150, -15, -16, 145, -146, -38, 59, -19, -19, -70,
|
2018-06-06 23:25:27 +00:00
|
|
|
10, 10, -79, -79, -79, -79, -79, -79, -79, -79,
|
|
|
|
-79, -79, -79, -79, -79, -79, -79, -79, -79, -79,
|
2019-12-24 14:16:35 +00:00
|
|
|
-79, -79, -79, -79, -79, -79, -79, -79, 147, -79,
|
|
|
|
-96, -134, 151, -3, 160, 59, 10, 53, 149, 146,
|
|
|
|
-50, -27, -57, 94, 95, 146, 146, -16, -4, 147,
|
|
|
|
146, 145, 146, 31, -30, 149, -90, 59, -21, 148,
|
|
|
|
-90, -100, 162, -60, 43, 148, 149, -94, 45, -65,
|
|
|
|
-150, 84, -96, -122, 145, -67, -123, -68, -69, -124,
|
|
|
|
-132, 48, 39, 45, -77, 104, 103, 102, 99, 100,
|
|
|
|
101, -47, -81, -16, 149, -15, 151, -141, 151, -140,
|
|
|
|
-15, -15, 151, 145, -145, 58, -16, 153, 151, -79,
|
|
|
|
147, 149, -79, -79, -27, 96, -50, 147, -112, -4,
|
|
|
|
-100, 146, -94, 149, -89, -107, 149, 28, -30, 144,
|
|
|
|
-47, 144, 144, 148, 12, 145, -125, 12, 146, 160,
|
|
|
|
-1, -77, 10, -128, -47, 151, 145, 151, 151, -143,
|
|
|
|
-19, -79, 59, 146, 147, -100, 149, -100, 144, -86,
|
|
|
|
-27, 147, 149, -86, 146, -100, 12, -100, -100, -108,
|
|
|
|
12, 153, 162, 146, 160, 162, 10, -149, 162, -83,
|
|
|
|
160, 146, 144, -79, -100, -87, -27, 147, -100, -100,
|
|
|
|
145, 149, 145, 145, 149, 160, 12, -30, 12, -30,
|
|
|
|
162, 10, -30, -47, -129, -130, -71, -72, -73, -74,
|
|
|
|
-75, -47, 10, -100, 145, 26, 144, 12, 153, 162,
|
|
|
|
-30, 148, 145, -71, 146, 146, 46, 29, 79, 24,
|
|
|
|
146, -100, 12, -30, -120, -131, -47, -76, -77, 10,
|
|
|
|
146, 145, 149, 160, 10, -118, -119, -61, 42, -85,
|
|
|
|
146, 144, -47, -61, 148, -100, -47, 145, 12, 149,
|
|
|
|
144, -100, 145,
|
2017-11-23 15:33:47 +00:00
|
|
|
}
|
|
|
|
var yyDef = [...]int{
|
|
|
|
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2018-01-29 14:11:45 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 39, 0, 0,
|
|
|
|
0, 90, 100, 103, -2, -2, 0, 97, 99, 0,
|
2018-01-29 14:11:45 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2018-06-06 23:25:27 +00:00
|
|
|
341, -2, 0, 0, 0, 0, 508, 509, 0, 511,
|
|
|
|
512, 465, 0, 0, 0, 364, 0, 465, 481, 0,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2018-06-06 23:25:27 +00:00
|
|
|
0, 513, -2, -2, -2, 0, 0, 0, 418, 363,
|
2018-04-09 20:08:29 +00:00
|
|
|
419, 0, 0, 315, 482, 424, 0, 490, 434, 0,
|
|
|
|
0, 5, 151, 0, 0, 154, -2, -2, 0, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
325, 0, 449, -2, 520, 0, 0, 0, 450, -2,
|
2018-04-09 20:08:29 +00:00
|
|
|
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,
|
2018-06-06 23:25:27 +00:00
|
|
|
230, 227, 228, 465, 223, 0, 311, 310, 0, 502,
|
|
|
|
503, 504, 497, 498, 499, 0, 501, 439, 444, 445,
|
|
|
|
443, 465, 0, 448, 0, 449, 333, 343, 450, 505,
|
|
|
|
0, 506, 507, 510, 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,
|
2018-01-29 14:11:45 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2018-02-03 17:33:22 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2018-06-06 23:25:27 +00:00
|
|
|
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, 514, 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, 519, 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, 500, 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,
|
2017-11-23 15:33:47 +00:00
|
|
|
}
|
|
|
|
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,
|
2019-12-24 14:16:35 +00:00
|
|
|
3, 3, 3, 156, 142, 3, 159, 166, 153, 3,
|
|
|
|
148, 149, 164, 155, 160, 154, 169, 165, 3, 3,
|
|
|
|
3, 3, 3, 3, 3, 3, 3, 3, 147, 146,
|
|
|
|
167, 162, 168, 152, 158, 3, 3, 3, 3, 3,
|
2017-11-23 15:33:47 +00:00
|
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
2019-12-24 14:16:35 +00:00
|
|
|
3, 150, 3, 151, 163, 3, 143, 3, 3, 3,
|
2017-11-23 15:33:47 +00:00
|
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
2019-12-24 14:16:35 +00:00
|
|
|
3, 3, 3, 144, 161, 145, 157,
|
2017-11-23 15:33:47 +00:00
|
|
|
}
|
|
|
|
var yyTok2 = [...]int{
|
|
|
|
|
2018-01-29 14:11:45 +00:00
|
|
|
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,
|
2018-05-27 15:02:58 +00:00
|
|
|
112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
|
|
|
|
122, 123, 124, 125, 126, 127, 128, 129, 130, 131,
|
2019-12-24 14:16:35 +00:00
|
|
|
132, 133, 134, 135, 136, 137, 138, 139, 140, 141,
|
2017-11-23 15:33:47 +00:00
|
|
|
}
|
|
|
|
var yyTok3 = [...]int{
|
|
|
|
0,
|
|
|
|
}
|
|
|
|
|
|
|
|
var yyErrorMessages = [...]struct {
|
|
|
|
state int
|
|
|
|
token int
|
|
|
|
msg string
|
|
|
|
}{}
|
|
|
|
|
2020-01-08 07:47:23 +00:00
|
|
|
// line yaccpar:1
|
2017-11-24 01:36:58 +00:00
|
|
|
|
2017-11-23 15:33:47 +00:00
|
|
|
/* parser for yacc output */
|
|
|
|
|
|
|
|
var (
|
|
|
|
yyDebug = 0
|
2018-06-06 16:47:28 +00:00
|
|
|
yyErrorVerbose = true
|
2017-11-23 15:33:47 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
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]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:275
|
2017-11-23 15:33:47 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yylex.(*Parser).rootNode = &ast.Root{ast.Node{}, yyDollar[1].list}
|
2020-06-29 11:38:10 +00:00
|
|
|
yylex.(*Parser).rootNode.GetNode().Position = position.NewNodeListPosition(yyDollar[1].list)
|
2018-06-10 23:41:12 +00:00
|
|
|
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yylex.(*Parser).rootNode, token.End, yylex.(*Parser).currentToken.SkippedTokens)
|
2017-11-23 15:33:47 +00:00
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
case 2:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:285
|
2018-01-29 14:11:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
if inlineHtmlNode, ok := yyDollar[2].node.(*ast.StmtInlineHtml); ok && len(yyDollar[1].list) > 0 {
|
2018-12-17 13:24:13 +00:00
|
|
|
prevNode := lastNode(yyDollar[1].list)
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).splitSemiColonAndPhpCloseTag(inlineHtmlNode, prevNode)
|
2018-12-17 13:24:13 +00:00
|
|
|
}
|
|
|
|
|
2018-04-09 20:08:29 +00:00
|
|
|
if yyDollar[2].node != nil {
|
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].node)
|
|
|
|
}
|
2018-01-29 14:11:45 +00:00
|
|
|
}
|
|
|
|
case 3:
|
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:296
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
|
|
|
case 4:
|
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:303
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
yyVAL.list = []ast.Vertex{
|
|
|
|
&ast.NameNamePart{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenPosition(yyDollar[1].token),
|
|
|
|
},
|
|
|
|
StringTkn: yyDollar[1].token,
|
|
|
|
Value: yyDollar[1].token.Value,
|
|
|
|
},
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
|
|
|
case 5:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:315
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, &ast.NameNamePart{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[2].token, yyDollar[3].token),
|
|
|
|
},
|
|
|
|
NsSeparatorTkn: yyDollar[2].token,
|
|
|
|
StringTkn: yyDollar[3].token,
|
|
|
|
Value: yyDollar[3].token.Value,
|
|
|
|
})
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
|
|
|
case 6:
|
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:329
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2018-04-09 20:08:29 +00:00
|
|
|
// error
|
|
|
|
yyVAL.node = nil
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
|
|
|
case 7:
|
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:334
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2018-02-03 10:09:02 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
|
|
|
case 8:
|
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:338
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2018-02-03 10:09:02 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
|
|
|
case 9:
|
2018-04-09 20:08:29 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:342
|
2018-04-09 20:08:29 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = yyDollar[1].node
|
|
|
|
}
|
|
|
|
case 10:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:346
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-08-24 18:41:06 +00:00
|
|
|
yyVAL.node = &ast.StmtHaltCompiler{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token),
|
|
|
|
},
|
|
|
|
HaltCompilerTkn: yyDollar[1].token,
|
|
|
|
OpenParenthesisTkn: yyDollar[2].token,
|
|
|
|
CloseParenthesisTkn: yyDollar[3].token,
|
|
|
|
SemiColonTkn: yyDollar[4].token,
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 11:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:358
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
yyVAL.node = &ast.StmtNamespace{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token),
|
|
|
|
},
|
|
|
|
NsTkn: yyDollar[1].token,
|
|
|
|
Name: &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[2].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[2].list,
|
|
|
|
},
|
|
|
|
SemiColonTkn: yyDollar[3].token,
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 12:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:374
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
yyVAL.node = &ast.StmtNamespace{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[5].token),
|
|
|
|
},
|
|
|
|
NsTkn: yyDollar[1].token,
|
|
|
|
Name: &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[2].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[2].list,
|
|
|
|
},
|
|
|
|
OpenCurlyBracket: yyDollar[3].token,
|
|
|
|
Stmts: yyDollar[4].list,
|
|
|
|
CloseCurlyBracket: yyDollar[5].token,
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 13:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:392
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
yyVAL.node = &ast.StmtNamespace{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token),
|
|
|
|
},
|
|
|
|
NsTkn: yyDollar[1].token,
|
|
|
|
OpenCurlyBracket: yyDollar[2].token,
|
|
|
|
Stmts: yyDollar[3].list,
|
|
|
|
CloseCurlyBracket: yyDollar[4].token,
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 14:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:404
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-08-22 13:59:26 +00:00
|
|
|
yyVAL.node = &ast.StmtUse{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token),
|
|
|
|
},
|
|
|
|
UseTkn: yyDollar[1].token,
|
|
|
|
UseDeclarations: yyDollar[2].list,
|
|
|
|
SemiColonTkn: yyDollar[3].token,
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 15:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:415
|
2020-08-22 13:59:26 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = &ast.StmtUse{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token),
|
|
|
|
},
|
|
|
|
UseTkn: yyDollar[1].token,
|
|
|
|
Type: &ast.Identifier{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenPosition(yyDollar[2].token),
|
|
|
|
},
|
|
|
|
Value: yyDollar[2].token.Value,
|
|
|
|
},
|
|
|
|
UseDeclarations: yyDollar[3].list,
|
|
|
|
SemiColonTkn: yyDollar[4].token,
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 16:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:432
|
2020-08-22 13:59:26 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = &ast.StmtUse{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token),
|
|
|
|
},
|
|
|
|
UseTkn: yyDollar[1].token,
|
|
|
|
Type: &ast.Identifier{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenPosition(yyDollar[2].token),
|
|
|
|
},
|
|
|
|
Value: yyDollar[2].token.Value,
|
|
|
|
},
|
|
|
|
UseDeclarations: yyDollar[3].list,
|
|
|
|
SemiColonTkn: yyDollar[4].token,
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 17:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:449
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-08-24 20:28:44 +00:00
|
|
|
yyDollar[1].node.(*ast.StmtConstList).SemiColonTkn = yyDollar[2].token
|
|
|
|
yyDollar[1].node.(*ast.StmtConstList).Node.Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[2].token)
|
2018-02-03 10:09:02 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 18:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:458
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-08-22 13:59:26 +00:00
|
|
|
yyDollar[1].list[len(yyDollar[1].list)-1].(*ast.StmtUseDeclaration).CommaTkn = yyDollar[2].token
|
2018-06-06 23:25:27 +00:00
|
|
|
|
2020-08-22 13:59:26 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 19:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:464
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 20:
|
2017-11-29 21:53:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:471
|
2020-08-22 13:59:26 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = &ast.StmtUseDeclaration{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[1].list),
|
|
|
|
},
|
|
|
|
Use: &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[1].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[1].list,
|
|
|
|
},
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 21:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:485
|
2020-08-22 13:59:26 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = &ast.StmtUseDeclaration{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListTokenPosition(yyDollar[1].list, yyDollar[3].token),
|
|
|
|
},
|
|
|
|
Use: &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[1].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[1].list,
|
|
|
|
},
|
|
|
|
AsTkn: yyDollar[2].token,
|
|
|
|
Alias: &ast.Identifier{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenPosition(yyDollar[3].token),
|
|
|
|
},
|
|
|
|
Value: yyDollar[3].token.Value,
|
|
|
|
},
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 22:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:506
|
2020-08-22 13:59:26 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = &ast.StmtUseDeclaration{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list),
|
|
|
|
},
|
|
|
|
NsSeparatorTkn: yyDollar[1].token,
|
|
|
|
Use: &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[2].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[2].list,
|
|
|
|
},
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 23:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:521
|
2020-08-22 13:59:26 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = &ast.StmtUseDeclaration{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token),
|
|
|
|
},
|
|
|
|
NsSeparatorTkn: yyDollar[1].token,
|
|
|
|
Use: &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[2].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[2].list,
|
|
|
|
},
|
|
|
|
AsTkn: yyDollar[3].token,
|
|
|
|
Alias: &ast.Identifier{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenPosition(yyDollar[4].token),
|
|
|
|
},
|
|
|
|
Value: yyDollar[4].token.Value,
|
|
|
|
},
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 24:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:546
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-08-22 13:59:26 +00:00
|
|
|
yyDollar[1].list[len(yyDollar[1].list)-1].(*ast.StmtUseDeclaration).CommaTkn = yyDollar[2].token
|
2018-06-06 23:25:27 +00:00
|
|
|
|
2020-08-22 13:59:26 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 25:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:552
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 26:
|
2017-11-29 21:53:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:559
|
2020-08-22 13:59:26 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = &ast.StmtUseDeclaration{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[1].list),
|
|
|
|
},
|
|
|
|
Use: &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[1].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[1].list,
|
|
|
|
},
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 27:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:573
|
2020-08-22 13:59:26 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = &ast.StmtUseDeclaration{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListTokenPosition(yyDollar[1].list, yyDollar[3].token),
|
|
|
|
},
|
|
|
|
Use: &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[1].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[1].list,
|
|
|
|
},
|
|
|
|
AsTkn: yyDollar[2].token,
|
|
|
|
Alias: &ast.Identifier{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenPosition(yyDollar[3].token),
|
|
|
|
},
|
|
|
|
Value: yyDollar[3].token.Value,
|
|
|
|
},
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 28:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:594
|
2020-08-22 13:59:26 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = &ast.StmtUseDeclaration{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list),
|
|
|
|
},
|
|
|
|
NsSeparatorTkn: yyDollar[1].token,
|
|
|
|
Use: &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[2].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[2].list,
|
|
|
|
},
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 29:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:609
|
2020-08-22 13:59:26 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = &ast.StmtUseDeclaration{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token),
|
|
|
|
},
|
|
|
|
NsSeparatorTkn: yyDollar[1].token,
|
|
|
|
Use: &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[2].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[2].list,
|
|
|
|
},
|
|
|
|
AsTkn: yyDollar[3].token,
|
|
|
|
Alias: &ast.Identifier{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenPosition(yyDollar[4].token),
|
|
|
|
},
|
|
|
|
Value: yyDollar[4].token.Value,
|
|
|
|
},
|
|
|
|
}
|
2018-01-29 14:11:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 30:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:634
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-08-22 13:59:26 +00:00
|
|
|
yyDollar[1].list[len(yyDollar[1].list)-1].(*ast.StmtUseDeclaration).CommaTkn = yyDollar[2].token
|
2018-06-06 23:25:27 +00:00
|
|
|
|
2020-08-22 13:59:26 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 31:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:640
|
2018-01-29 14:11:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2018-01-29 14:11:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 32:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:647
|
2020-08-22 13:59:26 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = &ast.StmtUseDeclaration{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[1].list),
|
|
|
|
},
|
|
|
|
Use: &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[1].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[1].list,
|
|
|
|
},
|
|
|
|
}
|
2018-01-29 14:11:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 33:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:661
|
2020-08-22 13:59:26 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = &ast.StmtUseDeclaration{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListTokenPosition(yyDollar[1].list, yyDollar[3].token),
|
|
|
|
},
|
|
|
|
Use: &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[1].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[1].list,
|
|
|
|
},
|
|
|
|
AsTkn: yyDollar[2].token,
|
|
|
|
Alias: &ast.Identifier{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenPosition(yyDollar[3].token),
|
|
|
|
},
|
|
|
|
Value: yyDollar[3].token.Value,
|
|
|
|
},
|
|
|
|
}
|
2018-01-29 14:11:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 34:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:682
|
2020-08-22 13:59:26 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = &ast.StmtUseDeclaration{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list),
|
|
|
|
},
|
|
|
|
NsSeparatorTkn: yyDollar[1].token,
|
|
|
|
Use: &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[2].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[2].list,
|
|
|
|
},
|
|
|
|
}
|
2018-01-29 14:11:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 35:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:697
|
2020-08-22 13:59:26 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = &ast.StmtUseDeclaration{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token),
|
|
|
|
},
|
|
|
|
NsSeparatorTkn: yyDollar[1].token,
|
|
|
|
Use: &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[2].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[2].list,
|
|
|
|
},
|
|
|
|
AsTkn: yyDollar[3].token,
|
|
|
|
Alias: &ast.Identifier{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenPosition(yyDollar[4].token),
|
|
|
|
},
|
|
|
|
Value: yyDollar[4].token.Value,
|
|
|
|
},
|
|
|
|
}
|
2018-01-29 14:11:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 36:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:722
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
constList := yyDollar[1].node.(*ast.StmtConstList)
|
2020-08-24 20:28:44 +00:00
|
|
|
constList.Node.Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[5].node)
|
|
|
|
lastNode(constList.Consts).(*ast.StmtConstant).CommaTkn = yyDollar[2].token
|
|
|
|
constList.Consts = append(constList.Consts, &ast.StmtConstant{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodePosition(yyDollar[3].token, yyDollar[5].node),
|
|
|
|
},
|
|
|
|
Name: &ast.Identifier{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenPosition(yyDollar[3].token),
|
|
|
|
},
|
|
|
|
Value: yyDollar[3].token.Value,
|
|
|
|
},
|
|
|
|
EqualTkn: yyDollar[4].token,
|
|
|
|
Expr: yyDollar[5].node,
|
|
|
|
})
|
2018-06-06 23:25:27 +00:00
|
|
|
|
2020-08-24 20:28:44 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-06-06 23:25:27 +00:00
|
|
|
|
2020-08-24 20:28:44 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyVAL.node.(*ast.StmtConstList).Consts).(*ast.StmtConstant).Name, token.Start, yyDollar[3].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 37:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:745
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-08-24 20:28:44 +00:00
|
|
|
yyVAL.node = &ast.StmtConstList{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodePosition(yyDollar[1].token, yyDollar[4].node),
|
|
|
|
},
|
|
|
|
ConstTkn: yyDollar[1].token,
|
|
|
|
Consts: []ast.Vertex{
|
|
|
|
&ast.StmtConstant{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodePosition(yyDollar[2].token, yyDollar[4].node),
|
|
|
|
},
|
|
|
|
Name: &ast.Identifier{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenPosition(yyDollar[2].token),
|
|
|
|
},
|
|
|
|
Value: yyDollar[2].token.Value,
|
|
|
|
},
|
|
|
|
EqualTkn: yyDollar[3].token,
|
|
|
|
Expr: yyDollar[4].node,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
2020-08-24 20:28:44 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyVAL.node.(*ast.StmtConstList).Consts).(*ast.StmtConstant).Name, token.Start, yyDollar[2].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 38:
|
2018-01-29 19:12:12 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:774
|
2018-01-29 19:12:12 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
if inlineHtmlNode, ok := yyDollar[2].node.(*ast.StmtInlineHtml); ok && len(yyDollar[1].list) > 0 {
|
2018-12-17 13:24:13 +00:00
|
|
|
prevNode := lastNode(yyDollar[1].list)
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).splitSemiColonAndPhpCloseTag(inlineHtmlNode, prevNode)
|
2018-12-17 13:24:13 +00:00
|
|
|
}
|
|
|
|
|
2018-04-09 20:08:29 +00:00
|
|
|
if yyDollar[2].node != nil {
|
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].node)
|
|
|
|
}
|
2018-01-29 19:12:12 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 39:
|
2018-01-29 19:12:12 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:785
|
2018-01-29 19:12:12 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{}
|
2018-01-29 19:12:12 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 40:
|
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:793
|
2018-04-09 20:08:29 +00:00
|
|
|
{
|
|
|
|
// error
|
|
|
|
yyVAL.node = nil
|
|
|
|
}
|
|
|
|
case 41:
|
2018-01-29 19:12:12 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:798
|
2018-01-29 19:12:12 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = yyDollar[1].node
|
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 42:
|
2018-01-29 19:12:12 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:802
|
2018-01-29 19:12:12 +00:00
|
|
|
{
|
2018-02-03 10:09:02 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-01-29 19:12:12 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 43:
|
2017-11-29 21:53:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:806
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2018-02-03 10:09:02 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 44:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:810
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-08-24 18:41:06 +00:00
|
|
|
yyVAL.node = &ast.StmtHaltCompiler{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token),
|
|
|
|
},
|
|
|
|
HaltCompilerTkn: yyDollar[1].token,
|
|
|
|
OpenParenthesisTkn: yyDollar[2].token,
|
|
|
|
CloseParenthesisTkn: yyDollar[3].token,
|
|
|
|
SemiColonTkn: yyDollar[4].token,
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 45:
|
2017-11-29 21:53:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:826
|
2018-01-29 14:11:45 +00:00
|
|
|
{
|
2018-01-29 19:12:12 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-01-29 14:11:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 46:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:830
|
2018-01-29 19:12:12 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
label := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
|
|
|
yyVAL.node = &ast.StmtLabel{ast.Node{}, label}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
label.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[2].token)
|
2018-02-03 10:09:02 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Label, yyDollar[2].token.SkippedTokens)
|
2018-01-29 19:12:12 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 47:
|
2018-01-29 19:12:12 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:846
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-09-02 19:58:19 +00:00
|
|
|
yyVAL.node = &ast.StmtStmtList{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token),
|
|
|
|
},
|
|
|
|
OpenCurlyBracket: yyDollar[1].token,
|
|
|
|
Stmts: yyDollar[2].list,
|
|
|
|
CloseCurlyBracket: yyDollar[3].token,
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 48:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:857
|
2018-01-29 14:11:45 +00:00
|
|
|
{
|
2020-09-03 19:18:06 +00:00
|
|
|
pos := position.NewTokenNodePosition(yyDollar[1].token, yyDollar[3].node)
|
2018-02-03 12:29:23 +00:00
|
|
|
if yyDollar[5].node != nil {
|
2020-09-03 19:18:06 +00:00
|
|
|
pos = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[5].node)
|
2018-02-03 12:29:23 +00:00
|
|
|
} else if len(yyDollar[4].list) > 0 {
|
2020-09-03 19:18:06 +00:00
|
|
|
pos = position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[4].list)
|
2018-02-03 12:29:23 +00:00
|
|
|
}
|
|
|
|
|
2020-09-03 19:18:06 +00:00
|
|
|
yyVAL.node = &ast.StmtIf{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: pos,
|
|
|
|
},
|
|
|
|
IfTkn: yyDollar[1].token,
|
|
|
|
OpenParenthesisTkn: yyDollar[2].node.(*ast.ParserBrackets).OpenBracketTkn,
|
|
|
|
Cond: yyDollar[2].node.(*ast.ParserBrackets).Child,
|
|
|
|
CloseParenthesisTkn: yyDollar[2].node.(*ast.ParserBrackets).CloseBracketTkn,
|
|
|
|
Stmt: yyDollar[3].node,
|
|
|
|
ElseIf: yyDollar[4].list,
|
|
|
|
Else: yyDollar[5].node,
|
|
|
|
}
|
2018-01-29 14:11:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 49:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-8 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:879
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-09-03 19:18:06 +00:00
|
|
|
yyVAL.node = &ast.StmtIf{
|
2020-09-02 19:58:19 +00:00
|
|
|
Node: ast.Node{
|
2020-09-03 19:18:06 +00:00
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[8].token),
|
2020-09-02 19:58:19 +00:00
|
|
|
},
|
2020-09-03 19:18:06 +00:00
|
|
|
Alt: true,
|
|
|
|
IfTkn: yyDollar[1].token,
|
|
|
|
OpenParenthesisTkn: yyDollar[2].node.(*ast.ParserBrackets).OpenBracketTkn,
|
|
|
|
Cond: yyDollar[2].node.(*ast.ParserBrackets).Child,
|
|
|
|
CloseParenthesisTkn: yyDollar[2].node.(*ast.ParserBrackets).CloseBracketTkn,
|
|
|
|
ColonTkn: yyDollar[3].token,
|
|
|
|
Stmt: &ast.StmtStmtList{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[4].list),
|
|
|
|
},
|
|
|
|
Stmts: yyDollar[4].list,
|
|
|
|
},
|
|
|
|
ElseIf: yyDollar[5].list,
|
|
|
|
Else: yyDollar[6].node,
|
|
|
|
EndIfTkn: yyDollar[7].token,
|
|
|
|
SemiColonTkn: yyDollar[8].token,
|
2020-08-09 12:41:56 +00:00
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 50:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:903
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-09-04 07:33:47 +00:00
|
|
|
yyDollar[3].node.(*ast.StmtWhile).WhileTkn = yyDollar[1].token
|
|
|
|
yyDollar[3].node.(*ast.StmtWhile).OpenParenthesisTkn = yyDollar[2].node.(*ast.ParserBrackets).OpenBracketTkn
|
|
|
|
yyDollar[3].node.(*ast.StmtWhile).Cond = yyDollar[2].node.(*ast.ParserBrackets).Child
|
|
|
|
yyDollar[3].node.(*ast.StmtWhile).CloseParenthesisTkn = yyDollar[2].node.(*ast.ParserBrackets).CloseBracketTkn
|
|
|
|
yyDollar[3].node.(*ast.StmtWhile).Node.Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[3].node)
|
2018-05-02 00:36:53 +00:00
|
|
|
|
|
|
|
yyVAL.node = yyDollar[3].node
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 51:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 07:33:47 +00:00
|
|
|
// line internal/php5/php5.y:913
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-09-04 07:53:07 +00:00
|
|
|
yyVAL.node = &ast.StmtDo{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[5].token),
|
|
|
|
},
|
|
|
|
DoTkn: yyDollar[1].token,
|
|
|
|
Stmt: yyDollar[2].node,
|
|
|
|
WhileTkn: yyDollar[3].token,
|
|
|
|
OpenParenthesisTkn: yyDollar[4].node.(*ast.ParserBrackets).OpenBracketTkn,
|
|
|
|
Cond: yyDollar[4].node.(*ast.ParserBrackets).Child,
|
|
|
|
CloseParenthesisTkn: yyDollar[4].node.(*ast.ParserBrackets).CloseBracketTkn,
|
|
|
|
SemiColonTkn: yyDollar[5].token,
|
|
|
|
}
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 52:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-9 : yypt+1]
|
2020-09-04 07:53:07 +00:00
|
|
|
// line internal/php5/php5.y:928
|
2018-05-02 00:36:53 +00:00
|
|
|
{
|
2020-09-04 08:37:17 +00:00
|
|
|
yyDollar[9].node.(*ast.StmtFor).ForTkn = yyDollar[1].token
|
|
|
|
yyDollar[9].node.(*ast.StmtFor).OpenParenthesisTkn = yyDollar[2].token
|
|
|
|
yyDollar[9].node.(*ast.StmtFor).Init = yyDollar[3].list
|
|
|
|
yyDollar[9].node.(*ast.StmtFor).InitSemiColonTkn = yyDollar[4].token
|
|
|
|
yyDollar[9].node.(*ast.StmtFor).Cond = yyDollar[5].list
|
|
|
|
yyDollar[9].node.(*ast.StmtFor).CondSemiColonTkn = yyDollar[6].token
|
|
|
|
yyDollar[9].node.(*ast.StmtFor).Loop = yyDollar[7].list
|
|
|
|
yyDollar[9].node.(*ast.StmtFor).CloseParenthesisTkn = yyDollar[8].token
|
|
|
|
yyDollar[9].node.(*ast.StmtFor).Node.Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[9].node)
|
2018-05-02 00:36:53 +00:00
|
|
|
|
|
|
|
yyVAL.node = yyDollar[9].node
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 53:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:942
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2018-04-29 20:10:56 +00:00
|
|
|
switch n := yyDollar[3].node.(type) {
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.StmtSwitch:
|
2018-04-29 20:10:56 +00:00
|
|
|
n.Cond = yyDollar[2].node
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.StmtAltSwitch:
|
2018-04-29 20:10:56 +00:00
|
|
|
n.Cond = yyDollar[2].node
|
|
|
|
default:
|
|
|
|
panic("unexpected node type")
|
2018-02-18 18:39:41 +00:00
|
|
|
}
|
2018-04-29 20:10:56 +00:00
|
|
|
|
|
|
|
yyVAL.node = yyDollar[3].node
|
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 54:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:961
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtBreak{ast.Node{}, nil}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[2].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[2].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 55:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:973
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtBreak{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[3].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 56:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:985
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtContinue{ast.Node{}, nil}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[2].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[2].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 57:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:997
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtContinue{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[3].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 58:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1009
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtReturn{ast.Node{}, nil}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[2].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[2].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 59:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1021
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtReturn{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[3].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 60:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1033
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtReturn{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[3].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 61:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1045
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtExpression{ast.Node{}, yyDollar[1].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[2].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[2].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 62:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1057
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtGlobal{ast.Node{}, yyDollar[2].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.VarList, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[3].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 63:
|
2018-02-03 10:09:02 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1069
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtStatic{ast.Node{}, yyDollar[2].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.VarList, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[3].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 64:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1081
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtEcho{ast.Node{}, yyDollar[2].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.Echo, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[3].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 65:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1094
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtInlineHtml{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 66:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1104
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtExpression{ast.Node{}, yyDollar[1].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[2].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[2].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 67:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1116
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtUnset{ast.Node{}, yyDollar[3].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[5].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Unset, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.VarList, yyDollar[4].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.CloseParenthesisToken, yyDollar[5].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[5].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 68:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-8 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1130
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2018-05-14 15:09:11 +00:00
|
|
|
if yyDollar[6].node == nil {
|
2018-05-02 00:36:53 +00:00
|
|
|
switch n := yyDollar[8].node.(type) {
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.StmtForeach:
|
2018-05-02 00:36:53 +00:00
|
|
|
n.Expr = yyDollar[3].node
|
2020-05-13 17:18:53 +00:00
|
|
|
n.Var = yyDollar[5].node
|
|
|
|
case *ast.StmtAltForeach:
|
2018-05-02 00:36:53 +00:00
|
|
|
n.Expr = yyDollar[3].node
|
2020-05-13 17:18:53 +00:00
|
|
|
n.Var = yyDollar[5].node
|
2018-02-18 18:29:33 +00:00
|
|
|
}
|
2018-02-03 12:41:34 +00:00
|
|
|
} else {
|
2018-05-02 00:36:53 +00:00
|
|
|
switch n := yyDollar[8].node.(type) {
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.StmtForeach:
|
2018-05-02 00:36:53 +00:00
|
|
|
n.Expr = yyDollar[3].node
|
2018-05-14 15:09:11 +00:00
|
|
|
n.Key = yyDollar[5].node
|
2020-05-13 17:18:53 +00:00
|
|
|
n.Var = yyDollar[6].node
|
|
|
|
case *ast.StmtAltForeach:
|
2018-05-02 00:36:53 +00:00
|
|
|
n.Expr = yyDollar[3].node
|
2018-05-14 15:09:11 +00:00
|
|
|
n.Key = yyDollar[5].node
|
2020-05-13 17:18:53 +00:00
|
|
|
n.Var = yyDollar[6].node
|
2018-02-18 18:29:33 +00:00
|
|
|
}
|
2018-02-03 12:41:34 +00:00
|
|
|
}
|
2018-05-02 00:36:53 +00:00
|
|
|
|
|
|
|
yyVAL.node = yyDollar[8].node
|
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[8].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Foreach, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[4].token.SkippedTokens)
|
2018-07-29 08:44:38 +00:00
|
|
|
if yyDollar[6].node != nil {
|
2020-07-02 21:20:32 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Key, yyDollar[6].node.GetNode().Tokens[token.Key])
|
2020-05-13 17:18:53 +00:00
|
|
|
delete(yyDollar[6].node.GetNode().Tokens, token.Key)
|
2018-07-29 08:44:38 +00:00
|
|
|
}
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[7].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 69:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-8 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1168
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2018-05-14 15:09:11 +00:00
|
|
|
if yyDollar[6].node == nil {
|
2018-05-02 00:36:53 +00:00
|
|
|
switch n := yyDollar[8].node.(type) {
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.StmtForeach:
|
2018-05-02 00:36:53 +00:00
|
|
|
n.Expr = yyDollar[3].node
|
2020-05-13 17:18:53 +00:00
|
|
|
n.Var = yyDollar[5].node
|
|
|
|
case *ast.StmtAltForeach:
|
2018-05-02 00:36:53 +00:00
|
|
|
n.Expr = yyDollar[3].node
|
2020-05-13 17:18:53 +00:00
|
|
|
n.Var = yyDollar[5].node
|
2018-02-18 18:29:33 +00:00
|
|
|
}
|
2018-02-03 12:41:34 +00:00
|
|
|
} else {
|
2018-05-02 00:36:53 +00:00
|
|
|
switch n := yyDollar[8].node.(type) {
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.StmtForeach:
|
2018-05-02 00:36:53 +00:00
|
|
|
n.Expr = yyDollar[3].node
|
2018-05-14 15:09:11 +00:00
|
|
|
n.Key = yyDollar[5].node
|
2020-05-13 17:18:53 +00:00
|
|
|
n.Var = yyDollar[6].node
|
|
|
|
case *ast.StmtAltForeach:
|
2018-05-02 00:36:53 +00:00
|
|
|
n.Expr = yyDollar[3].node
|
2018-05-14 15:09:11 +00:00
|
|
|
n.Key = yyDollar[5].node
|
2020-05-13 17:18:53 +00:00
|
|
|
n.Var = yyDollar[6].node
|
2018-02-18 18:29:33 +00:00
|
|
|
}
|
2018-02-03 12:41:34 +00:00
|
|
|
}
|
2018-05-02 00:36:53 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2018-05-02 00:36:53 +00:00
|
|
|
yyVAL.node = yyDollar[8].node
|
|
|
|
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[8].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Foreach, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[4].token.SkippedTokens)
|
2018-07-29 08:44:38 +00:00
|
|
|
if yyDollar[6].node != nil {
|
2020-07-02 21:20:32 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Key, yyDollar[6].node.GetNode().Tokens[token.Key])
|
2020-05-13 17:18:53 +00:00
|
|
|
delete(yyDollar[6].node.GetNode().Tokens, token.Key)
|
2018-07-29 08:44:38 +00:00
|
|
|
}
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[7].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 70:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1206
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2018-07-29 08:44:38 +00:00
|
|
|
yyVAL.node = yyDollar[5].node
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node.(*ast.StmtDeclare).Consts = yyDollar[3].list
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[5].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Declare, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.ConstList, yyDollar[4].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 71:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1219
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtNop{ast.Node{}}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[1].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 72:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-6 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1230
|
2017-11-29 21:53:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtTry{ast.Node{}, yyDollar[3].list, yyDollar[5].list, yyDollar[6].node}
|
2018-02-03 13:24:00 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2018-02-03 13:24:00 +00:00
|
|
|
if yyDollar[6].node == nil {
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[5].list)
|
2018-02-03 13:24:00 +00:00
|
|
|
} else {
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[6].node)
|
2018-02-03 13:24:00 +00:00
|
|
|
}
|
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Try, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Stmts, yyDollar[4].token.SkippedTokens)
|
2017-11-29 21:53:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 73:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1246
|
2017-11-27 23:09:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtThrow{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[3].token.SkippedTokens)
|
2017-11-27 23:09:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 74:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1258
|
2017-11-27 23:09:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
label := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value}
|
|
|
|
yyVAL.node = &ast.StmtGoto{ast.Node{}, label}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
label.GetNode().Position = position.NewTokenPosition(yyDollar[2].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-02-03 13:24:00 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(label, token.Start, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Label, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[3].token.SkippedTokens)
|
2017-11-27 23:09:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 75:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1276
|
2017-11-24 01:36:58 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{}
|
2017-11-24 01:36:58 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 76:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-9 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1280
|
2017-11-24 01:36:58 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
|
|
|
catchNode := &ast.StmtCatch{ast.Node{}, []ast.Vertex{yyDollar[3].node}, variable, yyDollar[7].list}
|
|
|
|
yyVAL.list = append([]ast.Vertex{catchNode}, yyDollar[9].list...)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[4].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[4].token)
|
|
|
|
catchNode.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[8].token)
|
2018-02-03 13:24:00 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(catchNode, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(catchNode, token.Catch, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(variable, token.Start, yyDollar[4].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(catchNode, token.Var, yyDollar[5].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(catchNode, token.Cond, yyDollar[6].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(catchNode, token.Stmts, yyDollar[8].token.SkippedTokens)
|
2017-11-24 01:36:58 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 77:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1303
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2018-02-03 13:24:00 +00:00
|
|
|
yyVAL.node = nil
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 78:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1307
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtFinally{ast.Node{}, yyDollar[3].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Finally, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Stmts, yyDollar[4].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 79:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1322
|
2018-01-29 19:12:12 +00:00
|
|
|
{
|
2018-02-03 13:24:00 +00:00
|
|
|
yyVAL.list = yyDollar[1].list
|
2018-01-29 19:12:12 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 80:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1326
|
2017-11-30 16:25:41 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{}
|
2017-11-30 16:25:41 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 81:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1333
|
2017-11-30 17:23:46 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2017-11-30 17:23:46 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 82:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1337
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2018-02-03 13:24:00 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].node)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 83:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-8 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1344
|
2017-11-30 16:25:41 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
|
|
|
yyVAL.node = &ast.StmtCatch{ast.Node{}, []ast.Vertex{yyDollar[3].node}, variable, yyDollar[7].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[4].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[4].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[8].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Catch, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(variable, token.Start, yyDollar[4].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[5].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Cond, yyDollar[6].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Stmts, yyDollar[8].token.SkippedTokens)
|
2017-11-30 16:25:41 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 84:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1366
|
2017-11-30 17:16:01 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2017-11-30 17:16:01 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 85:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1370
|
2017-11-30 16:25:41 +00:00
|
|
|
{
|
2018-02-03 13:24:00 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
2017-11-30 16:25:41 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 86:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1380
|
2017-11-30 17:04:52 +00:00
|
|
|
{
|
2018-02-03 13:24:00 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-30 17:04:52 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 87:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1387
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2018-02-03 17:33:22 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 88:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1394
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2018-02-03 17:33:22 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 89:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1401
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2018-05-11 20:23:57 +00:00
|
|
|
yyVAL.token = nil
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 90:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1405
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2018-05-11 20:23:57 +00:00
|
|
|
yyVAL.token = yyDollar[1].token
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 91:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1412
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2018-05-11 20:23:57 +00:00
|
|
|
yyVAL.token = nil
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 92:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1416
|
2017-11-30 17:37:45 +00:00
|
|
|
{
|
2018-05-11 20:23:57 +00:00
|
|
|
yyVAL.token = yyDollar[1].token
|
2017-11-30 17:37:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 93:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-9 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1423
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
name := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value}
|
|
|
|
yyVAL.node = &ast.StmtFunction{ast.Node{}, yyDollar[2].token != nil, name, yyDollar[5].list, nil, yyDollar[8].list}
|
2018-02-03 17:33:22 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
name.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[9].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-06-06 23:25:27 +00:00
|
|
|
if yyDollar[2].token != nil {
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Function, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(name, token.Start, yyDollar[3].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
} else {
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(name, token.Start, yyDollar[3].token.SkippedTokens)
|
2018-06-06 23:25:27 +00:00
|
|
|
}
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Name, yyDollar[4].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.ParamList, yyDollar[6].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Params, yyDollar[7].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Stmts, yyDollar[9].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 94:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-7 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1448
|
2017-11-28 19:47:12 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
name := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value}
|
2018-02-03 17:33:22 +00:00
|
|
|
switch n := yyDollar[1].node.(type) {
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.StmtClass:
|
2018-02-03 17:33:22 +00:00
|
|
|
n.ClassName = name
|
|
|
|
n.Stmts = yyDollar[6].list
|
2018-05-12 20:10:01 +00:00
|
|
|
n.Extends = yyDollar[3].ClassExtends
|
|
|
|
n.Implements = yyDollar[4].ClassImplements
|
2018-02-03 17:33:22 +00:00
|
|
|
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.StmtTrait:
|
2018-02-03 17:33:22 +00:00
|
|
|
// TODO: is it possible that trait extend or implement
|
|
|
|
n.TraitName = name
|
|
|
|
n.Stmts = yyDollar[6].list
|
|
|
|
}
|
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
name.GetNode().Position = position.NewTokenPosition(yyDollar[2].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[7].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(name, token.Start, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Name, yyDollar[5].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Stmts, yyDollar[7].token.SkippedTokens)
|
2017-11-28 19:47:12 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 95:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-6 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1474
|
2017-11-28 19:56:09 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
name := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value}
|
|
|
|
yyVAL.node = &ast.StmtInterface{ast.Node{}, name, yyDollar[3].InterfaceExtends, yyDollar[5].list}
|
2018-02-03 17:33:22 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
name.GetNode().Position = position.NewTokenPosition(yyDollar[2].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[6].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(name, token.Start, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Name, yyDollar[4].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Stmts, yyDollar[6].token.SkippedTokens)
|
2017-11-28 19:56:09 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 96:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1493
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtClass{ast.Node{}, nil, nil, nil, nil, nil, nil}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 97:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1503
|
2017-11-28 20:04:30 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
classModifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
|
|
|
yyVAL.node = &ast.StmtClass{ast.Node{}, nil, []ast.Vertex{classModifier}, nil, nil, nil, nil}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
classModifier.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[2].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.ModifierList, yyDollar[2].token.SkippedTokens)
|
2017-11-28 20:04:30 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 98:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1516
|
2017-11-28 20:17:11 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtTrait{ast.Node{}, nil, nil}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 20:17:11 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 99:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1526
|
2017-11-28 20:36:21 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
classModifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
|
|
|
yyVAL.node = &ast.StmtClass{ast.Node{}, nil, []ast.Vertex{classModifier}, nil, nil, nil, nil}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
classModifier.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[2].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.ModifierList, yyDollar[2].token.SkippedTokens)
|
2017-11-28 20:36:21 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 100:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1542
|
2017-11-28 20:47:44 +00:00
|
|
|
{
|
2018-05-12 20:10:01 +00:00
|
|
|
yyVAL.ClassExtends = nil
|
2017-11-28 20:47:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 101:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1546
|
2017-11-28 20:47:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.ClassExtends = &ast.StmtClassExtends{ast.Node{}, yyDollar[2].node}
|
2018-05-12 20:10:01 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.ClassExtends.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.ClassExtends, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 20:47:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 102:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1559
|
2017-11-28 19:47:12 +00:00
|
|
|
{
|
2018-02-03 17:33:22 +00:00
|
|
|
yyVAL.token = yyDollar[1].token
|
2017-11-28 19:47:12 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 103:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1566
|
2017-12-01 07:15:46 +00:00
|
|
|
{
|
2018-05-12 20:10:01 +00:00
|
|
|
yyVAL.InterfaceExtends = nil
|
2017-12-01 07:15:46 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 104:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1570
|
2017-11-29 13:53:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.InterfaceExtends = &ast.StmtInterfaceExtends{ast.Node{}, yyDollar[2].list}
|
2018-05-12 20:10:01 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.InterfaceExtends.GetNode().Position = position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.InterfaceExtends, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 13:53:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 105:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1583
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
2018-05-12 20:10:01 +00:00
|
|
|
yyVAL.ClassImplements = nil
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 106:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1587
|
2017-11-29 13:53:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.ClassImplements = &ast.StmtClassImplements{ast.Node{}, yyDollar[2].list}
|
2018-05-12 20:10:01 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.ClassImplements.GetNode().Position = position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.ClassImplements, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 13:53:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 107:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1600
|
2017-11-29 13:49:32 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2017-11-29 13:49:32 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 108:
|
2017-11-30 17:04:52 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1604
|
2017-11-28 19:47:12 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
switch n := lastNode(yyDollar[1].list).(type) {
|
|
|
|
case *ast.NameName:
|
|
|
|
n.ListSeparatorTkn = yyDollar[2].token
|
|
|
|
case *ast.NameFullyQualified:
|
|
|
|
n.ListSeparatorTkn = yyDollar[2].token
|
|
|
|
case *ast.NameRelative:
|
|
|
|
n.ListSeparatorTkn = yyDollar[2].token
|
|
|
|
}
|
2018-02-03 17:33:22 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
2017-11-28 19:47:12 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 109:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1616
|
2017-11-29 13:33:59 +00:00
|
|
|
{
|
2018-05-14 15:09:11 +00:00
|
|
|
yyVAL.node = nil
|
2017-11-29 13:33:59 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 110:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1620
|
2017-11-30 17:04:52 +00:00
|
|
|
{
|
2018-05-14 15:09:11 +00:00
|
|
|
yyVAL.node = yyDollar[2].node
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Key, yyDollar[1].token.SkippedTokens)
|
2017-11-30 17:04:52 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 111:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1630
|
2017-11-30 17:04:52 +00:00
|
|
|
{
|
2018-05-14 15:09:11 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-30 17:04:52 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 112:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1634
|
2017-11-30 17:04:52 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprReference{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-30 17:04:52 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 113:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1644
|
2017-11-30 17:04:52 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprList{ast.Node{}, yyDollar[3].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.List, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.ArrayPairList, yyDollar[4].token.SkippedTokens)
|
2017-11-30 17:04:52 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 114:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1659
|
2018-02-03 12:29:23 +00:00
|
|
|
{
|
2020-09-04 08:37:17 +00:00
|
|
|
yyVAL.node = &ast.StmtFor{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodePosition(yyDollar[1].node),
|
|
|
|
},
|
|
|
|
Stmt: yyDollar[1].node,
|
|
|
|
}
|
2018-02-03 12:29:23 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 115:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1668
|
2018-02-03 12:41:34 +00:00
|
|
|
{
|
2020-09-04 08:37:17 +00:00
|
|
|
yyVAL.node = &ast.StmtFor{
|
2020-09-02 19:58:19 +00:00
|
|
|
Node: ast.Node{
|
2020-09-04 08:37:17 +00:00
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token),
|
2020-09-02 19:58:19 +00:00
|
|
|
},
|
2020-09-04 08:37:17 +00:00
|
|
|
Alt: true,
|
|
|
|
ColonTkn: yyDollar[1].token,
|
|
|
|
Stmt: &ast.StmtStmtList{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[2].list),
|
|
|
|
},
|
|
|
|
Stmts: yyDollar[2].list,
|
|
|
|
},
|
|
|
|
EndForTkn: yyDollar[3].token,
|
|
|
|
SemiColonTkn: yyDollar[4].token,
|
2020-09-02 19:58:19 +00:00
|
|
|
}
|
2018-02-03 12:41:34 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 116:
|
2018-02-03 12:41:34 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1689
|
2018-02-03 12:41:34 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtForeach{ast.Node{}, nil, nil, nil, yyDollar[1].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodePosition(yyDollar[1].node)
|
2018-02-03 12:41:34 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 117:
|
2018-02-03 12:41:34 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1696
|
2018-02-03 12:29:23 +00:00
|
|
|
{
|
2020-09-02 19:58:19 +00:00
|
|
|
stmtList := &ast.StmtStmtList{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[2].list),
|
|
|
|
},
|
|
|
|
Stmts: yyDollar[2].list,
|
|
|
|
}
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtAltForeach{ast.Node{}, nil, nil, nil, stmtList}
|
2018-05-02 00:36:53 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Cond, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Stmts, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.AltEnd, yyDollar[4].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[4].token.SkippedTokens)
|
2018-02-03 12:29:23 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 118:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1719
|
2018-02-03 13:24:00 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtDeclare{ast.Node{}, false, nil, yyDollar[1].node}
|
2018-07-29 08:44:38 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodePosition(yyDollar[1].node)
|
2018-02-03 13:24:00 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 119:
|
2018-02-03 13:24:00 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1726
|
2018-02-03 13:24:00 +00:00
|
|
|
{
|
2020-09-02 19:58:19 +00:00
|
|
|
stmtList := &ast.StmtStmtList{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[2].list),
|
|
|
|
},
|
|
|
|
Stmts: yyDollar[2].list,
|
|
|
|
}
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtDeclare{ast.Node{}, true, nil, stmtList}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Cond, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Stmts, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.AltEnd, yyDollar[4].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[4].token.SkippedTokens)
|
2018-02-03 13:24:00 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 120:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1749
|
2017-11-30 17:04:52 +00:00
|
|
|
{
|
2020-08-24 20:28:44 +00:00
|
|
|
yyVAL.list = []ast.Vertex{
|
|
|
|
&ast.StmtConstant{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodePosition(yyDollar[1].token, yyDollar[3].node),
|
|
|
|
},
|
|
|
|
Name: &ast.Identifier{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenPosition(yyDollar[1].token),
|
|
|
|
},
|
|
|
|
Value: yyDollar[1].token.Value,
|
|
|
|
},
|
|
|
|
EqualTkn: yyDollar[2].token,
|
|
|
|
Expr: yyDollar[3].node,
|
|
|
|
},
|
|
|
|
}
|
2018-02-03 13:24:00 +00:00
|
|
|
|
2020-08-24 20:28:44 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyVAL.list).(*ast.StmtConstant).Name, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-30 17:04:52 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 121:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1769
|
2017-11-30 17:04:52 +00:00
|
|
|
{
|
2020-08-24 20:28:44 +00:00
|
|
|
lastNode(yyDollar[1].list).(*ast.StmtConstant).CommaTkn = yyDollar[2].token
|
|
|
|
yyVAL.list = append(yyDollar[1].list, &ast.StmtConstant{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodePosition(yyDollar[3].token, yyDollar[5].node),
|
|
|
|
},
|
|
|
|
Name: &ast.Identifier{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenPosition(yyDollar[3].token),
|
|
|
|
},
|
|
|
|
Value: yyDollar[3].token.Value,
|
|
|
|
},
|
|
|
|
EqualTkn: yyDollar[4].token,
|
|
|
|
Expr: yyDollar[5].node,
|
|
|
|
})
|
2018-02-03 13:24:00 +00:00
|
|
|
|
2020-08-24 20:28:44 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyVAL.list).(*ast.StmtConstant).Name, token.Start, yyDollar[3].token.SkippedTokens)
|
2017-11-30 17:04:52 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 122:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1792
|
2017-11-30 17:04:52 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
caseList := &ast.StmtCaseList{ast.Node{}, yyDollar[2].list}
|
|
|
|
yyVAL.node = &ast.StmtSwitch{ast.Node{}, nil, caseList}
|
2018-04-29 20:10:56 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
caseList.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(caseList, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(caseList, token.CaseListEnd, yyDollar[3].token.SkippedTokens)
|
2017-11-30 17:04:52 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 123:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1805
|
2017-11-30 17:04:52 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
caseList := &ast.StmtCaseList{ast.Node{}, yyDollar[3].list}
|
|
|
|
yyVAL.node = &ast.StmtSwitch{ast.Node{}, nil, caseList}
|
2018-04-29 20:10:56 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
caseList.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(caseList, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(caseList, token.CaseListStart, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(caseList, token.CaseListEnd, yyDollar[4].token.SkippedTokens)
|
2017-11-30 17:04:52 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 124:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1819
|
2017-11-30 17:04:52 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
caseList := &ast.StmtCaseList{ast.Node{}, yyDollar[2].list}
|
|
|
|
yyVAL.node = &ast.StmtAltSwitch{ast.Node{}, nil, caseList}
|
2018-04-29 20:10:56 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
caseList.GetNode().Position = position.NewNodeListPosition(yyDollar[2].list)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Cond, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(caseList, token.CaseListEnd, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.AltEnd, yyDollar[4].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[4].token.SkippedTokens)
|
2017-11-30 17:04:52 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 125:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1834
|
2017-11-30 17:04:52 +00:00
|
|
|
{
|
2018-04-29 20:10:56 +00:00
|
|
|
|
2020-05-13 17:18:53 +00:00
|
|
|
caseList := &ast.StmtCaseList{ast.Node{}, yyDollar[3].list}
|
|
|
|
yyVAL.node = &ast.StmtAltSwitch{ast.Node{}, nil, caseList}
|
2018-04-29 20:10:56 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
caseList.GetNode().Position = position.NewNodeListPosition(yyDollar[3].list)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[5].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Cond, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(caseList, token.CaseListStart, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(caseList, token.CaseListEnd, yyDollar[4].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.AltEnd, yyDollar[5].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[5].token.SkippedTokens)
|
2017-11-30 17:04:52 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 126:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1855
|
2018-02-03 12:29:23 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{}
|
2018-02-03 12:29:23 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 127:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1859
|
2017-11-30 17:04:52 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
_case := &ast.StmtCase{ast.Node{}, yyDollar[3].node, yyDollar[5].list}
|
2018-02-03 12:29:23 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, _case)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
_case.GetNode().Position = position.NewTokenNodeListPosition(yyDollar[2].token, yyDollar[5].list)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(_case, token.Start, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(_case, token.Expr, yyDollar[4].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(_case, token.CaseSeparator, yyDollar[4].token.SkippedTokens)
|
2017-11-30 17:04:52 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 128:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1872
|
2017-11-30 17:04:52 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
_default := &ast.StmtDefault{ast.Node{}, yyDollar[4].list}
|
2018-02-03 12:29:23 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, _default)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
_default.GetNode().Position = position.NewTokenNodeListPosition(yyDollar[2].token, yyDollar[4].list)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(_default, token.Start, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(_default, token.Default, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(_default, token.CaseSeparator, yyDollar[3].token.SkippedTokens)
|
2018-06-06 23:25:27 +00:00
|
|
|
}
|
|
|
|
case 129:
|
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1889
|
2018-06-06 23:25:27 +00:00
|
|
|
{
|
|
|
|
yyVAL.token = yyDollar[1].token
|
|
|
|
}
|
|
|
|
case 130:
|
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1893
|
2018-06-06 23:25:27 +00:00
|
|
|
{
|
|
|
|
yyVAL.token = yyDollar[1].token
|
2017-11-30 17:04:52 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 131:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1901
|
2017-11-30 17:04:52 +00:00
|
|
|
{
|
2020-09-04 07:33:47 +00:00
|
|
|
yyVAL.node = &ast.StmtWhile{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodePosition(yyDollar[1].node),
|
|
|
|
},
|
|
|
|
Stmt: yyDollar[1].node,
|
|
|
|
}
|
2017-11-30 17:04:52 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 132:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1910
|
2017-11-30 17:04:52 +00:00
|
|
|
{
|
2020-09-04 07:33:47 +00:00
|
|
|
yyVAL.node = &ast.StmtWhile{
|
2020-09-02 19:58:19 +00:00
|
|
|
Node: ast.Node{
|
2020-09-04 07:33:47 +00:00
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token),
|
2020-09-02 19:58:19 +00:00
|
|
|
},
|
2020-09-04 07:33:47 +00:00
|
|
|
Alt: true,
|
|
|
|
ColonTkn: yyDollar[1].token,
|
|
|
|
Stmt: &ast.StmtStmtList{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[2].list),
|
|
|
|
},
|
|
|
|
Stmts: yyDollar[2].list,
|
|
|
|
},
|
|
|
|
EndWhileTkn: yyDollar[3].token,
|
|
|
|
SemiColonTkn: yyDollar[4].token,
|
2020-09-02 19:58:19 +00:00
|
|
|
}
|
2017-11-30 17:04:52 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 133:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1933
|
2017-11-29 13:33:59 +00:00
|
|
|
{
|
2018-02-08 21:31:38 +00:00
|
|
|
yyVAL.list = nil
|
2017-11-29 13:33:59 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 134:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1937
|
2017-11-29 13:33:59 +00:00
|
|
|
{
|
2020-09-03 19:18:06 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, &ast.StmtElseIf{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodePosition(yyDollar[2].token, yyDollar[4].node),
|
|
|
|
},
|
|
|
|
ElseIfTkn: yyDollar[2].token,
|
|
|
|
OpenParenthesisTkn: yyDollar[3].node.(*ast.ParserBrackets).OpenBracketTkn,
|
|
|
|
Cond: yyDollar[3].node.(*ast.ParserBrackets).Child,
|
|
|
|
CloseParenthesisTkn: yyDollar[3].node.(*ast.ParserBrackets).CloseBracketTkn,
|
|
|
|
Stmt: yyDollar[4].node,
|
|
|
|
})
|
2017-11-29 13:33:59 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 135:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1954
|
2018-02-03 12:29:23 +00:00
|
|
|
{
|
2018-02-08 10:48:38 +00:00
|
|
|
yyVAL.list = nil
|
2018-02-03 12:29:23 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 136:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1958
|
2017-11-28 19:47:12 +00:00
|
|
|
{
|
2020-09-03 19:18:06 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, &ast.StmtElseIf{
|
2020-09-02 19:58:19 +00:00
|
|
|
Node: ast.Node{
|
2020-09-03 19:18:06 +00:00
|
|
|
Position: position.NewTokenNodeListPosition(yyDollar[2].token, yyDollar[5].list),
|
2020-09-02 19:58:19 +00:00
|
|
|
},
|
2020-09-03 19:18:06 +00:00
|
|
|
Alt: true,
|
|
|
|
ElseIfTkn: yyDollar[2].token,
|
|
|
|
OpenParenthesisTkn: yyDollar[3].node.(*ast.ParserBrackets).OpenBracketTkn,
|
|
|
|
Cond: yyDollar[3].node.(*ast.ParserBrackets).Child,
|
|
|
|
CloseParenthesisTkn: yyDollar[3].node.(*ast.ParserBrackets).CloseBracketTkn,
|
|
|
|
ColonTkn: yyDollar[4].token,
|
|
|
|
Stmt: &ast.StmtStmtList{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[5].list),
|
|
|
|
},
|
|
|
|
Stmts: yyDollar[5].list,
|
|
|
|
},
|
|
|
|
})
|
2017-11-28 19:47:12 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 137:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1982
|
2017-11-28 19:56:09 +00:00
|
|
|
{
|
2018-02-03 12:29:23 +00:00
|
|
|
yyVAL.node = nil
|
2017-11-28 19:56:09 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 138:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:1986
|
2018-02-03 12:29:23 +00:00
|
|
|
{
|
2020-09-03 19:18:06 +00:00
|
|
|
yyVAL.node = &ast.StmtElse{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node),
|
|
|
|
},
|
|
|
|
ElseTkn: yyDollar[1].token,
|
|
|
|
Stmt: yyDollar[2].node,
|
|
|
|
}
|
2018-02-03 12:29:23 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 139:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2000
|
2017-11-28 19:56:09 +00:00
|
|
|
{
|
2018-02-03 12:29:23 +00:00
|
|
|
yyVAL.node = nil
|
2017-11-28 19:56:09 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 140:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2004
|
2018-02-03 12:29:23 +00:00
|
|
|
{
|
2020-09-03 19:18:06 +00:00
|
|
|
yyVAL.node = &ast.StmtElse{
|
2020-09-02 19:58:19 +00:00
|
|
|
Node: ast.Node{
|
2020-09-03 19:18:06 +00:00
|
|
|
Position: position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[3].list),
|
|
|
|
},
|
|
|
|
Alt: true,
|
|
|
|
ElseTkn: yyDollar[1].token,
|
|
|
|
ColonTkn: yyDollar[2].token,
|
|
|
|
Stmt: &ast.StmtStmtList{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[3].list),
|
|
|
|
},
|
|
|
|
Stmts: yyDollar[3].list,
|
2020-09-02 19:58:19 +00:00
|
|
|
},
|
|
|
|
}
|
2018-02-03 12:29:23 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 141:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2025
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
|
|
|
yyVAL.list = yyDollar[1].list
|
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 142:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2029
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
|
|
|
yyVAL.list = nil
|
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 143:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2036
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 144:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2040
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 145:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2050
|
2017-11-28 19:56:09 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value}
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[4].token)
|
2020-07-05 19:47:46 +00:00
|
|
|
|
|
|
|
var variable ast.Vertex
|
|
|
|
variable = &ast.ExprVariable{ast.Node{}, identifier}
|
2020-06-29 11:38:10 +00:00
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[4].token)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(variable, token.Start, yyDollar[4].token.SkippedTokens)
|
2020-07-05 19:47:46 +00:00
|
|
|
|
|
|
|
if yyDollar[3].token != nil {
|
|
|
|
variable = &ast.Variadic{ast.Node{}, variable}
|
|
|
|
variable.GetNode().Position = position.NewTokensPosition(yyDollar[3].token, yyDollar[4].token)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(variable, token.Start, yyDollar[3].token.SkippedTokens)
|
2020-07-05 19:47:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if yyDollar[2].token != nil {
|
|
|
|
variable = &ast.Reference{ast.Node{}, variable}
|
|
|
|
variable.GetNode().Position = position.NewTokensPosition(yyDollar[2].token, yyDollar[4].token)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(variable, token.Start, yyDollar[2].token.SkippedTokens)
|
2020-07-05 19:47:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
yyVAL.node = &ast.Parameter{ast.Node{}, yyDollar[1].node, variable, nil}
|
|
|
|
|
2018-02-03 17:33:22 +00:00
|
|
|
if yyDollar[1].node != nil {
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token)
|
2018-05-11 20:23:57 +00:00
|
|
|
} else if yyDollar[2].token != nil {
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[2].token, yyDollar[4].token)
|
2018-05-11 20:23:57 +00:00
|
|
|
} else if yyDollar[3].token != nil {
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[3].token, yyDollar[4].token)
|
2018-02-03 17:33:22 +00:00
|
|
|
} else {
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[4].token)
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2017-11-28 19:56:09 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 146:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-6 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2084
|
2017-11-28 19:56:09 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value}
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[4].token)
|
2020-07-05 19:47:46 +00:00
|
|
|
|
|
|
|
var variable ast.Vertex
|
|
|
|
variable = &ast.ExprVariable{ast.Node{}, identifier}
|
2020-06-29 11:38:10 +00:00
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[4].token)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(variable, token.Start, yyDollar[4].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(variable, token.End, yyDollar[5].token.SkippedTokens)
|
2020-07-05 19:47:46 +00:00
|
|
|
|
|
|
|
if yyDollar[3].token != nil {
|
|
|
|
variable = &ast.Variadic{ast.Node{}, variable}
|
|
|
|
variable.GetNode().Position = position.NewTokensPosition(yyDollar[3].token, yyDollar[4].token)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(variable, token.Start, yyDollar[3].token.SkippedTokens)
|
2020-07-05 19:47:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if yyDollar[2].token != nil {
|
|
|
|
variable = &ast.Reference{ast.Node{}, variable}
|
|
|
|
variable.GetNode().Position = position.NewTokensPosition(yyDollar[2].token, yyDollar[4].token)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(variable, token.Start, yyDollar[2].token.SkippedTokens)
|
2020-07-05 19:47:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
yyVAL.node = &ast.Parameter{ast.Node{}, yyDollar[1].node, variable, yyDollar[6].node}
|
|
|
|
|
2018-02-03 17:33:22 +00:00
|
|
|
if yyDollar[1].node != nil {
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[6].node)
|
2018-05-11 20:23:57 +00:00
|
|
|
} else if yyDollar[2].token != nil {
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[2].token, yyDollar[6].node)
|
2018-05-11 20:23:57 +00:00
|
|
|
} else if yyDollar[3].token != nil {
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[3].token, yyDollar[6].node)
|
2018-02-03 17:33:22 +00:00
|
|
|
} else {
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[4].token, yyDollar[6].node)
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2017-11-28 19:56:09 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 147:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2123
|
2018-02-01 10:35:43 +00:00
|
|
|
{
|
2018-02-03 17:33:22 +00:00
|
|
|
yyVAL.node = nil
|
2018-02-01 10:35:43 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 148:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2127
|
2017-11-28 20:04:30 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 20:04:30 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 149:
|
2017-12-01 07:15:46 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2137
|
2017-11-28 20:04:30 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 20:04:30 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 150:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2147
|
2017-11-28 20:17:11 +00:00
|
|
|
{
|
2018-02-03 17:33:22 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-28 20:17:11 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 151:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2155
|
2017-11-28 20:17:11 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ArgumentList{ast.Node{}, nil}
|
2018-04-29 16:58:49 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[2].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, yyDollar[2].token.SkippedTokens)
|
2017-11-28 20:17:11 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 152:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2166
|
2017-11-28 20:17:11 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ArgumentList{ast.Node{}, yyDollar[2].list}
|
2018-04-29 16:58:49 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, yyDollar[3].token.SkippedTokens)
|
2017-11-28 20:17:11 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 153:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2177
|
2018-02-03 18:13:11 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
arg := &ast.Argument{ast.Node{}, false, false, yyDollar[2].node}
|
|
|
|
yyVAL.node = &ast.ArgumentList{ast.Node{}, []ast.Vertex{arg}}
|
2018-02-03 18:13:11 +00:00
|
|
|
|
2018-04-29 16:58:49 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
arg.GetNode().Position = position.NewNodePosition(yyDollar[2].node)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-02-03 18:13:11 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, yyDollar[3].token.SkippedTokens)
|
2018-02-03 18:13:11 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 154:
|
2018-02-03 18:13:11 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2194
|
2018-02-03 18:13:11 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2018-02-03 18:13:11 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 155:
|
2018-02-03 18:13:11 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2198
|
2017-11-28 20:17:11 +00:00
|
|
|
{
|
2018-02-03 18:13:11 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
2017-11-28 20:17:11 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 156:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2208
|
2017-11-30 18:36:10 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.Argument{ast.Node{}, false, false, yyDollar[1].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodePosition(yyDollar[1].node)
|
2018-06-10 23:41:12 +00:00
|
|
|
|
2019-01-03 17:03:20 +00:00
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2017-11-30 18:36:10 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 157:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2218
|
2017-11-30 18:36:10 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.Argument{ast.Node{}, false, false, yyDollar[1].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodePosition(yyDollar[1].node)
|
2018-06-10 23:41:12 +00:00
|
|
|
|
2019-01-03 17:03:20 +00:00
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2017-11-30 18:36:10 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 158:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2228
|
2017-11-30 18:36:10 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.Argument{ast.Node{}, false, true, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodePosition(yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-30 18:36:10 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 159:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2238
|
2017-11-30 18:36:10 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.Argument{ast.Node{}, true, false, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-30 18:36:10 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 160:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2251
|
2017-11-28 20:36:21 +00:00
|
|
|
{
|
2018-01-31 10:29:38 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
2017-11-28 20:36:21 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 161:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2258
|
2017-11-28 20:36:21 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2017-11-28 20:36:21 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 162:
|
2017-12-01 07:15:46 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2266
|
2017-11-28 20:36:21 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
name := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprVariable{ast.Node{}, name}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
name.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-01-31 10:29:38 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 20:36:21 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 163:
|
2017-12-01 07:15:46 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2278
|
2017-11-28 20:36:21 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprVariable{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 20:36:21 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 164:
|
2017-12-01 07:15:46 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2288
|
2017-11-28 20:36:21 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprVariable{ast.Node{}, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyDollar[3].node, token.Start, append(yyDollar[2].token.SkippedTokens, yyDollar[3].node.GetNode().Tokens[token.Start]...))
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyDollar[3].node, token.End, append(yyDollar[3].node.GetNode().Tokens[token.End], yyDollar[4].token.SkippedTokens...))
|
2017-11-28 20:36:21 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 165:
|
2017-12-01 07:15:46 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2304
|
2017-11-28 20:36:21 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
|
|
|
staticVar := &ast.StmtStaticVar{ast.Node{}, variable, nil}
|
2018-01-31 10:29:38 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, staticVar)
|
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
staticVar.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(staticVar, token.Start, yyDollar[3].token.SkippedTokens)
|
2017-11-28 20:36:21 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 166:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2320
|
2017-11-28 20:17:11 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
|
|
|
staticVar := &ast.StmtStaticVar{ast.Node{}, variable, yyDollar[5].node}
|
2018-01-31 10:29:38 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, staticVar)
|
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
staticVar.GetNode().Position = position.NewTokenNodePosition(yyDollar[3].token, yyDollar[5].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(staticVar, token.Start, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(staticVar, token.Var, yyDollar[4].token.SkippedTokens)
|
2017-11-28 20:17:11 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 167:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2337
|
2017-11-28 20:17:11 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
|
|
|
staticVar := &ast.StmtStaticVar{ast.Node{}, variable, nil}
|
|
|
|
yyVAL.list = []ast.Vertex{staticVar}
|
2018-01-31 10:29:38 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
staticVar.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(staticVar, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 10:24:08 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 168:
|
2017-12-01 07:15:46 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2352
|
2017-11-29 10:24:08 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
|
|
|
staticVar := &ast.StmtStaticVar{ast.Node{}, variable, yyDollar[3].node}
|
|
|
|
yyVAL.list = []ast.Vertex{staticVar}
|
2018-01-31 10:29:38 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
staticVar.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(staticVar, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(staticVar, token.Var, yyDollar[2].token.SkippedTokens)
|
2017-11-29 10:24:08 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 169:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2372
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].node)
|
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 170:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2376
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{}
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 171:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2384
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtPropertyList{ast.Node{}, yyDollar[1].list, nil, yyDollar[2].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeListTokenPosition(yyDollar[1].list, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].list[0], yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.PropertyList, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[3].token.SkippedTokens)
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 172:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2396
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
2020-08-24 20:28:44 +00:00
|
|
|
yyDollar[1].node.(*ast.StmtClassConstList).SemiColonTkn = yyDollar[2].token
|
|
|
|
yyDollar[1].node.(*ast.StmtClassConstList).Node.Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[2].token)
|
2018-02-03 17:33:22 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 173:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2402
|
2017-11-28 21:20:08 +00:00
|
|
|
{
|
2018-02-03 17:33:22 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-28 21:20:08 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 174:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-8 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2406
|
2017-11-28 21:20:08 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
name := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value}
|
|
|
|
yyVAL.node = &ast.StmtClassMethod{ast.Node{}, yyDollar[3].token != nil, name, yyDollar[1].list, yyDollar[6].list, nil, yyDollar[8].node}
|
2018-06-03 06:35:44 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
name.GetNode().Position = position.NewTokenPosition(yyDollar[4].token)
|
2018-06-03 06:35:44 +00:00
|
|
|
if yyDollar[1].list == nil {
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[2].token, yyDollar[8].node)
|
2018-06-03 06:35:44 +00:00
|
|
|
} else {
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeListNodePosition(yyDollar[1].list, yyDollar[8].node)
|
2018-06-03 06:35:44 +00:00
|
|
|
}
|
2018-02-03 17:33:22 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
if len(yyDollar[1].list) > 0 {
|
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].list[0], yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.ModifierList, yyDollar[2].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
} else {
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[2].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
}
|
|
|
|
if yyDollar[3].token == nil {
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Function, yyDollar[4].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
} else {
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Function, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Ampersand, yyDollar[4].token.SkippedTokens)
|
2018-06-06 23:25:27 +00:00
|
|
|
}
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Name, yyDollar[5].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.ParameterList, yyDollar[7].token.SkippedTokens)
|
2017-11-28 21:20:08 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 175:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2438
|
2017-11-28 21:20:08 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtTraitUse{ast.Node{}, yyDollar[2].list, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 21:20:08 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 176:
|
2017-11-28 21:20:08 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2451
|
2018-01-29 14:11:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2018-01-29 14:11:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 177:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2455
|
2018-02-03 22:09:37 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
switch n := lastNode(yyDollar[1].list).(type) {
|
|
|
|
case *ast.NameName:
|
|
|
|
n.ListSeparatorTkn = yyDollar[2].token
|
|
|
|
case *ast.NameFullyQualified:
|
|
|
|
n.ListSeparatorTkn = yyDollar[2].token
|
|
|
|
case *ast.NameRelative:
|
|
|
|
n.ListSeparatorTkn = yyDollar[2].token
|
|
|
|
}
|
2018-02-03 22:09:37 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 178:
|
2018-02-03 22:09:37 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2467
|
2018-02-03 22:09:37 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtNop{ast.Node{}}
|
2018-04-29 19:34:24 +00:00
|
|
|
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[1].token.SkippedTokens)
|
2018-02-03 22:09:37 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 179:
|
2018-02-03 22:09:37 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2477
|
2018-02-03 22:09:37 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtTraitAdaptationList{ast.Node{}, yyDollar[2].list}
|
2018-04-29 19:34:24 +00:00
|
|
|
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.AdaptationList, yyDollar[3].token.SkippedTokens)
|
2018-02-03 22:09:37 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 180:
|
2018-02-03 22:09:37 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2490
|
2018-02-03 22:09:37 +00:00
|
|
|
{
|
|
|
|
yyVAL.list = nil
|
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 181:
|
2018-02-03 22:09:37 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2494
|
2018-02-03 22:09:37 +00:00
|
|
|
{
|
|
|
|
yyVAL.list = yyDollar[1].list
|
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 182:
|
2018-02-03 22:09:37 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2501
|
2018-02-03 22:09:37 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2018-02-03 22:09:37 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 183:
|
2018-02-03 22:09:37 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2505
|
2018-02-03 22:09:37 +00:00
|
|
|
{
|
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].node)
|
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 184:
|
2018-02-03 22:09:37 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2512
|
2018-02-03 22:09:37 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.NameList, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[2].token.SkippedTokens)
|
2018-02-03 22:09:37 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 185:
|
2018-02-03 22:09:37 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2520
|
2017-11-28 21:20:08 +00:00
|
|
|
{
|
2018-02-03 22:09:37 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Alias, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[2].token.SkippedTokens)
|
2017-11-28 21:20:08 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 186:
|
2017-11-28 21:20:08 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2531
|
2018-01-29 14:11:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtTraitUsePrecedence{ast.Node{}, yyDollar[1].node, yyDollar[3].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeNodeListPosition(yyDollar[1].node, yyDollar[3].list)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Ref, yyDollar[2].token.SkippedTokens)
|
2018-01-29 14:11:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 187:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2545
|
2017-12-01 07:15:46 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2017-12-01 07:15:46 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 188:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2549
|
2018-02-01 10:35:43 +00:00
|
|
|
{
|
2018-02-03 22:09:37 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
2018-02-01 10:35:43 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 189:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2559
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
name := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
|
|
|
yyVAL.node = &ast.StmtTraitMethodRef{ast.Node{}, nil, name}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
name.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 190:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2571
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2018-02-03 22:09:37 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 191:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2578
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
target := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value}
|
|
|
|
yyVAL.node = &ast.StmtTraitMethodRef{ast.Node{}, yyDollar[1].node, target}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
target.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Name, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(target, token.Start, yyDollar[2].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 192:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2595
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
alias := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value}
|
|
|
|
yyVAL.node = &ast.StmtTraitUseAlias{ast.Node{}, yyDollar[1].node, yyDollar[3].node, alias}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
alias.GetNode().Position = position.NewTokenPosition(yyDollar[4].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token)
|
2018-02-03 22:09:37 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Ref, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(alias, token.Start, yyDollar[4].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 193:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2609
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtTraitUseAlias{ast.Node{}, yyDollar[1].node, yyDollar[3].node, nil}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Ref, yyDollar[2].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 194:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2623
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2018-02-03 22:09:37 +00:00
|
|
|
yyVAL.node = nil
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 195:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2627
|
2017-11-30 17:16:01 +00:00
|
|
|
{
|
2018-02-03 22:09:37 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-30 17:16:01 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 196:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2634
|
2017-11-30 17:23:46 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.StmtNop{ast.Node{}}
|
2018-06-03 06:35:44 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[1].token.SkippedTokens)
|
2017-11-30 17:23:46 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 197:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2645
|
2017-11-30 17:23:46 +00:00
|
|
|
{
|
2020-09-02 19:58:19 +00:00
|
|
|
yyVAL.node = &ast.StmtStmtList{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token),
|
|
|
|
},
|
|
|
|
OpenCurlyBracket: yyDollar[1].token,
|
|
|
|
Stmts: yyDollar[2].list,
|
|
|
|
CloseCurlyBracket: yyDollar[3].token,
|
|
|
|
}
|
2017-11-30 17:23:46 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 198:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2659
|
2017-11-30 17:23:46 +00:00
|
|
|
{
|
2018-02-03 22:37:43 +00:00
|
|
|
yyVAL.list = yyDollar[1].list
|
2017-11-30 17:23:46 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 199:
|
2017-12-01 07:15:46 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2663
|
2017-11-30 17:35:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
modifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
|
|
|
yyVAL.list = []ast.Vertex{modifier}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
modifier.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-02-03 22:37:43 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(modifier, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-30 17:35:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 200:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2677
|
2017-11-30 17:35:13 +00:00
|
|
|
{
|
2018-02-03 22:37:43 +00:00
|
|
|
yyVAL.list = nil
|
2017-11-30 17:35:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 201:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2681
|
2017-11-30 17:35:13 +00:00
|
|
|
{
|
2018-02-03 22:37:43 +00:00
|
|
|
yyVAL.list = yyDollar[1].list
|
2017-11-30 17:35:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 202:
|
2017-12-01 07:15:46 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2688
|
2017-11-30 17:35:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2017-11-30 17:35:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 203:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2692
|
2017-12-01 07:15:46 +00:00
|
|
|
{
|
2018-02-03 22:37:43 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].node)
|
2017-12-01 07:15:46 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 204:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2699
|
2017-12-01 07:15:46 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-12-01 07:15:46 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 205:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2709
|
2017-11-30 17:23:46 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 206:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2719
|
2017-11-29 14:21:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 207:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2729
|
2017-11-29 14:21:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 208:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2739
|
2017-11-29 14:21:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 209:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2749
|
2017-11-29 14:21:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 210:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2762
|
2017-11-29 22:07:15 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
|
|
|
property := &ast.StmtProperty{ast.Node{}, variable, nil}
|
2018-06-06 23:25:27 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, property)
|
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
property.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
2018-02-03 22:37:43 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(property, token.Start, yyDollar[3].token.SkippedTokens)
|
2017-11-29 22:07:15 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 211:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2778
|
2017-11-29 14:21:44 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
|
|
|
property := &ast.StmtProperty{ast.Node{}, variable, yyDollar[5].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, property)
|
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
property.GetNode().Position = position.NewTokenNodePosition(yyDollar[3].token, yyDollar[5].node)
|
2018-02-03 22:37:43 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(property, token.Start, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(property, token.Var, yyDollar[4].token.SkippedTokens)
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 212:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2795
|
2017-11-29 14:21:44 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
|
|
|
property := &ast.StmtProperty{ast.Node{}, variable, nil}
|
|
|
|
yyVAL.list = []ast.Vertex{property}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
property.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-02-03 22:37:43 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(property, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 213:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2810
|
2017-11-29 14:21:44 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
|
|
|
property := &ast.StmtProperty{ast.Node{}, variable, yyDollar[3].node}
|
|
|
|
yyVAL.list = []ast.Vertex{property}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
property.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[3].node)
|
2018-02-03 22:37:43 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(property, token.Start, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(property, token.Var, yyDollar[2].token.SkippedTokens)
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 214:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2829
|
2017-11-29 14:21:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
constList := yyDollar[1].node.(*ast.StmtClassConstList)
|
2020-08-24 20:28:44 +00:00
|
|
|
constList.Node.Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[5].node)
|
|
|
|
lastNode(yyVAL.node.(*ast.StmtClassConstList).Consts).(*ast.StmtConstant).CommaTkn = yyDollar[2].token
|
|
|
|
constList.Consts = append(constList.Consts, &ast.StmtConstant{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodePosition(yyDollar[3].token, yyDollar[5].node),
|
|
|
|
},
|
|
|
|
Name: &ast.Identifier{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenPosition(yyDollar[3].token),
|
|
|
|
},
|
|
|
|
Value: yyDollar[3].token.Value,
|
|
|
|
},
|
|
|
|
EqualTkn: yyDollar[4].token,
|
|
|
|
Expr: yyDollar[5].node,
|
|
|
|
})
|
2018-02-03 22:37:43 +00:00
|
|
|
|
2020-08-24 20:28:44 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-02-03 22:37:43 +00:00
|
|
|
|
2020-08-24 20:28:44 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyVAL.node.(*ast.StmtClassConstList).Consts).(*ast.StmtConstant).Name, token.Start, yyDollar[3].token.SkippedTokens)
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 215:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2852
|
2017-11-29 20:56:37 +00:00
|
|
|
{
|
2020-08-24 20:28:44 +00:00
|
|
|
yyVAL.node = &ast.StmtClassConstList{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodePosition(yyDollar[1].token, yyDollar[4].node),
|
|
|
|
},
|
|
|
|
ConstTkn: yyDollar[1].token,
|
|
|
|
Consts: []ast.Vertex{
|
|
|
|
&ast.StmtConstant{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodePosition(yyDollar[2].token, yyDollar[4].node),
|
|
|
|
},
|
|
|
|
Name: &ast.Identifier{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenPosition(yyDollar[2].token),
|
|
|
|
},
|
|
|
|
Value: yyDollar[2].token.Value,
|
|
|
|
},
|
|
|
|
EqualTkn: yyDollar[3].token,
|
|
|
|
Expr: yyDollar[4].node,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
2020-08-24 20:28:44 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyVAL.node.(*ast.StmtClassConstList).Consts).(*ast.StmtConstant).Name, token.Start, yyDollar[2].token.SkippedTokens)
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 216:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2881
|
2017-11-29 14:21:44 +00:00
|
|
|
{
|
2018-02-03 12:29:23 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 217:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2888
|
2017-11-29 14:21:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 218:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2896
|
2017-11-29 20:56:37 +00:00
|
|
|
{
|
2018-02-03 12:29:23 +00:00
|
|
|
yyVAL.list = nil
|
2017-11-29 20:56:37 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 219:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2900
|
2017-11-29 20:56:37 +00:00
|
|
|
{
|
2018-02-03 12:29:23 +00:00
|
|
|
yyVAL.list = yyDollar[1].list
|
2017-11-29 20:56:37 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 220:
|
2018-02-03 12:29:23 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2907
|
2017-11-29 20:56:37 +00:00
|
|
|
{
|
2018-02-03 12:29:23 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
2017-11-29 20:56:37 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 221:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2914
|
2017-11-29 21:43:39 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2017-11-29 21:43:39 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 222:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2921
|
2017-11-29 21:43:39 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].list...)
|
2017-11-29 21:43:39 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 223:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2925
|
2017-11-29 21:43:39 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.list = yyDollar[1].list
|
2017-11-29 21:43:39 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 224:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2932
|
2017-11-29 21:43:39 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
fetch := &ast.ExprArrayDimFetch{ast.Node{}, nil, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, fetch)
|
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
fetch.GetNode().Position = position.NewNodePosition(yyDollar[3].node)
|
2018-02-04 16:51:44 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(fetch, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(fetch, token.Expr, yyDollar[4].token.SkippedTokens)
|
2017-11-29 21:43:39 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 225:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2944
|
2017-11-29 21:43:39 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
fetch := &ast.ExprArrayDimFetch{ast.Node{}, nil, yyDollar[2].node}
|
|
|
|
yyVAL.list = []ast.Vertex{fetch}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
fetch.GetNode().Position = position.NewNodePosition(yyDollar[2].node)
|
2018-02-04 16:51:44 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(fetch, token.Var, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(fetch, token.Expr, yyDollar[3].token.SkippedTokens)
|
2017-11-29 21:43:39 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 226:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2959
|
2017-11-29 21:43:39 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].list...)
|
2017-11-29 21:43:39 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 227:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2963
|
2017-11-29 21:43:39 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.list = yyDollar[1].list
|
2017-11-29 21:43:39 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 228:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2967
|
2017-11-29 22:07:15 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.list = yyDollar[1].list
|
2017-11-29 22:07:15 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 229:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2974
|
2017-11-29 22:07:15 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.list = nil
|
2017-11-29 22:07:15 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 230:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2978
|
2017-11-29 21:43:39 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.list = yyDollar[1].list
|
2017-11-29 21:43:39 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 231:
|
2018-02-01 14:07:18 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:2985
|
2017-11-29 21:43:39 +00:00
|
|
|
{
|
2018-04-29 16:58:49 +00:00
|
|
|
|
|
|
|
if yyDollar[3].node != nil {
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprNew{ast.Node{}, yyDollar[2].node, yyDollar[3].node.(*ast.ArgumentList)}
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[3].node)
|
2018-02-01 14:07:18 +00:00
|
|
|
} else {
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprNew{ast.Node{}, yyDollar[2].node, nil}
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-02-01 14:07:18 +00:00
|
|
|
}
|
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 21:43:39 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 232:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-6 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3002
|
2017-11-29 21:43:39 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
listNode := &ast.ExprList{ast.Node{}, yyDollar[3].list}
|
|
|
|
yyVAL.node = &ast.ExprAssign{ast.Node{}, listNode, yyDollar[6].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
listNode.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[6].node)
|
2018-02-01 10:35:43 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(listNode, token.List, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(listNode, token.ArrayPairList, yyDollar[4].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[5].token.SkippedTokens)
|
2017-11-29 21:43:39 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 233:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3017
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprAssign{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 234:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3028
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprAssignReference{ast.Node{}, yyDollar[1].node, yyDollar[4].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[4].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Equal, yyDollar[3].token.SkippedTokens)
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 235:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-6 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3040
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
var _new *ast.ExprNew
|
2018-02-04 17:37:27 +00:00
|
|
|
|
2018-04-29 16:58:49 +00:00
|
|
|
if yyDollar[6].node != nil {
|
2020-05-13 17:18:53 +00:00
|
|
|
_new = &ast.ExprNew{ast.Node{}, yyDollar[5].node, yyDollar[6].node.(*ast.ArgumentList)}
|
2018-04-29 16:58:49 +00:00
|
|
|
} else {
|
2020-05-13 17:18:53 +00:00
|
|
|
_new = &ast.ExprNew{ast.Node{}, yyDollar[5].node, nil}
|
2018-02-04 17:37:27 +00:00
|
|
|
}
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprAssignReference{ast.Node{}, yyDollar[1].node, _new}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
|
|
|
if yyDollar[6].node != nil {
|
2020-06-29 11:38:10 +00:00
|
|
|
_new.GetNode().Position = position.NewTokenNodePosition(yyDollar[4].token, yyDollar[6].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
} else {
|
2020-06-29 11:38:10 +00:00
|
|
|
_new.GetNode().Position = position.NewTokenNodePosition(yyDollar[4].token, yyDollar[5].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
}
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, _new)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Equal, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(_new, token.Start, yyDollar[4].token.SkippedTokens)
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 236:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3065
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprClone{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 237:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3075
|
2018-02-04 16:51:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprAssignPlus{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
2018-02-04 16:51:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 238:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3085
|
2018-02-04 16:51:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprAssignMinus{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
2018-02-04 16:51:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 239:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3096
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprAssignMul{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 240:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3107
|
2017-11-29 21:43:39 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprAssignPow{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
2017-11-29 21:43:39 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 241:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3118
|
2017-11-29 20:56:37 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprAssignDiv{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
2017-11-29 20:56:37 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 242:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3129
|
2017-11-29 14:21:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprAssignConcat{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 243:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3140
|
2017-11-30 17:37:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprAssignMod{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
2017-11-30 17:37:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 244:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3151
|
2018-02-03 10:09:02 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprAssignBitwiseAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
2018-02-03 10:09:02 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 245:
|
2018-02-03 10:09:02 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3162
|
2018-02-03 10:09:02 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprAssignBitwiseOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
2018-02-03 10:09:02 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 246:
|
2018-02-03 10:09:02 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3173
|
2018-02-03 10:09:02 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprAssignBitwiseXor{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
2018-02-03 10:09:02 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 247:
|
2018-02-03 10:09:02 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3184
|
2018-02-03 10:09:02 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprAssignShiftLeft{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
2018-02-03 10:09:02 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 248:
|
2018-02-03 10:09:02 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3195
|
2018-02-01 14:07:18 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprAssignShiftRight{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
2018-02-01 14:07:18 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 249:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3206
|
2017-11-29 14:21:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprPostInc{ast.Node{}, yyDollar[1].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[2].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 250:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3217
|
2017-11-29 14:21:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprPreInc{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 251:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3227
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprPostDec{ast.Node{}, yyDollar[1].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[2].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 252:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3238
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprPreDec{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 14:21:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 253:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3248
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryBooleanOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 254:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3259
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryBooleanAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-12-01 07:15:46 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 255:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3270
|
2017-12-01 07:15:46 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryLogicalOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 256:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3281
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryLogicalAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 257:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3292
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryLogicalXor{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 258:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3303
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryBitwiseOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 259:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3314
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryBitwiseAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 260:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3325
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryBitwiseXor{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 261:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3336
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryConcat{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 262:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3347
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryPlus{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 263:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3358
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryMinus{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 264:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3369
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryMul{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 265:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3380
|
2017-11-27 22:37:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryPow{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-27 22:37:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 266:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3391
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryDiv{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 267:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3402
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryMod{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 268:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3413
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryShiftLeft{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 269:
|
2018-02-03 10:09:02 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3424
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryShiftRight{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 270:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3435
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprUnaryPlus{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 271:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3445
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprUnaryMinus{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 272:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3455
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBooleanNot{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-02-04 17:37:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 273:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3465
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBitwiseNot{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 274:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3475
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryIdentical{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 275:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3486
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryNotIdentical{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 276:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3497
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 277:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3508
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryNotEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.Equal, yyDollar[2].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 278:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3520
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinarySmaller{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 279:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3531
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinarySmallerOrEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 280:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3542
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryGreater{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 281:
|
2017-11-30 17:37:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3553
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryGreaterOrEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 282:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3564
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprInstanceOf{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 283:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3575
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2018-02-04 17:37:27 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 284:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3579
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 285:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3583
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.node = yyDollar[2].node
|
|
|
|
|
2019-01-03 17:03:20 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Start, append(yyDollar[1].token.SkippedTokens, yyVAL.node.GetNode().Tokens[token.Start]...))
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, append(yyVAL.node.GetNode().Tokens[token.End], yyDollar[3].token.SkippedTokens...))
|
2019-01-03 17:03:20 +00:00
|
|
|
|
2018-02-04 16:51:44 +00:00
|
|
|
for _, n := range yyDollar[4].list {
|
|
|
|
switch nn := n.(type) {
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.ExprArrayDimFetch:
|
|
|
|
nn.Var = yyVAL.node
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.node = nn
|
2020-05-13 17:18:53 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(nn.Var, yyVAL.node)
|
2018-02-04 16:51:44 +00:00
|
|
|
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.ExprPropertyFetch:
|
|
|
|
nn.Var = yyVAL.node
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.node = nn
|
2020-05-13 17:18:53 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(nn.Var, yyVAL.node)
|
2018-02-04 16:51:44 +00:00
|
|
|
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.ExprMethodCall:
|
|
|
|
nn.Var = yyVAL.node
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.node = nn
|
2020-05-13 17:18:53 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(nn.Var, yyVAL.node)
|
2018-02-04 16:51:44 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyVAL.node, n)
|
2018-02-04 16:51:44 +00:00
|
|
|
}
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 286:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3613
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprTernary{ast.Node{}, yyDollar[1].node, yyDollar[3].node, yyDollar[5].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[5].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Cond, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.True, yyDollar[4].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 287:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3625
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprTernary{ast.Node{}, yyDollar[1].node, nil, yyDollar[4].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[4].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Cond, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.True, yyDollar[3].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 288:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3637
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2018-02-04 17:37:27 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 289:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3641
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprCastInt{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.Cast, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 290:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3652
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprCastDouble{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.Cast, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 291:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3663
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprCastString{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.Cast, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 292:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3674
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprCastArray{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.Cast, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 293:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3685
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprCastObject{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.Cast, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 294:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3696
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprCastBool{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.Cast, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 295:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3707
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprCastUnset{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.Cast, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 296:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3718
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-08-09 20:40:55 +00:00
|
|
|
yyVAL.node = &ast.ExprExit{ast.Node{}, false, yyDollar[2].node}
|
2018-07-09 21:51:02 +00:00
|
|
|
|
2020-05-13 17:18:53 +00:00
|
|
|
if bytes.EqualFold(yyDollar[1].token.Value, []byte("die")) {
|
2020-08-09 20:40:55 +00:00
|
|
|
yyVAL.node.(*ast.ExprExit).Die = true
|
2018-06-06 23:25:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// save position
|
2020-08-09 20:40:55 +00:00
|
|
|
if yyDollar[2].node == nil {
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
} else {
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 297:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3736
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprErrorSuppress{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 298:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3746
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2018-02-03 17:33:22 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 299:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3750
|
2017-11-24 01:36:58 +00:00
|
|
|
{
|
2018-02-04 17:37:27 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-24 01:36:58 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 300:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3754
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2018-02-04 17:37:27 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 301:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3758
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprShellExec{ast.Node{}, yyDollar[2].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 302:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3768
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprPrint{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 303:
|
2018-02-03 10:09:02 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3778
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprYield{ast.Node{}, nil, nil}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 304:
|
2018-02-04 17:37:27 +00:00
|
|
|
yyDollar = yyS[yypt-9 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3788
|
2017-11-30 18:36:10 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprClosure{ast.Node{}, yyDollar[2].token != nil, false, yyDollar[4].list, yyDollar[6].ClosureUse, nil, yyDollar[8].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[9].token)
|
2018-02-04 17:37:27 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
if yyDollar[2].token == nil {
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Function, yyDollar[3].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
} else {
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Function, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Ampersand, yyDollar[3].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
}
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.ParameterList, yyDollar[5].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.LexicalVars, yyDollar[7].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Stmts, yyDollar[9].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
|
|
|
|
// normalize
|
|
|
|
if yyDollar[6].ClosureUse == nil {
|
2020-07-02 21:20:32 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Params, yyVAL.node.GetNode().Tokens[token.LexicalVars])
|
2020-05-13 17:18:53 +00:00
|
|
|
delete(yyVAL.node.GetNode().Tokens, token.LexicalVars)
|
2018-06-06 23:25:27 +00:00
|
|
|
}
|
2017-11-30 18:36:10 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 305:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-10 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3812
|
2017-11-29 13:53:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprClosure{ast.Node{}, yyDollar[3].token != nil, true, yyDollar[5].list, yyDollar[7].ClosureUse, nil, yyDollar[9].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[10].token)
|
2018-02-04 17:37:27 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Static, yyDollar[2].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
if yyDollar[3].token == nil {
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Function, yyDollar[4].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
} else {
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Function, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Ampersand, yyDollar[4].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
}
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.ParameterList, yyDollar[6].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.LexicalVars, yyDollar[8].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Stmts, yyDollar[10].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
|
|
|
|
// normalize
|
|
|
|
if yyDollar[7].ClosureUse == nil {
|
2020-07-02 21:20:32 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Params, yyVAL.node.GetNode().Tokens[token.LexicalVars])
|
2020-05-13 17:18:53 +00:00
|
|
|
delete(yyVAL.node.GetNode().Tokens, token.LexicalVars)
|
2018-06-06 23:25:27 +00:00
|
|
|
}
|
2017-11-29 13:53:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 306:
|
2018-02-01 14:07:18 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3840
|
2017-11-29 13:53:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprYield{ast.Node{}, nil, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 13:53:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 307:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3850
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprYield{ast.Node{}, nil, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 308:
|
2018-02-01 14:07:18 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3860
|
2017-11-30 19:14:26 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprYield{ast.Node{}, yyDollar[2].node, yyDollar[4].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[4].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[3].token.SkippedTokens)
|
2017-11-30 19:14:26 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 309:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3871
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprYield{ast.Node{}, yyDollar[2].node, yyDollar[4].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[4].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[3].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 310:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3885
|
2017-11-30 19:14:26 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Expr, yyDollar[4].token.SkippedTokens)
|
2017-11-30 19:14:26 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 311:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3896
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Expr, yyDollar[4].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 312:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3907
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
str := &ast.ScalarString{ast.Node{}, yyDollar[1].token.Value}
|
|
|
|
yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, str, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
str.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(str, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(str, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Expr, yyDollar[4].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 313:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3921
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Expr, yyDollar[4].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 314:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3935
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprArray{ast.Node{}, yyDollar[3].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Array, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.ArrayPairList, yyDollar[4].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 315:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3947
|
2017-12-01 08:26:17 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprShortArray{ast.Node{}, yyDollar[2].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.ArrayPairList, yyDollar[3].token.SkippedTokens)
|
2017-12-01 08:26:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 316:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3961
|
2017-11-30 19:14:26 +00:00
|
|
|
{
|
2018-02-02 12:36:57 +00:00
|
|
|
yyVAL.token = yyDollar[1].token
|
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 317:
|
2018-02-02 12:36:57 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3968
|
2018-02-02 12:36:57 +00:00
|
|
|
{
|
2018-05-25 06:38:44 +00:00
|
|
|
yyVAL.ClosureUse = nil
|
2018-02-02 12:36:57 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 318:
|
2018-02-02 12:36:57 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3972
|
2018-02-02 12:36:57 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.ClosureUse = &ast.ExprClosureUse{ast.Node{}, yyDollar[3].list}
|
2018-05-25 06:38:44 +00:00
|
|
|
|
2018-07-29 08:44:38 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.ClosureUse.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
2018-06-10 23:41:12 +00:00
|
|
|
|
2018-07-29 08:44:38 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.ClosureUse, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.ClosureUse, token.Use, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.ClosureUse, token.LexicalVarList, yyDollar[4].token.SkippedTokens)
|
2017-11-30 19:14:26 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 319:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:3987
|
2017-11-30 19:14:26 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
2018-06-06 23:25:27 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, variable)
|
2018-02-02 12:36:57 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
2018-02-02 12:36:57 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(variable, token.Start, yyDollar[3].token.SkippedTokens)
|
2017-11-30 19:14:26 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 320:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4001
|
2017-12-01 07:15:46 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
|
|
|
reference := &ast.ExprReference{ast.Node{}, variable}
|
2018-05-25 06:38:44 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, reference)
|
2018-02-02 12:36:57 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[4].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[4].token)
|
|
|
|
reference.GetNode().Position = position.NewTokensPosition(yyDollar[3].token, yyDollar[4].token)
|
2018-02-02 12:36:57 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(reference, token.Start, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(variable, token.Start, yyDollar[4].token.SkippedTokens)
|
2017-12-01 07:15:46 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 321:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4018
|
2017-11-30 19:14:26 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
|
|
|
yyVAL.list = []ast.Vertex{variable}
|
2018-02-02 12:36:57 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-02-02 12:36:57 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(variable, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-30 19:14:26 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 322:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4031
|
2017-11-30 19:14:26 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
|
|
|
reference := &ast.ExprReference{ast.Node{}, variable}
|
|
|
|
yyVAL.list = []ast.Vertex{reference}
|
2018-02-02 12:36:57 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[2].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[2].token)
|
|
|
|
reference.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[2].token)
|
2018-02-02 12:36:57 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(reference, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(variable, token.Start, yyDollar[2].token.SkippedTokens)
|
2017-11-30 19:14:26 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 323:
|
2018-02-01 18:40:04 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4050
|
2017-11-30 19:14:26 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
name := &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[1].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[1].list,
|
|
|
|
}
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprFunctionCall{ast.Node{}, name, yyDollar[2].node.(*ast.ArgumentList)}
|
2018-02-03 18:13:11 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(name, yyDollar[2].node)
|
2017-11-30 19:14:26 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 324:
|
2018-02-01 18:40:04 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4063
|
2017-11-30 19:14:26 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
name := &ast.NameRelative{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[3].list),
|
|
|
|
},
|
|
|
|
NsTkn: yyDollar[1].token,
|
|
|
|
NsSeparatorTkn: yyDollar[2].token,
|
|
|
|
Parts: yyDollar[3].list,
|
|
|
|
}
|
|
|
|
yyVAL.node = &ast.ExprFunctionCall{ast.Node{}, name, yyDollar[4].node.(*ast.ArgumentList)}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-08-24 11:20:20 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(name, yyDollar[4].node)
|
2017-11-30 19:14:26 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 325:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4078
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
name := &ast.NameFullyQualified{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list),
|
|
|
|
},
|
|
|
|
NsSeparatorTkn: yyDollar[1].token,
|
|
|
|
Parts: yyDollar[2].list,
|
|
|
|
}
|
|
|
|
yyVAL.node = &ast.ExprFunctionCall{ast.Node{}, name, yyDollar[3].node.(*ast.ArgumentList)}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-08-24 11:20:20 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(name, yyDollar[3].node)
|
2017-11-30 19:14:26 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 326:
|
2018-02-01 18:40:04 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4092
|
2017-12-01 07:15:46 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprStaticCall{ast.Node{}, yyDollar[1].node, yyDollar[3].node, yyDollar[4].node.(*ast.ArgumentList)}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[4].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Name, yyDollar[2].token.SkippedTokens)
|
2017-12-01 07:15:46 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 327:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4103
|
2017-12-01 07:15:46 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprStaticCall{ast.Node{}, yyDollar[1].node, yyDollar[3].node, yyDollar[4].node.(*ast.ArgumentList)}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[4].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Name, yyDollar[2].token.SkippedTokens)
|
2017-12-01 07:15:46 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 328:
|
2018-02-01 18:40:04 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4114
|
2017-12-01 07:15:46 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprStaticCall{ast.Node{}, yyDollar[1].node, yyDollar[3].node, yyDollar[4].node.(*ast.ArgumentList)}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[4].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Name, yyDollar[2].token.SkippedTokens)
|
2017-12-01 07:15:46 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 329:
|
2018-02-01 18:40:04 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4125
|
2017-12-01 07:15:46 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprStaticCall{ast.Node{}, yyDollar[1].node, yyDollar[3].node, yyDollar[4].node.(*ast.ArgumentList)}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[4].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Name, yyDollar[2].token.SkippedTokens)
|
2017-12-01 07:15:46 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 330:
|
2018-02-01 18:40:04 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4136
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprFunctionCall{ast.Node{}, yyDollar[1].node, yyDollar[2].node.(*ast.ArgumentList)}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[2].node)
|
2019-02-13 20:18:07 +00:00
|
|
|
|
|
|
|
// save comments
|
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 331:
|
2017-11-29 23:25:07 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4149
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 332:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4159
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
yyVAL.node = &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[1].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[1].list,
|
|
|
|
}
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 333:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4168
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
yyVAL.node = &ast.NameRelative{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[3].list),
|
|
|
|
},
|
|
|
|
NsTkn: yyDollar[1].token,
|
|
|
|
NsSeparatorTkn: yyDollar[2].token,
|
|
|
|
Parts: yyDollar[3].list,
|
|
|
|
}
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 334:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4179
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
yyVAL.node = &ast.NameFullyQualified{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list),
|
|
|
|
},
|
|
|
|
NsSeparatorTkn: yyDollar[1].token,
|
|
|
|
Parts: yyDollar[2].list,
|
|
|
|
}
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 335:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4192
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
yyVAL.node = &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[1].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[1].list,
|
|
|
|
}
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 336:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4201
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
yyVAL.node = &ast.NameRelative{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[3].list),
|
|
|
|
},
|
|
|
|
NsTkn: yyDollar[1].token,
|
|
|
|
NsSeparatorTkn: yyDollar[2].token,
|
|
|
|
Parts: yyDollar[3].list,
|
|
|
|
}
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 337:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4212
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
yyVAL.node = &ast.NameFullyQualified{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list),
|
|
|
|
},
|
|
|
|
NsSeparatorTkn: yyDollar[1].token,
|
|
|
|
Parts: yyDollar[2].list,
|
|
|
|
}
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 338:
|
2018-02-01 14:07:18 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4225
|
2018-02-01 14:07:18 +00:00
|
|
|
{
|
|
|
|
yyVAL.node = yyDollar[1].node
|
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 339:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4229
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2018-02-01 14:07:18 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 340:
|
2018-02-01 14:07:18 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4236
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2018-02-01 14:07:18 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyDollar[3].list[0], token.Var, yyDollar[2].token.SkippedTokens)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
2018-02-04 16:51:44 +00:00
|
|
|
for _, n := range yyDollar[3].list {
|
|
|
|
switch nn := n.(type) {
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.ExprArrayDimFetch:
|
|
|
|
nn.Var = yyVAL.node
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyVAL.node, nn)
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.node = nn
|
2020-05-13 17:18:53 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(nn.Var, yyVAL.node)
|
2018-02-04 16:51:44 +00:00
|
|
|
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.ExprPropertyFetch:
|
|
|
|
nn.Var = yyVAL.node
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyVAL.node, nn)
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.node = nn
|
2020-05-13 17:18:53 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(nn.Var, yyVAL.node)
|
2018-02-01 14:07:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-04 16:51:44 +00:00
|
|
|
for _, n := range yyDollar[4].list {
|
|
|
|
switch nn := n.(type) {
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.ExprArrayDimFetch:
|
|
|
|
nn.Var = yyVAL.node
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyVAL.node, nn)
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.node = nn
|
2020-05-13 17:18:53 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(nn.Var, yyVAL.node)
|
2018-02-04 16:51:44 +00:00
|
|
|
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.ExprPropertyFetch:
|
|
|
|
nn.Var = yyVAL.node
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyVAL.node, nn)
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.node = nn
|
2020-05-13 17:18:53 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(nn.Var, yyVAL.node)
|
2018-02-01 14:07:18 +00:00
|
|
|
}
|
|
|
|
}
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 341:
|
2018-02-01 14:07:18 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4275
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2018-02-01 14:07:18 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 342:
|
2018-02-01 14:07:18 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4283
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].list...)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 343:
|
2018-02-01 14:07:18 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4287
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{}
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 344:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4295
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.list = yyDollar[2].list
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyDollar[2].list[0], token.Var, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 345:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4305
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-08-09 20:40:55 +00:00
|
|
|
yyVAL.node = nil
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 346:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4309
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-09-03 19:18:06 +00:00
|
|
|
yyVAL.node = &ast.ParserBrackets{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[2].token),
|
|
|
|
},
|
|
|
|
OpenBracketTkn: yyDollar[1].token,
|
|
|
|
CloseBracketTkn: yyDollar[2].token,
|
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, yyDollar[2].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 347:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4323
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-08-09 20:40:55 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 348:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4330
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{}
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 349:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4334
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
part := &ast.ScalarEncapsedStringPart{ast.Node{}, yyDollar[1].token.Value}
|
|
|
|
yyVAL.list = []ast.Vertex{part}
|
2019-02-13 20:18:07 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
part.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 350:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4342
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2018-02-04 17:37:27 +00:00
|
|
|
yyVAL.list = yyDollar[1].list
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 351:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4349
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2018-04-29 16:58:49 +00:00
|
|
|
yyVAL.node = nil
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 352:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4353
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2018-04-29 16:58:49 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 353:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4360
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarLnumber{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 354:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4370
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarDnumber{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 355:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4380
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarString{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 356:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4390
|
2018-02-01 10:35:43 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-02-01 10:35:43 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 357:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4400
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 358:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4410
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 359:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4420
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 360:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4430
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 361:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4440
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 362:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4450
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 363:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4460
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
encapsed := &ast.ScalarEncapsedStringPart{ast.Node{}, yyDollar[2].token.Value}
|
|
|
|
yyVAL.node = &ast.ScalarHeredoc{ast.Node{}, yyDollar[1].token.Value, []ast.Vertex{encapsed}}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
encapsed.GetNode().Position = position.NewTokenPosition(yyDollar[2].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 364:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4472
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarHeredoc{ast.Node{}, yyDollar[1].token.Value, nil}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[2].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 365:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4485
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
target := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value}
|
|
|
|
yyVAL.node = &ast.ExprClassConstFetch{ast.Node{}, yyDollar[1].node, target}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
target.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[3].token)
|
2018-01-29 14:37:09 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Name, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(target, token.Start, yyDollar[3].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 366:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4502
|
2018-02-04 16:51:44 +00:00
|
|
|
{
|
2018-02-04 18:55:45 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-02-04 16:51:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 367:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4509
|
2018-02-04 16:51:44 +00:00
|
|
|
{
|
2018-02-04 18:55:45 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-02-04 16:51:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 368:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4513
|
2018-02-04 16:51:44 +00:00
|
|
|
{
|
2018-02-04 18:55:45 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-02-04 16:51:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 369:
|
2018-02-01 18:40:04 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4517
|
2018-02-01 18:40:04 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
name := &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[1].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[1].list,
|
|
|
|
}
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprConstFetch{ast.Node{}, name}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodePosition(name)
|
2018-02-01 18:40:04 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 370:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4530
|
2018-02-01 18:40:04 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
name := &ast.NameRelative{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[3].list),
|
|
|
|
},
|
|
|
|
NsTkn: yyDollar[1].token,
|
|
|
|
NsSeparatorTkn: yyDollar[2].token,
|
|
|
|
Parts: yyDollar[3].list,
|
|
|
|
}
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprConstFetch{ast.Node{}, name}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[3].list)
|
2018-02-01 18:40:04 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 371:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4545
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
name := &ast.NameFullyQualified{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list),
|
|
|
|
},
|
|
|
|
NsSeparatorTkn: yyDollar[1].token,
|
|
|
|
Parts: yyDollar[2].list,
|
|
|
|
}
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprConstFetch{ast.Node{}, name}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list)
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 372:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4559
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprArray{ast.Node{}, yyDollar[3].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Array, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.ArrayPairList, yyDollar[4].token.SkippedTokens)
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 373:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4571
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprShortArray{ast.Node{}, yyDollar[2].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.ArrayPairList, yyDollar[3].token.SkippedTokens)
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 374:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4582
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
2018-02-04 18:55:45 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 375:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4586
|
2018-02-03 17:33:22 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-02-03 17:33:22 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 376:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4596
|
2018-02-01 18:40:04 +00:00
|
|
|
{
|
2018-02-04 18:55:45 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-02-01 18:40:04 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 377:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4603
|
2018-02-01 18:40:04 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Expr, yyDollar[4].token.SkippedTokens)
|
2018-02-01 18:40:04 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 378:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4614
|
2018-02-01 18:40:04 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryPlus{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-02-01 18:40:04 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 379:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4625
|
2018-02-01 18:40:04 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryMinus{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-02-01 18:40:04 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 380:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4636
|
2018-02-01 18:40:04 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryMul{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-02-01 18:40:04 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 381:
|
2018-02-01 18:40:04 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4647
|
2018-02-01 14:07:18 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryPow{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-02-01 14:07:18 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 382:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4658
|
2018-02-01 18:40:04 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryDiv{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-02-01 18:40:04 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 383:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4669
|
2018-02-01 14:07:18 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryMod{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-02-01 14:07:18 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 384:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4680
|
2018-02-01 14:07:18 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBooleanNot{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-02-01 14:07:18 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 385:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4690
|
2018-02-03 10:09:02 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBitwiseNot{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-02-03 10:09:02 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 386:
|
2018-02-03 10:09:02 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4700
|
2018-02-03 10:09:02 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryBitwiseOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-02-03 10:09:02 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 387:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4711
|
2018-02-03 10:09:02 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryBitwiseAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-02-03 10:09:02 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 388:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4722
|
2018-02-03 10:09:02 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryBitwiseXor{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-02-03 10:09:02 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 389:
|
2018-02-03 10:09:02 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4733
|
2018-02-01 10:35:43 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryShiftLeft{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-02-01 10:35:43 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 390:
|
2018-02-01 14:07:18 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4744
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryShiftRight{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 391:
|
2018-02-01 18:40:04 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4755
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryConcat{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 392:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4766
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryLogicalXor{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 393:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4777
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryLogicalAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 394:
|
2018-02-01 18:40:04 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4788
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryLogicalOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 395:
|
2018-02-01 18:40:04 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4799
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryBooleanAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 396:
|
2018-02-03 10:09:02 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4810
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryBooleanOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 397:
|
2018-02-03 10:09:02 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4821
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryIdentical{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 398:
|
2018-02-01 14:07:18 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4832
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryNotIdentical{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 399:
|
2018-02-01 14:07:18 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4843
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 400:
|
2018-02-01 14:07:18 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4854
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryNotEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.Equal, yyDollar[2].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 401:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4866
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinarySmaller{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 402:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4877
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryGreater{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 403:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4888
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinarySmallerOrEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 404:
|
2018-02-01 18:40:04 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4899
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprBinaryGreaterOrEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Expr, yyDollar[2].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 405:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4910
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprTernary{ast.Node{}, yyDollar[1].node, nil, yyDollar[4].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[4].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Cond, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.True, yyDollar[3].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 406:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4922
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprTernary{ast.Node{}, yyDollar[1].node, yyDollar[3].node, yyDollar[5].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[5].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Cond, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.True, yyDollar[4].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 407:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4934
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprUnaryPlus{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 408:
|
2018-02-03 17:33:22 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4944
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprUnaryMinus{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 409:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4954
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2018-02-04 18:55:45 +00:00
|
|
|
yyVAL.node = yyDollar[2].node
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Start, append(yyDollar[1].token.SkippedTokens, yyVAL.node.GetNode().Tokens[token.Start]...))
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, append(yyVAL.node.GetNode().Tokens[token.End], yyDollar[3].token.SkippedTokens...))
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 410:
|
2018-02-01 18:40:04 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4965
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2018-02-02 12:36:57 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 411:
|
2018-02-01 18:40:04 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4969
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
name := &ast.NameName{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewNodeListPosition(yyDollar[1].list),
|
|
|
|
},
|
|
|
|
Parts: yyDollar[1].list,
|
|
|
|
}
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprConstFetch{ast.Node{}, name}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodePosition(name)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 412:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4982
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
name := &ast.NameRelative{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[3].list),
|
|
|
|
},
|
|
|
|
NsTkn: yyDollar[1].token,
|
|
|
|
NsSeparatorTkn: yyDollar[2].token,
|
|
|
|
Parts: yyDollar[3].list,
|
|
|
|
}
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprConstFetch{ast.Node{}, name}
|
2019-02-13 20:18:07 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodePosition(name)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 413:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:4997
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-08-24 11:20:20 +00:00
|
|
|
name := &ast.NameFullyQualified{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokenNodeListPosition(yyDollar[1].token, yyDollar[2].list),
|
|
|
|
},
|
|
|
|
NsSeparatorTkn: yyDollar[1].token,
|
|
|
|
Parts: yyDollar[2].list,
|
|
|
|
}
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprConstFetch{ast.Node{}, name}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodePosition(name)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 414:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5014
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
name := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
|
|
|
yyVAL.node = &ast.ExprVariable{ast.Node{}, name}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
name.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-01-31 10:55:50 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 415:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5026
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2018-01-31 10:55:50 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 416:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5030
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2018-01-31 10:55:50 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 417:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5034
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2018-01-31 10:55:50 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 418:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5038
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarEncapsed{ast.Node{}, yyDollar[2].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 419:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5048
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarHeredoc{ast.Node{}, yyDollar[1].token.Value, yyDollar[2].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 420:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5058
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 421:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5071
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2018-02-04 18:55:45 +00:00
|
|
|
yyVAL.list = nil
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 422:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5075
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2018-02-04 18:55:45 +00:00
|
|
|
yyVAL.list = yyDollar[1].list
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
|
|
|
if yyDollar[2].token != nil {
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
2018-06-06 23:25:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
case 423:
|
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5087
|
2018-06-06 23:25:27 +00:00
|
|
|
{
|
|
|
|
yyVAL.token = nil
|
|
|
|
}
|
|
|
|
case 424:
|
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5091
|
2018-06-06 23:25:27 +00:00
|
|
|
{
|
|
|
|
yyVAL.token = yyDollar[1].token
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 425:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5098
|
2018-02-01 10:35:43 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
arrayItem := &ast.ExprArrayItem{ast.Node{}, false, yyDollar[3].node, yyDollar[5].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, arrayItem)
|
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
arrayItem.GetNode().Position = position.NewNodesPosition(yyDollar[3].node, yyDollar[5].node)
|
2018-02-04 18:55:45 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[3].node, arrayItem)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(arrayItem, token.Expr, yyDollar[4].token.SkippedTokens)
|
2018-02-01 10:35:43 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 426:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5111
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
arrayItem := &ast.ExprArrayItem{ast.Node{}, false, nil, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, arrayItem)
|
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
arrayItem.GetNode().Position = position.NewNodePosition(yyDollar[3].node)
|
2018-02-04 18:55:45 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[3].node, arrayItem)
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 427:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5123
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
arrayItem := &ast.ExprArrayItem{ast.Node{}, false, yyDollar[1].node, yyDollar[3].node}
|
|
|
|
yyVAL.list = []ast.Vertex{arrayItem}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
arrayItem.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-02-04 18:55:45 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, arrayItem)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(arrayItem, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 428:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5135
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
arrayItem := &ast.ExprArrayItem{ast.Node{}, false, nil, yyDollar[1].node}
|
|
|
|
yyVAL.list = []ast.Vertex{arrayItem}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
arrayItem.GetNode().Position = position.NewNodePosition(yyDollar[1].node)
|
2018-06-10 23:41:12 +00:00
|
|
|
|
2019-02-13 20:18:07 +00:00
|
|
|
// save comments
|
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, arrayItem)
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 429:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5149
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2018-02-01 10:35:43 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 430:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5153
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2018-02-01 14:07:18 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 431:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5160
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-09-03 19:18:06 +00:00
|
|
|
yyVAL.node = &ast.ParserBrackets{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token),
|
|
|
|
},
|
|
|
|
OpenBracketTkn: yyDollar[1].token,
|
|
|
|
Child: yyDollar[2].node,
|
|
|
|
CloseBracketTkn: yyDollar[3].token,
|
|
|
|
}
|
2018-06-10 23:41:12 +00:00
|
|
|
|
2018-07-02 17:48:55 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, yyDollar[3].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 432:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5175
|
2017-11-28 20:47:44 +00:00
|
|
|
{
|
2020-09-03 19:18:06 +00:00
|
|
|
yyVAL.node = &ast.ParserBrackets{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token),
|
|
|
|
},
|
|
|
|
OpenBracketTkn: yyDollar[1].token,
|
|
|
|
Child: yyDollar[2].node,
|
|
|
|
CloseBracketTkn: yyDollar[3].token,
|
|
|
|
}
|
2018-06-10 23:41:12 +00:00
|
|
|
|
2018-07-02 17:48:55 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, yyDollar[3].token.SkippedTokens)
|
2017-11-28 20:47:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 433:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5194
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2018-02-01 10:35:43 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 434:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5202
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2018-01-29 19:12:12 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 435:
|
2017-11-30 17:37:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5209
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2018-01-29 19:12:12 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 436:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5216
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
|
|
|
|
|
|
|
if yyDollar[4].list != nil {
|
2020-05-13 17:18:53 +00:00
|
|
|
yyDollar[4].list[0].(*ast.ExprMethodCall).Method = yyDollar[3].list[len(yyDollar[3].list)-1].(*ast.ExprPropertyFetch).Property
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar[3].list = append(yyDollar[3].list[:len(yyDollar[3].list)-1], yyDollar[4].list...)
|
|
|
|
}
|
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyDollar[3].list[0], token.Var, yyDollar[2].token.SkippedTokens)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
2018-02-04 16:51:44 +00:00
|
|
|
for _, n := range yyDollar[3].list {
|
|
|
|
switch nn := n.(type) {
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.ExprArrayDimFetch:
|
|
|
|
nn.Var = yyVAL.node
|
2020-06-29 11:38:10 +00:00
|
|
|
nn.GetNode().Position = position.NewNodesPosition(yyVAL.node, nn)
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.node = nn
|
2020-05-13 17:18:53 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(nn.Var, yyVAL.node)
|
2018-02-04 16:51:44 +00:00
|
|
|
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.ExprPropertyFetch:
|
|
|
|
nn.Var = yyVAL.node
|
2020-06-29 11:38:10 +00:00
|
|
|
nn.GetNode().Position = position.NewNodesPosition(yyVAL.node, nn)
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.node = nn
|
2020-05-13 17:18:53 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(nn.Var, yyVAL.node)
|
2018-02-04 16:51:44 +00:00
|
|
|
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.ExprMethodCall:
|
|
|
|
nn.Var = yyVAL.node
|
2020-06-29 11:38:10 +00:00
|
|
|
nn.GetNode().Position = position.NewNodesPosition(yyVAL.node, nn)
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.node = nn
|
2020-05-13 17:18:53 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(nn.Var, yyVAL.node)
|
2018-02-04 16:51:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for _, n := range yyDollar[5].list {
|
|
|
|
switch nn := n.(type) {
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.ExprArrayDimFetch:
|
|
|
|
nn.Var = yyVAL.node
|
2020-06-29 11:38:10 +00:00
|
|
|
nn.GetNode().Position = position.NewNodesPosition(yyVAL.node, nn)
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.node = nn
|
2020-05-13 17:18:53 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(nn.Var, yyVAL.node)
|
2018-02-04 16:51:44 +00:00
|
|
|
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.ExprPropertyFetch:
|
|
|
|
nn.Var = yyVAL.node
|
2020-06-29 11:38:10 +00:00
|
|
|
nn.GetNode().Position = position.NewNodesPosition(yyVAL.node, nn)
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.node = nn
|
2020-05-13 17:18:53 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(nn.Var, yyVAL.node)
|
2018-02-04 16:51:44 +00:00
|
|
|
|
2020-05-13 17:18:53 +00:00
|
|
|
case *ast.ExprMethodCall:
|
|
|
|
nn.Var = yyVAL.node
|
2020-06-29 11:38:10 +00:00
|
|
|
nn.GetNode().Position = position.NewNodesPosition(yyVAL.node, nn)
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.node = nn
|
2020-05-13 17:18:53 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(nn.Var, yyVAL.node)
|
2018-02-04 16:51:44 +00:00
|
|
|
}
|
|
|
|
}
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 437:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5272
|
2017-12-01 08:26:17 +00:00
|
|
|
{
|
2018-02-01 10:35:43 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-12-01 08:26:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 438:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5279
|
2017-12-01 08:26:17 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].list...)
|
2017-12-01 08:26:17 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 439:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5283
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{}
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 440:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5291
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
if yyDollar[3].list != nil {
|
2020-05-13 17:18:53 +00:00
|
|
|
yyDollar[3].list[0].(*ast.ExprMethodCall).Method = yyDollar[2].list[len(yyDollar[2].list)-1].(*ast.ExprPropertyFetch).Property
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar[2].list = append(yyDollar[2].list[:len(yyDollar[2].list)-1], yyDollar[3].list...)
|
|
|
|
}
|
|
|
|
|
|
|
|
yyVAL.list = yyDollar[2].list
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyDollar[2].list[0], token.Var, yyDollar[1].token.SkippedTokens)
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 441:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5306
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
fetch := &ast.ExprArrayDimFetch{ast.Node{}, nil, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, fetch)
|
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
fetch.GetNode().Position = position.NewNodePosition(yyDollar[3].node)
|
2018-02-04 16:51:44 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(fetch, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(fetch, token.Expr, yyDollar[4].token.SkippedTokens)
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 442:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5318
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
fetch := &ast.ExprArrayDimFetch{ast.Node{}, nil, yyDollar[3].node}
|
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node, fetch}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
fetch.GetNode().Position = position.NewNodePosition(yyDollar[3].node)
|
2018-02-04 16:51:44 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(fetch, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(fetch, token.Expr, yyDollar[4].token.SkippedTokens)
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 443:
|
2018-02-04 16:51:44 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5333
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprMethodCall{ast.Node{}, nil, nil, yyDollar[1].node.(*ast.ArgumentList)}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodePosition(yyDollar[1].node)
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 444:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5343
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 445:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5347
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.list = yyDollar[1].list
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 446:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5351
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.list = nil
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 447:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5358
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2018-02-01 18:40:04 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 448:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5362
|
2017-11-30 18:45:54 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyDollar[1].simpleIndirectReference.last.VarName = yyDollar[2].node
|
2018-02-01 18:40:04 +00:00
|
|
|
|
|
|
|
for _, n := range yyDollar[1].simpleIndirectReference.all {
|
2020-06-29 11:38:10 +00:00
|
|
|
n.GetNode().Position = position.NewNodesPosition(n, yyDollar[2].node)
|
2018-02-01 18:40:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
yyVAL.node = yyDollar[1].simpleIndirectReference.all[0]
|
2017-11-30 18:45:54 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 449:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5375
|
2017-11-30 18:45:54 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprStaticPropertyFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Name, yyDollar[2].token.SkippedTokens)
|
2017-11-30 18:45:54 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 450:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5386
|
2017-11-30 18:45:54 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprStaticPropertyFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Name, yyDollar[2].token.SkippedTokens)
|
2017-11-30 18:45:54 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 451:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5400
|
2017-11-30 18:45:54 +00:00
|
|
|
{
|
2018-02-01 10:35:43 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-30 18:45:54 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 452:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5407
|
2017-11-30 18:45:54 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Expr, yyDollar[4].token.SkippedTokens)
|
2017-11-30 18:45:54 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 453:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5418
|
2017-11-30 18:45:54 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Expr, yyDollar[4].token.SkippedTokens)
|
2017-11-30 18:45:54 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 454:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5432
|
2017-11-30 18:45:54 +00:00
|
|
|
{
|
2018-02-01 10:35:43 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-30 18:45:54 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 455:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5436
|
2017-11-30 18:45:54 +00:00
|
|
|
{
|
2018-01-29 19:12:12 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-30 18:45:54 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 456:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5440
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2018-01-29 19:12:12 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 457:
|
2018-01-02 11:53:55 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5448
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2018-01-29 19:12:12 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 458:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5452
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyDollar[1].simpleIndirectReference.last.VarName = yyDollar[2].node
|
2018-01-29 19:12:12 +00:00
|
|
|
|
|
|
|
for _, n := range yyDollar[1].simpleIndirectReference.all {
|
2020-06-29 11:38:10 +00:00
|
|
|
n.GetNode().Position = position.NewNodesPosition(n, yyDollar[2].node)
|
2018-01-29 19:12:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
yyVAL.node = yyDollar[1].simpleIndirectReference.all[0]
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 459:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5462
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2018-02-01 18:40:04 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 460:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5469
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Expr, yyDollar[4].token.SkippedTokens)
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 461:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5480
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Expr, yyDollar[4].token.SkippedTokens)
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 462:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5491
|
2017-11-30 19:14:26 +00:00
|
|
|
{
|
2018-01-29 14:37:09 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-30 19:14:26 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 463:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5499
|
2018-01-02 11:53:55 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
name := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprVariable{ast.Node{}, name}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
name.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-01-29 14:37:09 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2018-01-02 11:53:55 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 464:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5511
|
2017-11-30 19:14:26 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprVariable{ast.Node{}, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyDollar[3].node, token.Start, append(yyDollar[2].token.SkippedTokens, yyDollar[3].node.GetNode().Tokens[token.Start]...))
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyDollar[3].node, token.End, append(yyDollar[3].node.GetNode().Tokens[token.End], yyDollar[4].token.SkippedTokens...))
|
2017-11-30 19:14:26 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 465:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5526
|
2017-11-30 19:14:26 +00:00
|
|
|
{
|
2018-01-29 19:12:12 +00:00
|
|
|
yyVAL.node = nil
|
2017-11-30 19:14:26 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 466:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5530
|
2017-11-30 19:14:26 +00:00
|
|
|
{
|
2018-01-29 19:12:12 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-30 19:14:26 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 467:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5538
|
2018-02-01 10:35:43 +00:00
|
|
|
{
|
2018-02-04 16:51:44 +00:00
|
|
|
yyVAL.list = yyDollar[1].list
|
2018-02-01 10:35:43 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 468:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5542
|
2017-11-30 18:36:10 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
fetch := &ast.ExprPropertyFetch{ast.Node{}, nil, yyDollar[1].node}
|
|
|
|
yyVAL.list = []ast.Vertex{fetch}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
fetch.GetNode().Position = position.NewNodePosition(yyDollar[1].node)
|
2017-11-30 18:36:10 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 469:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5553
|
2017-11-30 18:36:10 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
fetch := &ast.ExprArrayDimFetch{ast.Node{}, nil, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, fetch)
|
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
fetch.GetNode().Position = position.NewNodePosition(yyDollar[3].node)
|
2018-02-04 16:51:44 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(fetch, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(fetch, token.Expr, yyDollar[4].token.SkippedTokens)
|
2017-11-30 18:36:10 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 470:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5565
|
2017-11-30 19:14:26 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
fetch := &ast.ExprArrayDimFetch{ast.Node{}, nil, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, fetch)
|
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
fetch.GetNode().Position = position.NewNodePosition(yyDollar[3].node)
|
2018-02-04 16:51:44 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(fetch, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(fetch, token.Expr, yyDollar[4].token.SkippedTokens)
|
2017-11-30 19:14:26 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 471:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5577
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
fetch := &ast.ExprPropertyFetch{ast.Node{}, nil, yyDollar[1].node}
|
|
|
|
yyVAL.list = []ast.Vertex{fetch}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
fetch.GetNode().Position = position.NewNodePosition(yyDollar[1].node)
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 472:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5588
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 473:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5598
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2018-02-01 10:35:43 +00:00
|
|
|
yyVAL.node = yyDollar[2].node
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Start, append(yyDollar[1].token.SkippedTokens, yyVAL.node.GetNode().Tokens[token.Start]...))
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, append(yyVAL.node.GetNode().Tokens[token.End], yyDollar[3].token.SkippedTokens...))
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 474:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5612
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
n := &ast.ExprVariable{ast.Node{}, nil}
|
|
|
|
yyVAL.simpleIndirectReference = simpleIndirectReference{[]*ast.ExprVariable{n}, n}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
n.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-01-29 19:12:12 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(n, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 475:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5623
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
n := &ast.ExprVariable{ast.Node{}, nil}
|
2018-01-29 19:12:12 +00:00
|
|
|
|
2020-05-13 17:18:53 +00:00
|
|
|
yyDollar[1].simpleIndirectReference.last.VarName = n
|
2018-01-29 19:12:12 +00:00
|
|
|
yyDollar[1].simpleIndirectReference.all = append(yyDollar[1].simpleIndirectReference.all, n)
|
|
|
|
yyDollar[1].simpleIndirectReference.last = n
|
|
|
|
yyVAL.simpleIndirectReference = yyDollar[1].simpleIndirectReference
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
n.GetNode().Position = position.NewTokenPosition(yyDollar[2].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(n, token.Start, yyDollar[2].token.SkippedTokens)
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 476:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5641
|
2018-02-01 10:35:43 +00:00
|
|
|
{
|
2018-06-26 08:57:17 +00:00
|
|
|
if len(yyDollar[1].list) == 0 {
|
2020-05-13 17:18:53 +00:00
|
|
|
yyDollar[1].list = []ast.Vertex{&ast.ExprArrayItem{ast.Node{}, false, nil, nil}}
|
2018-06-26 08:57:17 +00:00
|
|
|
}
|
|
|
|
|
2018-02-01 10:35:43 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
2018-02-01 10:35:43 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 477:
|
2017-12-01 07:15:46 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5652
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
if yyDollar[1].node.(*ast.ExprArrayItem).Key == nil && yyDollar[1].node.(*ast.ExprArrayItem).Val == nil {
|
|
|
|
yyVAL.list = []ast.Vertex{}
|
2018-02-14 19:02:57 +00:00
|
|
|
} else {
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2018-02-14 19:02:57 +00:00
|
|
|
}
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 478:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5664
|
2017-11-29 23:25:07 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprArrayItem{ast.Node{}, false, nil, yyDollar[1].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewNodePosition(yyDollar[1].node)
|
2018-06-10 23:41:12 +00:00
|
|
|
|
2019-02-13 20:18:07 +00:00
|
|
|
// save comments
|
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2017-11-29 23:25:07 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 479:
|
2018-02-01 10:35:43 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5674
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
listNode := &ast.ExprList{ast.Node{}, yyDollar[3].list}
|
|
|
|
yyVAL.node = &ast.ExprArrayItem{ast.Node{}, false, nil, listNode}
|
2018-02-10 11:25:08 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
listNode.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewNodePosition(listNode)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(listNode, token.List, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(listNode, token.ArrayPairList, yyDollar[4].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 480:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5688
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprArrayItem{ast.Node{}, false, nil, nil}
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 481:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-0 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5696
|
2017-11-28 20:47:44 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{}
|
2017-11-28 20:47:44 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 482:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5700
|
2017-12-17 22:49:25 +00:00
|
|
|
{
|
2018-02-01 10:04:17 +00:00
|
|
|
yyVAL.list = yyDollar[1].list
|
2018-06-06 23:25:27 +00:00
|
|
|
|
2018-06-26 09:22:51 +00:00
|
|
|
if yyDollar[2].token != nil {
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, &ast.ExprArrayItem{ast.Node{}, false, nil, nil})
|
2018-06-26 09:22:51 +00:00
|
|
|
}
|
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
|
|
|
if yyDollar[2].token != nil {
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
2018-06-06 23:25:27 +00:00
|
|
|
}
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 483:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-5 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5716
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
arrayItem := &ast.ExprArrayItem{ast.Node{}, false, yyDollar[3].node, yyDollar[5].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, arrayItem)
|
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
arrayItem.GetNode().Position = position.NewNodesPosition(yyDollar[3].node, yyDollar[5].node)
|
2018-02-01 10:04:17 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[3].node, arrayItem)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(arrayItem, token.Expr, yyDollar[4].token.SkippedTokens)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 484:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5729
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
arrayItem := &ast.ExprArrayItem{ast.Node{}, false, nil, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, arrayItem)
|
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
arrayItem.GetNode().Position = position.NewNodePosition(yyDollar[3].node)
|
2018-02-01 10:04:17 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[3].node, arrayItem)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 485:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5741
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
arrayItem := &ast.ExprArrayItem{ast.Node{}, false, yyDollar[1].node, yyDollar[3].node}
|
|
|
|
yyVAL.list = []ast.Vertex{arrayItem}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
arrayItem.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[3].node)
|
2018-02-01 10:04:17 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, arrayItem)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(arrayItem, token.Expr, yyDollar[2].token.SkippedTokens)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 486:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5753
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
arrayItem := &ast.ExprArrayItem{ast.Node{}, false, nil, yyDollar[1].node}
|
|
|
|
yyVAL.list = []ast.Vertex{arrayItem}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
arrayItem.GetNode().Position = position.NewNodePosition(yyDollar[1].node)
|
2018-06-10 23:41:12 +00:00
|
|
|
|
2019-02-13 20:18:07 +00:00
|
|
|
// save comments
|
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, arrayItem)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 487:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-6 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5764
|
2017-11-30 16:15:49 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
reference := &ast.ExprReference{ast.Node{}, yyDollar[6].node}
|
|
|
|
arrayItem := &ast.ExprArrayItem{ast.Node{}, false, yyDollar[3].node, reference}
|
2018-06-06 23:25:27 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, arrayItem)
|
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
reference.GetNode().Position = position.NewTokenNodePosition(yyDollar[5].token, yyDollar[6].node)
|
|
|
|
arrayItem.GetNode().Position = position.NewNodesPosition(yyDollar[3].node, yyDollar[6].node)
|
2018-02-01 10:04:17 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[3].node, arrayItem)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(arrayItem, token.Expr, yyDollar[4].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(reference, token.Start, yyDollar[5].token.SkippedTokens)
|
2017-11-30 16:15:49 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 488:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5780
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
reference := &ast.ExprReference{ast.Node{}, yyDollar[4].node}
|
|
|
|
arrayItem := &ast.ExprArrayItem{ast.Node{}, false, nil, reference}
|
2018-06-06 23:25:27 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, arrayItem)
|
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
reference.GetNode().Position = position.NewTokenNodePosition(yyDollar[3].token, yyDollar[4].node)
|
|
|
|
arrayItem.GetNode().Position = position.NewTokenNodePosition(yyDollar[3].token, yyDollar[4].node)
|
2018-02-01 10:04:17 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(arrayItem, token.Start, yyDollar[3].token.SkippedTokens)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 489:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5794
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
reference := &ast.ExprReference{ast.Node{}, yyDollar[4].node}
|
|
|
|
arrayItem := &ast.ExprArrayItem{ast.Node{}, false, yyDollar[1].node, reference}
|
|
|
|
yyVAL.list = []ast.Vertex{arrayItem}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
reference.GetNode().Position = position.NewTokenNodePosition(yyDollar[3].token, yyDollar[4].node)
|
|
|
|
arrayItem.GetNode().Position = position.NewNodesPosition(yyDollar[1].node, yyDollar[4].node)
|
2018-02-01 10:04:17 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, arrayItem)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(arrayItem, token.Expr, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(reference, token.Start, yyDollar[3].token.SkippedTokens)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 490:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5809
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
reference := &ast.ExprReference{ast.Node{}, yyDollar[2].node}
|
|
|
|
arrayItem := &ast.ExprArrayItem{ast.Node{}, false, nil, reference}
|
|
|
|
yyVAL.list = []ast.Vertex{arrayItem}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
reference.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
|
|
|
arrayItem.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-02-01 10:04:17 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(arrayItem, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 491:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5825
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2018-01-31 10:55:50 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[2].node)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 492:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5829
|
2017-11-30 16:15:49 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
encapsed := &ast.ScalarEncapsedStringPart{ast.Node{}, yyDollar[2].token.Value}
|
2018-01-31 10:55:50 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, encapsed)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
encapsed.GetNode().Position = position.NewTokenPosition(yyDollar[2].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(encapsed, token.Start, yyDollar[2].token.SkippedTokens)
|
2017-11-30 16:15:49 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 493:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5840
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 494:
|
2017-12-01 07:15:46 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5844
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
encapsed := &ast.ScalarEncapsedStringPart{ast.Node{}, yyDollar[1].token.Value}
|
|
|
|
yyVAL.list = []ast.Vertex{encapsed, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
encapsed.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(encapsed, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 495:
|
2017-12-01 07:15:46 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5858
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
name := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprVariable{ast.Node{}, name}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
name.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-01-31 10:55:50 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 496:
|
2018-01-31 10:55:50 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5870
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
|
|
|
yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, variable, yyDollar[3].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
2018-01-31 10:55:50 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Expr, yyDollar[4].token.SkippedTokens)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 497:
|
2018-01-31 10:55:50 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5885
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
|
|
|
fetch := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value}
|
|
|
|
yyVAL.node = &ast.ExprPropertyFetch{ast.Node{}, variable, fetch}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
fetch.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-01-31 10:55:50 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Var, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(fetch, token.Start, yyDollar[3].token.SkippedTokens)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 498:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5902
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
variable := &ast.ExprVariable{ast.Node{}, yyDollar[2].node}
|
2018-07-29 08:44:38 +00:00
|
|
|
|
|
|
|
yyVAL.node = variable
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, yyDollar[3].token.SkippedTokens)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-04-09 20:08:29 +00:00
|
|
|
case 499:
|
2018-06-06 23:25:27 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5915
|
2018-06-06 23:25:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
name := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value}
|
|
|
|
variable := &ast.ExprVariable{ast.Node{}, name}
|
2018-07-29 08:44:38 +00:00
|
|
|
|
|
|
|
yyVAL.node = variable
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
name.GetNode().Position = position.NewTokenPosition(yyDollar[2].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[3].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, yyDollar[3].token.SkippedTokens)
|
2018-06-06 23:25:27 +00:00
|
|
|
}
|
|
|
|
case 500:
|
2018-01-31 10:55:50 +00:00
|
|
|
yyDollar = yyS[yypt-6 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5930
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value}
|
|
|
|
variable := &ast.ExprVariable{ast.Node{}, identifier}
|
|
|
|
yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, variable, yyDollar[4].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[2].token)
|
|
|
|
variable.GetNode().Position = position.NewTokenPosition(yyDollar[2].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[6].token)
|
2018-01-31 10:55:50 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setToken(variable, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Var, yyDollar[3].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.Expr, yyDollar[5].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, yyDollar[6].token.SkippedTokens)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 501:
|
2018-01-31 10:55:50 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5947
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2018-01-31 10:55:50 +00:00
|
|
|
yyVAL.node = yyDollar[2].node
|
2018-06-10 23:41:12 +00:00
|
|
|
|
2018-07-29 08:44:38 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setToken(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, yyDollar[3].token.SkippedTokens)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 502:
|
2018-01-31 10:55:50 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5958
|
2017-11-30 18:07:45 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarString{ast.Node{}, yyDollar[1].token.Value}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 503:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5968
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2018-01-31 10:55:50 +00:00
|
|
|
// TODO: add option to handle 64 bit integer
|
2020-05-13 17:18:53 +00:00
|
|
|
if _, err := strconv.Atoi(string(yyDollar[1].token.Value)); err == nil {
|
|
|
|
yyVAL.node = &ast.ScalarLnumber{ast.Node{}, yyDollar[1].token.Value}
|
2018-01-31 10:55:50 +00:00
|
|
|
} else {
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ScalarString{ast.Node{}, yyDollar[1].token.Value}
|
2018-01-31 10:55:50 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
2019-02-13 20:18:07 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-30 18:07:45 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 504:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5983
|
2017-11-30 17:37:45 +00:00
|
|
|
{
|
2020-06-29 21:45:15 +00:00
|
|
|
identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value}
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprVariable{ast.Node{}, identifier}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
identifier.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenPosition(yyDollar[1].token)
|
2018-01-31 10:55:50 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-30 17:37:45 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 505:
|
2018-01-31 10:55:50 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:5998
|
2017-11-30 16:15:49 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprIsset{ast.Node{}, yyDollar[3].list}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Isset, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.VarList, yyDollar[4].token.SkippedTokens)
|
2017-11-30 16:15:49 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 506:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:6010
|
2017-11-30 16:15:49 +00:00
|
|
|
{
|
2020-09-03 19:18:06 +00:00
|
|
|
exprBrackets := &ast.ParserBrackets{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[2].token, yyDollar[4].token),
|
|
|
|
},
|
|
|
|
OpenBracketTkn: yyDollar[2].token,
|
|
|
|
Child: yyDollar[3].node,
|
|
|
|
CloseBracketTkn: yyDollar[4].token,
|
|
|
|
}
|
2020-08-09 20:40:55 +00:00
|
|
|
yyVAL.node = &ast.ExprEmpty{ast.Node{}, exprBrackets}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(exprBrackets, token.Start, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(exprBrackets, token.End, yyDollar[4].token.SkippedTokens)
|
2017-11-30 16:15:49 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 507:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:6030
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-09-03 19:18:06 +00:00
|
|
|
exprBrackets := &ast.ParserBrackets{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[2].token, yyDollar[4].token),
|
|
|
|
},
|
|
|
|
OpenBracketTkn: yyDollar[2].token,
|
|
|
|
Child: yyDollar[3].node,
|
|
|
|
CloseBracketTkn: yyDollar[4].token,
|
|
|
|
}
|
2020-08-09 20:40:55 +00:00
|
|
|
yyVAL.node = &ast.ExprEmpty{ast.Node{}, exprBrackets}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(exprBrackets, token.Start, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(exprBrackets, token.End, yyDollar[4].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 508:
|
2018-01-31 10:55:50 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:6050
|
2017-11-28 22:35:21 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprInclude{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 22:35:21 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 509:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:6060
|
2017-11-28 16:00:27 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprIncludeOnce{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-28 16:00:27 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 510:
|
2018-01-31 10:55:50 +00:00
|
|
|
yyDollar = yyS[yypt-4 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:6070
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-09-03 19:18:06 +00:00
|
|
|
exprBrackets := &ast.ParserBrackets{
|
|
|
|
Node: ast.Node{
|
|
|
|
Position: position.NewTokensPosition(yyDollar[2].token, yyDollar[4].token),
|
|
|
|
},
|
|
|
|
OpenBracketTkn: yyDollar[2].token,
|
|
|
|
Child: yyDollar[3].node,
|
|
|
|
CloseBracketTkn: yyDollar[4].token,
|
|
|
|
}
|
2020-08-09 20:40:55 +00:00
|
|
|
yyVAL.node = &ast.ExprEval{ast.Node{}, exprBrackets}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokensPosition(yyDollar[1].token, yyDollar[4].token)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(exprBrackets, token.Start, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloatingTokens(exprBrackets, token.End, yyDollar[4].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 511:
|
2018-01-31 10:55:50 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:6090
|
2017-11-30 16:15:49 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprRequire{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-30 16:15:49 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 512:
|
2017-12-01 07:15:46 +00:00
|
|
|
yyDollar = yyS[yypt-2 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:6100
|
2017-11-30 16:15:49 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.node = &ast.ExprRequireOnce{ast.Node{}, yyDollar[2].node}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
yyVAL.node.GetNode().Position = position.NewTokenNodePosition(yyDollar[1].token, yyDollar[2].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.SkippedTokens)
|
2017-11-30 16:15:49 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 513:
|
2018-01-31 10:55:50 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:6113
|
2017-11-30 18:36:10 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
yyVAL.list = []ast.Vertex{yyDollar[1].node}
|
2017-11-30 18:36:10 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 514:
|
2018-02-01 10:04:17 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:6117
|
2017-11-30 18:36:10 +00:00
|
|
|
{
|
2018-02-01 10:04:17 +00:00
|
|
|
yyVAL.list = append(yyDollar[1].list, yyDollar[3].node)
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save comments
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(lastNode(yyDollar[1].list), token.End, yyDollar[2].token.SkippedTokens)
|
2017-11-30 18:36:10 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 515:
|
2018-02-01 10:04:17 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:6127
|
2017-11-30 18:36:10 +00:00
|
|
|
{
|
2018-02-01 10:04:17 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-30 18:36:10 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 516:
|
2018-01-31 10:55:50 +00:00
|
|
|
yyDollar = yyS[yypt-1 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:6131
|
2017-11-30 18:36:10 +00:00
|
|
|
{
|
2018-02-01 10:04:17 +00:00
|
|
|
yyVAL.node = yyDollar[1].node
|
2017-11-30 18:36:10 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 517:
|
2018-01-31 10:55:50 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:6138
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
target := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value}
|
|
|
|
yyVAL.node = &ast.ExprClassConstFetch{ast.Node{}, yyDollar[1].node, target}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
target.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[3].token)
|
2018-01-31 10:55:50 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Name, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(target, token.Start, yyDollar[3].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 518:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:6152
|
2017-11-30 18:36:10 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
target := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value}
|
|
|
|
yyVAL.node = &ast.ExprClassConstFetch{ast.Node{}, yyDollar[1].node, target}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
target.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[3].token)
|
2018-01-31 10:55:50 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Name, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(target, token.Start, yyDollar[3].token.SkippedTokens)
|
2017-11-30 18:36:10 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 519:
|
2018-01-29 14:11:45 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:6169
|
2018-01-27 10:33:13 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
target := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value}
|
|
|
|
yyVAL.node = &ast.ExprClassConstFetch{ast.Node{}, yyDollar[1].node, target}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
target.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[3].token)
|
2018-01-31 10:55:50 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Name, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(target, token.Start, yyDollar[3].token.SkippedTokens)
|
2018-01-27 10:33:13 +00:00
|
|
|
}
|
2018-06-06 23:25:27 +00:00
|
|
|
case 520:
|
2018-01-27 10:33:13 +00:00
|
|
|
yyDollar = yyS[yypt-3 : yypt+1]
|
2020-09-04 08:37:17 +00:00
|
|
|
// line internal/php5/php5.y:6186
|
2017-11-30 18:36:10 +00:00
|
|
|
{
|
2020-05-13 17:18:53 +00:00
|
|
|
target := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value}
|
|
|
|
yyVAL.node = &ast.ExprClassConstFetch{ast.Node{}, yyDollar[1].node, target}
|
2018-06-06 23:25:27 +00:00
|
|
|
|
|
|
|
// save position
|
2020-06-29 11:38:10 +00:00
|
|
|
target.GetNode().Position = position.NewTokenPosition(yyDollar[3].token)
|
|
|
|
yyVAL.node.GetNode().Position = position.NewNodeTokenPosition(yyDollar[1].node, yyDollar[3].token)
|
2018-01-31 10:55:50 +00:00
|
|
|
|
2018-06-06 23:25:27 +00:00
|
|
|
// save comments
|
2019-02-13 20:18:07 +00:00
|
|
|
yylex.(*Parser).MoveFreeFloating(yyDollar[1].node, yyVAL.node)
|
2020-08-17 17:31:04 +00:00
|
|
|
yylex.(*Parser).setFreeFloating(yyVAL.node, token.Name, yyDollar[2].token.SkippedTokens)
|
|
|
|
yylex.(*Parser).setFreeFloating(target, token.Start, yyDollar[3].token.SkippedTokens)
|
2017-11-30 18:36:10 +00:00
|
|
|
}
|
2017-11-23 15:33:47 +00:00
|
|
|
}
|
|
|
|
goto yystack /* stack new state and value */
|
|
|
|
}
|