Documentation

Php8 extends ParserAbstract
in package

Table of Contents

Constants

T_ABSTRACT  = 354
T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG  = 287
T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG  = 286
T_AND_EQUAL  = 276
T_ARRAY  = 374
T_ARRAY_CAST  = 303
T_AS  = 334
T_ATTRIBUTE  = 395
T_BOOL_CAST  = 305
T_BOOLEAN_AND  = 285
T_BOOLEAN_OR  = 284
T_BREAK  = 340
T_CALLABLE  = 375
T_CASE  = 338
T_CATCH  = 348
T_CLASS  = 365
T_CLASS_C  = 376
T_CLONE  = 309
T_COALESCE  = 283
T_COALESCE_EQUAL  = 282
T_CONCAT_EQUAL  = 274
T_CONST  = 345
T_CONSTANT_ENCAPSED_STRING  = 323
T_CONTINUE  = 341
T_CURLY_OPEN  = 385
T_DEC  = 299
T_DECLARE  = 332
T_DEFAULT  = 339
T_DIR  = 389
T_DIV_EQUAL  = 273
T_DNUMBER  = 316
T_DO  = 325
T_DOLLAR_OPEN_CURLY_BRACES  = 384
T_DOUBLE_ARROW  = 268
T_DOUBLE_CAST  = 301
T_ECHO  = 324
T_ELLIPSIS  = 391
T_ELSE  = 313
T_ELSEIF  = 312
T_EMPTY  = 363
T_ENCAPSED_AND_WHITESPACE  = 322
T_END_HEREDOC  = 383
T_ENDDECLARE  = 333
T_ENDFOR  = 329
T_ENDFOREACH  = 331
T_ENDIF  = 314
T_ENDSWITCH  = 337
T_ENDWHILE  = 327
T_ENUM  = 368
T_EVAL  = 260
T_EXIT  = 310
T_EXTENDS  = 369
T_FILE  = 381
T_FINAL  = 355
T_FINALLY  = 349
T_FN  = 344
T_FOR  = 328
T_FOREACH  = 330
T_FUNC_C  = 379
T_FUNCTION  = 343
T_GLOBAL  = 352
T_GOTO  = 342
T_HALT_COMPILER  = 364
T_IF  = 311
T_IMPLEMENTS  = 370
T_INC  = 298
T_INCLUDE  = 258
T_INCLUDE_ONCE  = 259
T_INLINE_HTML  = 321
T_INSTANCEOF  = 297
T_INSTEADOF  = 351
T_INT_CAST  = 300
T_INTERFACE  = 367
T_IS_EQUAL  = 288
T_IS_GREATER_OR_EQUAL  = 294
T_IS_IDENTICAL  = 290
T_IS_NOT_EQUAL  = 289
T_IS_NOT_IDENTICAL  = 291
T_IS_SMALLER_OR_EQUAL  = 293
T_ISSET  = 362
T_LINE  = 380
T_LIST  = 373
T_LNUMBER  = 315
T_LOGICAL_AND  = 265
T_LOGICAL_OR  = 263
T_LOGICAL_XOR  = 264
T_MATCH  = 336
T_METHOD_C  = 378
T_MINUS_EQUAL  = 271
T_MOD_EQUAL  = 275
T_MUL_EQUAL  = 272
T_NAME_FULLY_QUALIFIED  = 392
T_NAME_QUALIFIED  = 393
T_NAME_RELATIVE  = 394
T_NAMESPACE  = 387
T_NEW  = 308
T_NS_C  = 388
T_NS_SEPARATOR  = 390
T_NULLSAFE_OBJECT_OPERATOR  = 372
T_NUM_STRING  = 320
T_OBJECT_CAST  = 304
T_OBJECT_OPERATOR  = 371
T_OR_EQUAL  = 277
T_PAAMAYIM_NEKUDOTAYIM  = 386
T_PLUS_EQUAL  = 270
T_POW  = 307
T_POW_EQUAL  = 281
T_PRINT  = 266
T_PRIVATE  = 356
T_PROTECTED  = 357
T_PUBLIC  = 358
T_READONLY  = 359
T_REQUIRE  = 261
T_REQUIRE_ONCE  = 262
T_RETURN  = 346
T_SL  = 295
T_SL_EQUAL  = 279
T_SPACESHIP  = 292
T_SR  = 296
T_SR_EQUAL  = 280
T_START_HEREDOC  = 382
T_STATIC  = 353
T_STRING  = 317
T_STRING_CAST  = 302
T_STRING_VARNAME  = 318
T_SWITCH  = 335
T_THROW  = 257
T_TRAIT  = 366
T_TRAIT_C  = 377
T_TRY  = 347
T_UNSET  = 361
T_UNSET_CAST  = 306
T_USE  = 350
T_VAR  = 360
T_VARIABLE  = 319
T_WHILE  = 326
T_XOR_EQUAL  = 278
T_YIELD  = 267
T_YIELD_FROM  = 269
YYERRTOK  = 256
SYMBOL_NONE  = -1

Properties

$action  : array<string|int, mixed>
$actionBase  : array<string|int, mixed>
$actionCheck  : array<string|int, mixed>
$actionDefault  : array<string|int, mixed>
$actionTableSize  : int
$createdArrays  : SplObjectStorage<Array_, null>|null
$defaultAction  : int
$dropTokens  : array<int, bool>
$errorHandler  : ErrorHandler
$errorState  : int
$errorSymbol  : int
$goto  : array<string|int, mixed>
$gotoBase  : array<string|int, mixed>
$gotoCheck  : array<string|int, mixed>
$gotoDefault  : array<string|int, mixed>
$gotoTableSize  : int
$invalidSymbol  : int
$lexer  : Lexer
$numNonLeafStates  : int
$phpTokenToSymbol  : array<string|int, int>
$phpVersion  : PhpVersion
$productions  : array<int, string>
$reduceCallbacks  : array<string|int, callable>
$ruleToLength  : array<string|int, mixed>
$ruleToNonTerminal  : array<string|int, mixed>
$semStack  : array<string|int, mixed>
$semValue  : mixed
$symbolToName  : array<string|int, mixed>
$tokenEndStack  : array<string|int, int>
$tokenPos  : int
$tokens  : array<string|int, Token>
$tokenStartStack  : array<string|int, int>
$tokenToSymbol  : array<string|int, mixed>
$tokenToSymbolMapSize  : int
$unexpectedTokenRule  : int
$YY2TBLSTATE  : int

Methods

__construct()  : mixed
Creates a parser instance.
getTokens()  : array<string|int, Token>
Return tokens for the last parse.
parse()  : array<string|int, Stmt>|null
Parses PHP code into a node tree.
checkClass()  : void
checkClassConst()  : void
checkClassMethod()  : void
checkClassModifier()  : void
checkEnum()  : void
checkInterface()  : void
checkModifier()  : void
checkNamespace()  : void
checkParam()  : void
checkProperty()  : void
checkTryCatch()  : void
checkUseUse()  : void
createCommentFromToken()  : Comment
createEmptyElemAttributes()  : array<string, mixed>
createTokenMap()  : array<int, int>
Creates the token map.
doParse()  : array<string|int, Stmt>|null
emitError()  : void
fixupAlternativeElse()  : void
fixupArrayDestructuring()  : List_
getAttributes()  : array<string, mixed>
Get attributes for a node with the given start and end token positions.
getAttributesAt()  : array<string, mixed>
Get combined start and end attributes at a stack location
getAttributesForToken()  : array<string, mixed>
Get attributes for a single token at the given token position.
getCommentBeforeToken()  : Comment|null
Get last comment before the given token position, if any
getErrorMessage()  : string
Format error message including expected tokens.
getExpectedTokens()  : array<string|int, string>
Get limited number of expected tokens in given state.
getFloatCastKind()  : int
handleBuiltinTypes()  : Name|Identifier
handleHaltCompiler()  : string
handleNamespaces()  : array<string|int, Stmt>
Moves statements of semicolon-style namespaces into $ns->stmts and checks various error conditions.
initReduceCallbacks()  : void
Initialize $reduceCallbacks map.
inlineHtmlHasLeadingNewline()  : bool
maybeCreateNop()  : Nop|null
maybeCreateZeroLengthNop()  : Nop|null
Create a zero-length nop to capture preceding comments, if any.
parseDocString()  : Expr
parseLNumber()  : Int_
parseNumString()  : Int_|String_
Parse a T_NUM_STRING token into either an integer or string node.
postprocessList()  : void
stripIndentation()  : string
checkClassName()  : void
checkImplementedInterfaces()  : void
fixupNamespaceAttributes()  : void
getNamespaceErrorAttributes()  : array<string, mixed>
getNamespacingStyle()  : null|string
Determine namespacing style (semicolon or brace)

Constants

T_ABSTRACT

public mixed T_ABSTRACT = 354

T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG

public mixed T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG = 287

T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG

public mixed T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG = 286

T_AND_EQUAL

public mixed T_AND_EQUAL = 276

T_ARRAY

public mixed T_ARRAY = 374

T_ARRAY_CAST

public mixed T_ARRAY_CAST = 303

T_AS

public mixed T_AS = 334

T_ATTRIBUTE

public mixed T_ATTRIBUTE = 395

T_BOOL_CAST

public mixed T_BOOL_CAST = 305

T_BOOLEAN_AND

public mixed T_BOOLEAN_AND = 285

T_BOOLEAN_OR

public mixed T_BOOLEAN_OR = 284

T_BREAK

public mixed T_BREAK = 340

T_CALLABLE

public mixed T_CALLABLE = 375

T_CASE

public mixed T_CASE = 338

T_CATCH

public mixed T_CATCH = 348

T_CLASS

public mixed T_CLASS = 365

T_CLASS_C

public mixed T_CLASS_C = 376

T_CLONE

public mixed T_CLONE = 309

T_COALESCE

public mixed T_COALESCE = 283

T_COALESCE_EQUAL

public mixed T_COALESCE_EQUAL = 282

T_CONCAT_EQUAL

public mixed T_CONCAT_EQUAL = 274

T_CONST

public mixed T_CONST = 345

T_CONSTANT_ENCAPSED_STRING

public mixed T_CONSTANT_ENCAPSED_STRING = 323

T_CONTINUE

public mixed T_CONTINUE = 341

T_CURLY_OPEN

public mixed T_CURLY_OPEN = 385

T_DEC

public mixed T_DEC = 299

T_DECLARE

public mixed T_DECLARE = 332

T_DEFAULT

public mixed T_DEFAULT = 339

T_DIR

public mixed T_DIR = 389

T_DIV_EQUAL

public mixed T_DIV_EQUAL = 273

T_DNUMBER

public mixed T_DNUMBER = 316

T_DO

public mixed T_DO = 325

T_DOLLAR_OPEN_CURLY_BRACES

public mixed T_DOLLAR_OPEN_CURLY_BRACES = 384

T_DOUBLE_ARROW

public mixed T_DOUBLE_ARROW = 268

T_DOUBLE_CAST

public mixed T_DOUBLE_CAST = 301

T_ECHO

public mixed T_ECHO = 324

T_ELLIPSIS

public mixed T_ELLIPSIS = 391

T_ELSE

public mixed T_ELSE = 313

T_ELSEIF

public mixed T_ELSEIF = 312

T_EMPTY

public mixed T_EMPTY = 363

T_ENCAPSED_AND_WHITESPACE

public mixed T_ENCAPSED_AND_WHITESPACE = 322

T_END_HEREDOC

public mixed T_END_HEREDOC = 383

T_ENDDECLARE

public mixed T_ENDDECLARE = 333

T_ENDFOR

public mixed T_ENDFOR = 329

T_ENDFOREACH

public mixed T_ENDFOREACH = 331

T_ENDIF

public mixed T_ENDIF = 314

T_ENDSWITCH

public mixed T_ENDSWITCH = 337

T_ENDWHILE

public mixed T_ENDWHILE = 327

T_ENUM

public mixed T_ENUM = 368

T_EVAL

public mixed T_EVAL = 260

T_EXIT

public mixed T_EXIT = 310

T_EXTENDS

public mixed T_EXTENDS = 369

T_FILE

public mixed T_FILE = 381

T_FINAL

public mixed T_FINAL = 355

T_FINALLY

public mixed T_FINALLY = 349

T_FN

public mixed T_FN = 344

T_FOR

public mixed T_FOR = 328

T_FOREACH

public mixed T_FOREACH = 330

T_FUNC_C

public mixed T_FUNC_C = 379

T_FUNCTION

public mixed T_FUNCTION = 343

T_GLOBAL

public mixed T_GLOBAL = 352

T_GOTO

public mixed T_GOTO = 342

T_HALT_COMPILER

public mixed T_HALT_COMPILER = 364

T_IF

public mixed T_IF = 311

T_IMPLEMENTS

public mixed T_IMPLEMENTS = 370

T_INC

public mixed T_INC = 298

T_INCLUDE

public mixed T_INCLUDE = 258

T_INCLUDE_ONCE

public mixed T_INCLUDE_ONCE = 259

T_INLINE_HTML

public mixed T_INLINE_HTML = 321

T_INSTANCEOF

public mixed T_INSTANCEOF = 297

T_INSTEADOF

public mixed T_INSTEADOF = 351

T_INT_CAST

public mixed T_INT_CAST = 300

T_INTERFACE

public mixed T_INTERFACE = 367

T_IS_EQUAL

public mixed T_IS_EQUAL = 288

T_IS_GREATER_OR_EQUAL

public mixed T_IS_GREATER_OR_EQUAL = 294

T_IS_IDENTICAL

public mixed T_IS_IDENTICAL = 290

T_IS_NOT_EQUAL

public mixed T_IS_NOT_EQUAL = 289

T_IS_NOT_IDENTICAL

public mixed T_IS_NOT_IDENTICAL = 291

T_IS_SMALLER_OR_EQUAL

public mixed T_IS_SMALLER_OR_EQUAL = 293

T_ISSET

public mixed T_ISSET = 362

T_LINE

public mixed T_LINE = 380

T_LIST

public mixed T_LIST = 373

T_LNUMBER

public mixed T_LNUMBER = 315

T_LOGICAL_AND

public mixed T_LOGICAL_AND = 265

T_LOGICAL_OR

public mixed T_LOGICAL_OR = 263

T_LOGICAL_XOR

public mixed T_LOGICAL_XOR = 264

T_MATCH

public mixed T_MATCH = 336

T_METHOD_C

public mixed T_METHOD_C = 378

T_MINUS_EQUAL

public mixed T_MINUS_EQUAL = 271

T_MOD_EQUAL

public mixed T_MOD_EQUAL = 275

T_MUL_EQUAL

public mixed T_MUL_EQUAL = 272

T_NAME_FULLY_QUALIFIED

public mixed T_NAME_FULLY_QUALIFIED = 392

T_NAME_QUALIFIED

public mixed T_NAME_QUALIFIED = 393

T_NAME_RELATIVE

public mixed T_NAME_RELATIVE = 394

T_NAMESPACE

public mixed T_NAMESPACE = 387

T_NEW

public mixed T_NEW = 308

T_NS_C

public mixed T_NS_C = 388

T_NS_SEPARATOR

public mixed T_NS_SEPARATOR = 390

T_NULLSAFE_OBJECT_OPERATOR

public mixed T_NULLSAFE_OBJECT_OPERATOR = 372

T_NUM_STRING

public mixed T_NUM_STRING = 320

T_OBJECT_CAST

public mixed T_OBJECT_CAST = 304

T_OBJECT_OPERATOR

public mixed T_OBJECT_OPERATOR = 371

T_OR_EQUAL

public mixed T_OR_EQUAL = 277

T_PAAMAYIM_NEKUDOTAYIM

public mixed T_PAAMAYIM_NEKUDOTAYIM = 386

T_PLUS_EQUAL

public mixed T_PLUS_EQUAL = 270

T_POW

public mixed T_POW = 307

T_POW_EQUAL

public mixed T_POW_EQUAL = 281

T_PRINT

public mixed T_PRINT = 266

T_PRIVATE

public mixed T_PRIVATE = 356

T_PROTECTED

public mixed T_PROTECTED = 357

T_PUBLIC

public mixed T_PUBLIC = 358

T_READONLY

public mixed T_READONLY = 359

T_REQUIRE

public mixed T_REQUIRE = 261

T_REQUIRE_ONCE

public mixed T_REQUIRE_ONCE = 262

T_RETURN

public mixed T_RETURN = 346

T_SL

public mixed T_SL = 295

T_SL_EQUAL

public mixed T_SL_EQUAL = 279

T_SPACESHIP

public mixed T_SPACESHIP = 292

T_SR

public mixed T_SR = 296

T_SR_EQUAL

public mixed T_SR_EQUAL = 280

T_START_HEREDOC

public mixed T_START_HEREDOC = 382

T_STATIC

public mixed T_STATIC = 353

T_STRING

public mixed T_STRING = 317

T_STRING_CAST

public mixed T_STRING_CAST = 302

T_STRING_VARNAME

public mixed T_STRING_VARNAME = 318

T_SWITCH

public mixed T_SWITCH = 335

T_THROW

public mixed T_THROW = 257

T_TRAIT

public mixed T_TRAIT = 366

T_TRAIT_C

public mixed T_TRAIT_C = 377

T_TRY

public mixed T_TRY = 347

T_UNSET

public mixed T_UNSET = 361

T_UNSET_CAST

public mixed T_UNSET_CAST = 306

T_USE

public mixed T_USE = 350

T_VAR

public mixed T_VAR = 360

T_VARIABLE

public mixed T_VARIABLE = 319

T_WHILE

public mixed T_WHILE = 326

T_XOR_EQUAL

public mixed T_XOR_EQUAL = 278

T_YIELD

public mixed T_YIELD = 267

T_YIELD_FROM

public mixed T_YIELD_FROM = 269

YYERRTOK

public mixed YYERRTOK = 256

Properties

$action

protected array<string|int, mixed> $action = array(133, 134, 135, 582, 136, 137, 0, 751, 752, 753, 138, 38, 327, -32766, -32766, -32766, -32766, -32766, -32766, 837, 826, -32767, -32767, -32767, -32767, 102, 103, 104, 1112, 1113, 1114, 1111, 1110, 1109, 1115, 745, 744, -32766, 1027, -32766, -32766, -32766, -32766, -32766, -32766, -32766, -32767, -32767, -32767, -32767, -32767, 1245, -32766, -32766, 1322, 754, 1112, 1113, 1114, 1111, 1110, 1109, 1115, 459, 460, 461, 2, 990, 1306, 265, 139, 404, 758, 759, 760, 761, 467, 468, 429, 835, 606, -16, 1341, 23, 292, 815, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 791, 583, 792, 793, 794, 795, 783, 784, 345, 346, 786, 787, 772, 773, 774, 776, 777, 778, 356, 818, 819, 820, 821, 822, 584, 779, 780, 585, 586, 941, 803, 801, 802, 814, 798, 799, 835, 826, 587, 588, 797, 589, 590, 591, 592, 593, 594, -328, 36, 251, 35, -194, 800, 595, 596, -193, 140, -85, 133, 134, 135, 582, 136, 137, 1060, 751, 752, 753, 138, 38, 129, -110, -110, -585, -32766, -585, -110, -32766, -32766, -32766, 241, 836, -110, 145, 959, 960, -32766, -32766, -32766, 961, -594, -32766, 482, 745, 744, 955, 1036, -594, -32766, 991, -32766, -32766, -32766, -32766, -32766, -32766, -32766, -32766, -32766, -32766, -32766, -32766, 299, 754, 831, 75, -32766, -32766, -32766, 291, 142, 326, 242, -85, 326, 382, 381, 265, 139, 404, 758, 759, 760, 761, 82, 423, 429, -32766, 326, -32766, -32766, -32766, -32766, 815, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 791, 583, 792, 793, 794, 795, 783, 784, 345, 346, 786, 787, 772, 773, 774, 776, 777, 778, 356, 818, 819, 820, 821, 822, 584, 779, 780, 585, 586, 254, 803, 801, 802, 814, 798, 799, 832, 725, 587, 588, 797, 589, 590, 591, 592, 593, 594, -328, 83, 84, 85, -194, 800, 595, 596, -193, 149, 775, 746, 747, 748, 749, 750, 151, 751, 752, 753, 788, 789, 37, 483, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, -594, 274, -594, -32766, -32766, -32766, -32766, -32766, -32766, 310, 1089, 127, 312, 110, 737, 1326, 21, 754, -32766, -32766, -32766, -272, 1325, -32766, -32766, 1088, -32766, -32766, -32766, -32766, -32766, 755, 756, 757, 758, 759, 760, 761, 1104, -32766, 824, -32766, -32766, -545, 429, 1036, 323, 815, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 791, 813, 792, 793, 794, 795, 783, 784, 785, 812, 786, 787, 772, 773, 774, 776, 777, 778, 817, 818, 819, 820, 821, 822, 823, 779, 780, 781, 782, 1033, 803, 801, 802, 814, 798, 799, 745, 744, 790, 796, 797, 804, 805, 807, 806, 808, 809, 152, -32766, -545, -545, 1036, 800, 811, 810, 50, 51, 52, 513, 53, 54, 1240, 1239, 1241, -545, 55, 56, -110, 57, -32766, 1090, 920, -110, 556, -110, 292, -551, 339, -545, 306, 103, 104, -110, -110, -110, -110, -110, -110, -110, -110, 105, 106, 107, 108, 109, 1245, 274, 380, 381, -591, -367, 715, -367, 340, 58, 59, -591, 423, 110, 60, 370, 61, 248, 249, 62, 63, 64, 65, 66, 67, 68, 69, -544, 28, 267, 70, 445, 514, -32766, 374, -342, 1272, 1273, 515, 1278, 835, 862, 389, 863, 1270, 42, 25, 516, 943, 517, 943, 518, 920, 519, 299, 1036, 520, 521, 1266, 910, 441, 44, 45, 446, 377, 376, -32766, 46, 522, 1023, 1022, 1021, 1024, 368, 338, 391, 1238, 7, 291, 442, 1231, 835, 524, 525, 526, 443, 1245, 357, 1036, 362, 834, -544, -544, 154, 528, 529, 444, 1259, 1260, 1261, 1262, 1256, 1257, 298, -32766, -32766, -544, -548, 1059, 1263, 1258, 291, 1236, 1240, 1239, 1241, 299, 841, -550, 71, -544, 656, 26, 321, 322, 326, -153, -153, -153, 920, 612, 675, 676, 1035, 922, 910, -32766, 286, 710, 835, 155, -153, 828, -153, 862, -153, 863, -153, 150, 407, 156, 1240, 1239, 1241, -32766, -32766, -32766, 375, 1351, 716, 75, 1352, 158, -591, 33, -591, 326, 835, 959, 960, -78, -548, -548, 523, 920, -32766, 378, 379, 896, 955, -110, -110, -110, 32, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 745, 744, -58, -548, -57, -110, -110, 717, 745, 744, -110, 383, 384, 922, 1033, 910, -110, 710, -153, 647, 648, 830, 124, 141, 125, -32766, 1033, 326, 712, 1150, 1152, 48, 130, 131, 144, 159, 1036, -32766, 160, 161, -543, 28, 162, 1238, 920, 163, 299, 920, 1036, 75, -32766, -32766, -32766, 835, -32766, 326, -32766, 1270, -32766, 282, 910, -32766, -87, -84, -78, -73, -32766, -32766, -32766, -4, 920, 282, -32766, -32766, 720, -72, -71, 727, -32766, 420, -70, -69, -68, -67, -66, 287, 286, -32766, -65, -46, 922, 745, 744, 1231, 710, 300, 301, -546, -18, 148, -302, 273, 283, 726, -543, -543, 729, 528, 529, 920, 1259, 1260, 1261, 1262, 1256, 1257, 919, 74, 147, -543, 288, 293, 1263, 1258, 126, -298, 280, 910, -32766, 281, 910, 284, 73, -543, 1238, 976, 690, 322, 326, 710, 285, -32766, -32766, -32766, 332, -32766, 274, -32766, 294, -32766, 937, 110, -32766, 910, 685, 835, -543, -32766, -32766, -32766, 826, -546, -546, -32766, -32766, 146, -32766, -50, 701, -32766, 420, 703, 691, 20, 1119, 375, -546, 436, -32766, 645, 1353, 1277, 297, 657, -32766, 1279, 959, 960, 561, 956, -546, 523, 910, 692, 693, 678, 527, 955, -110, -110, -110, 132, 922, 662, 663, 922, 710, 464, -508, 710, -32766, 1240, 1239, 1241, 493, 679, 1238, 282, 939, 10, -543, -543, 40, -32766, -32766, -32766, 731, -32766, 922, -32766, 307, -32766, 710, -4, -32766, -543, 305, 41, 304, -32766, -32766, -32766, 0, 0, -32766, -32766, -32766, 920, 0, -543, 1238, -32766, 420, 311, 0, 567, 299, -32766, -32766, -32766, -32766, -32766, -498, -32766, 897, -32766, 0, 922, -32766, 8, 0, 710, 24, -32766, -32766, -32766, -32766, 372, 610, -32766, -32766, 834, 1238, 734, -275, -32766, 420, 920, 735, -32766, -32766, -32766, 854, -32766, -32766, -32766, 901, -32766, 1000, 977, -32766, 49, 984, 974, 488, -32766, -32766, -32766, -32766, 985, 899, -32766, -32766, 972, 1238, 574, 1093, -32766, 420, 1096, 1097, -32766, -32766, -32766, 1094, -32766, -32766, -32766, 1095, -32766, 910, 1101, -32766, 1267, 846, 1292, 1310, -32766, -32766, -32766, 1344, 650, 34, -32766, -32766, -579, -250, -250, -250, -32766, 420, -578, 375, -577, -551, 28, 267, -550, -32766, -549, -492, 1, 29, 959, 960, 302, 303, 835, 523, 30, 910, 1270, 39, 896, 955, -110, -110, -110, 43, 47, 373, 72, 76, 77, 78, 79, -249, -249, -249, 80, 81, 143, 375, 153, 128, -273, 157, 247, 328, 357, 358, 359, 360, 959, 960, 922, 361, 1231, 523, 710, -250, 362, 363, 896, 955, -110, -110, -110, 364, 365, 366, 367, 529, 28, 1259, 1260, 1261, 1262, 1256, 1257, 369, 437, 555, 1207, -272, 835, 1263, 1258, 13, 1270, 14, -32766, 15, 16, 18, 922, 73, 1238, 1348, 710, -249, 322, 326, 406, -32766, -32766, -32766, 484, -32766, 485, -32766, 492, -32766, 495, 496, -32766, 497, 498, 502, 503, -32766, -32766, -32766, 504, 511, 1231, -32766, -32766, 572, 696, 1249, 1190, -32766, 420, 1268, 1062, 1061, 1042, 1226, 1038, 529, -32766, 1259, 1260, 1261, 1262, 1256, 1257, -277, -102, 12, 17, 27, 296, 1263, 1258, 405, 603, 607, 636, 702, 1194, 1244, 1191, 73, 320, 1323, 0, 371, 322, 326, 711, 714, 718, 719, 721, 722, 723, 724, 728, 0, 713, 0, 1350, 857, 856, 865, 949, 992, 864, 1349, 948, 946, 947, 950, 1222, 930, 940, 928, 982, 983, 634, 1347, 1304, 1293, 1311, 1320, 0, 0, 1271, 0, 326)

Table of actions. Indexed according to $actionBase comment.

$actionBase

protected array<string|int, mixed> $actionBase = array(0, -2, 152, 549, 764, 941, 981, 751, 555, 309, 560, 864, 626, 738, 738, 741, 738, 473, 671, 783, -60, 305, 305, 783, 305, 803, 803, 803, 658, 658, 658, 658, 749, 749, 897, 897, 929, 865, 831, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 18, 36, 79, 648, 1036, 1044, 1040, 1045, 1034, 1033, 1039, 1041, 1046, 1083, 1084, 782, 1085, 1086, 1082, 1087, 1042, 876, 1035, 1043, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 195, 342, 43, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 643, 643, 643, 666, 666, 354, 173, 980, 203, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 665, 339, 164, 164, 7, 7, 7, 7, 7, 50, 369, 583, -23, -23, -23, -23, 448, 605, 497, 260, 397, 434, 54, 394, 593, 593, 316, 316, 415, 415, 316, 316, 316, 442, 442, 252, 252, 252, 252, 318, 455, 433, 391, 742, 53, 53, 53, 53, 742, 742, 742, 742, 734, 1088, 742, 742, 742, 722, 781, 781, 926, 551, 551, 781, 536, -3, -3, 536, 63, -3, 67, 576, 335, 756, 115, 9, 335, 535, 656, 501, 185, 821, 568, 821, 1032, 424, 776, 776, 426, 753, 729, 867, 1063, 1049, 799, 1080, 810, 1081, -66, -58, 728, 1031, 1031, 1031, 1031, 1031, 1031, 1031, 1031, 1031, 1031, 1031, 1089, 402, 1032, 130, 1089, 1089, 1089, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 603, 130, 544, 554, 130, 804, 402, 18, 808, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 762, 157, 18, 36, 124, 124, 196, 37, 124, 124, 124, 124, 18, 18, 18, 18, 568, 784, 797, 600, 820, 143, 784, 784, 784, 122, 135, 204, 139, 760, 785, 467, 775, 775, 787, 895, 895, 775, 768, 775, 787, 913, 775, 775, 895, 895, 793, 158, 550, 472, 524, 569, 895, 346, 775, 775, 775, 775, 816, 575, 775, 271, 171, 775, 775, 816, 801, 766, 58, 798, 895, 895, 895, 816, 505, 798, 798, 798, 819, 824, 761, 765, 383, 349, 607, 138, 807, 765, 765, 775, 532, 761, 765, 761, 765, 759, 765, 765, 765, 761, 765, 768, 498, 765, 714, 586, 75, 765, 6, 915, 916, 726, 917, 906, 918, 965, 919, 923, 1053, 894, 931, 912, 924, 966, 903, 896, 780, 701, 703, 815, 754, 893, 777, 777, 777, 888, 777, 777, 777, 777, 777, 777, 777, 777, 701, 868, 823, 794, 934, 711, 712, 1011, 730, 795, 963, 933, 1013, 925, 758, 713, 977, 935, 757, 1047, 936, 940, 986, 1014, 828, 1017, 979, 790, 1064, 1065, 869, 946, 1054, 777, 915, 923, 727, 912, 924, 903, 896, 752, 748, 746, 747, 745, 744, 739, 740, 763, 1018, 887, 879, 870, 945, 891, 701, 871, 971, 874, 990, 992, 1050, 805, 792, 875, 1066, 952, 953, 954, 1055, 1019, 1056, 773, 973, 817, 994, 812, 1067, 996, 997, 999, 1000, 1057, 1068, 1058, 885, 1059, 832, 788, 928, 802, 1069, 299, 791, 800, 806, 964, 436, 932, 1060, 1070, 1071, 1001, 1002, 1006, 1072, 1073, 927, 834, 975, 796, 976, 967, 835, 838, 577, 779, 1020, 786, 789, 778, 624, 634, 1074, 1075, 1076, 930, 767, 772, 839, 845, 1021, 743, 1022, 1077, 646, 846, 717, 1078, 1012, 718, 721, 652, 683, 681, 724, 774, 1061, 818, 811, 771, 955, 721, 770, 849, 1079, 852, 855, 856, 1007, 860, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 456, 456, 456, 456, 456, 456, 305, 305, 305, 305, 305, 456, 456, 456, 456, 456, 456, 456, 305, 305, 0, 0, 305, 0, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 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, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 494, 494, 289, 289, 494, 289, 494, 494, 494, 494, 494, 494, 494, 494, 494, 0, 289, 289, 289, 289, 289, 289, 289, 289, 494, 793, 494, 442, 442, 442, 442, 494, 494, 494, -88, -88, 442, 494, 63, 494, 494, 494, 494, 494, 494, 494, 494, 494, 0, 0, 494, 494, 494, 494, 0, 0, 130, -3, 494, 768, 768, 768, 768, 494, 494, 494, 494, -3, -3, 494, 494, 494, 0, 0, 0, 0, 442, 442, 0, 130, 0, 0, 130, 0, 0, 768, 768, 494, 63, 793, 359, 494, 0, 0, 0, 0, 130, 768, 130, 402, 775, -3, -3, 775, 402, 402, 124, 18, 359, 545, 545, 545, 545, 0, 0, 568, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 793, 768, 0, 793, 0, 768, 768, 768, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 768, 0, 0, 895, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 913, 0, 0, 0, 0, 0, 0, 768, 0, 0, 0, 0, 0, 0, 0, 0, 0, 777, 805, 0, 805, 0, 777, 777, 777, 0, 0, 0, 0, 779, 743)

Map of states to a displacement into the $action table. The corresponding action for this state/symbol pair is $action[$actionBase[$state] + $symbol]. If $actionBase[$state] is 0, the action is defaulted, i.e. $actionDefault[$state] should be used instead.

$actionCheck

protected array<string|int, mixed> $actionCheck = array(2, 3, 4, 5, 6, 7, 0, 9, 10, 11, 12, 13, 70, 9, 10, 11, 9, 10, 11, 1, 80, 44, 45, 46, 47, 48, 49, 50, 116, 117, 118, 119, 120, 121, 122, 37, 38, 30, 1, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 1, 9, 10, 1, 57, 116, 117, 118, 119, 120, 121, 122, 129, 130, 131, 8, 31, 1, 71, 72, 73, 74, 75, 76, 77, 134, 135, 80, 82, 1, 31, 85, 8, 30, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 1, 128, 129, 130, 131, 132, 133, 82, 80, 136, 137, 138, 139, 140, 141, 142, 143, 144, 8, 147, 148, 8, 8, 150, 151, 152, 8, 154, 31, 2, 3, 4, 5, 6, 7, 162, 9, 10, 11, 12, 13, 8, 117, 118, 160, 116, 162, 122, 9, 10, 11, 97, 159, 128, 8, 117, 118, 9, 10, 11, 122, 1, 137, 31, 37, 38, 128, 138, 8, 30, 159, 32, 33, 34, 35, 36, 37, 38, 30, 9, 32, 33, 34, 158, 57, 80, 161, 9, 10, 11, 161, 163, 167, 14, 97, 167, 106, 107, 71, 72, 73, 74, 75, 76, 77, 163, 116, 80, 30, 167, 32, 33, 34, 35, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 8, 128, 129, 130, 131, 132, 133, 156, 163, 136, 137, 138, 139, 140, 141, 142, 143, 144, 162, 9, 10, 11, 162, 150, 151, 152, 162, 154, 2, 3, 4, 5, 6, 7, 14, 9, 10, 11, 12, 13, 30, 163, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 160, 57, 162, 9, 10, 11, 9, 10, 11, 8, 159, 14, 8, 69, 163, 1, 101, 57, 9, 10, 11, 162, 8, 116, 30, 1, 32, 33, 34, 35, 36, 71, 72, 73, 74, 75, 76, 77, 123, 30, 80, 32, 33, 70, 80, 138, 8, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 116, 128, 129, 130, 131, 132, 133, 37, 38, 136, 137, 138, 139, 140, 141, 142, 143, 144, 14, 116, 134, 135, 138, 150, 151, 152, 2, 3, 4, 5, 6, 7, 155, 156, 157, 149, 12, 13, 101, 15, 137, 164, 1, 106, 85, 108, 30, 161, 8, 163, 113, 49, 50, 116, 117, 118, 119, 120, 121, 122, 123, 51, 52, 53, 54, 55, 1, 57, 106, 107, 1, 106, 31, 108, 8, 51, 52, 8, 116, 69, 56, 8, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 70, 70, 71, 72, 73, 74, 116, 8, 164, 78, 79, 80, 146, 82, 106, 8, 108, 86, 87, 88, 89, 122, 91, 122, 93, 1, 95, 158, 138, 98, 99, 1, 84, 8, 103, 104, 105, 106, 107, 116, 109, 110, 119, 120, 121, 122, 115, 116, 106, 80, 108, 161, 8, 122, 82, 124, 125, 126, 8, 1, 161, 138, 161, 155, 134, 135, 14, 136, 137, 8, 139, 140, 141, 142, 143, 144, 145, 51, 52, 149, 70, 1, 151, 152, 161, 116, 155, 156, 157, 158, 8, 161, 161, 163, 75, 76, 165, 166, 167, 75, 76, 77, 1, 52, 75, 76, 137, 159, 84, 137, 30, 163, 82, 14, 90, 80, 92, 106, 94, 108, 96, 101, 102, 14, 155, 156, 157, 9, 10, 11, 106, 80, 31, 161, 83, 14, 160, 14, 162, 167, 82, 117, 118, 16, 134, 135, 122, 1, 30, 106, 107, 127, 128, 129, 130, 131, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 37, 38, 16, 163, 16, 117, 118, 31, 37, 38, 122, 106, 107, 159, 116, 84, 128, 163, 164, 111, 112, 156, 16, 163, 16, 137, 116, 167, 163, 59, 60, 70, 16, 16, 16, 16, 138, 74, 16, 16, 70, 70, 16, 80, 1, 16, 158, 1, 138, 161, 87, 88, 89, 82, 91, 167, 93, 86, 95, 161, 84, 98, 31, 31, 31, 31, 103, 104, 105, 0, 1, 161, 109, 110, 31, 31, 31, 31, 115, 116, 31, 31, 31, 31, 31, 37, 30, 124, 31, 31, 159, 37, 38, 122, 163, 134, 135, 70, 31, 31, 35, 31, 31, 31, 134, 135, 31, 136, 137, 1, 139, 140, 141, 142, 143, 144, 31, 154, 31, 149, 37, 37, 151, 152, 163, 35, 35, 84, 74, 35, 84, 35, 161, 163, 80, 159, 80, 166, 167, 163, 35, 87, 88, 89, 35, 91, 57, 93, 37, 95, 38, 69, 98, 84, 77, 82, 70, 103, 104, 105, 80, 134, 135, 109, 110, 70, 85, 31, 80, 115, 116, 92, 116, 97, 82, 106, 149, 108, 124, 113, 83, 146, 113, 90, 137, 146, 117, 118, 89, 128, 163, 122, 84, 137, 138, 94, 127, 128, 129, 130, 131, 31, 159, 96, 100, 159, 163, 97, 149, 163, 74, 155, 156, 157, 97, 100, 80, 161, 154, 150, 134, 135, 159, 87, 88, 89, 164, 91, 159, 93, 114, 95, 163, 164, 98, 149, 133, 159, 132, 103, 104, 105, -1, -1, 74, 109, 110, 1, -1, 163, 80, 115, 116, 132, -1, 153, 158, 87, 88, 89, 124, 91, 149, 93, 164, 95, -1, 159, 98, 149, -1, 163, 149, 103, 104, 105, 74, 149, 153, 109, 110, 155, 80, 159, 162, 115, 116, 1, 159, 87, 88, 89, 159, 91, 124, 93, 159, 95, 159, 159, 98, 70, 159, 159, 102, 103, 104, 105, 74, 159, 159, 109, 110, 159, 80, 81, 159, 115, 116, 159, 159, 87, 88, 89, 159, 91, 124, 93, 159, 95, 84, 159, 98, 160, 160, 160, 160, 103, 104, 105, 160, 160, 163, 109, 110, 161, 100, 101, 102, 115, 116, 161, 106, 161, 161, 70, 71, 161, 124, 161, 161, 161, 161, 117, 118, 134, 135, 82, 122, 161, 84, 86, 161, 127, 128, 129, 130, 131, 161, 161, 149, 161, 161, 161, 161, 161, 100, 101, 102, 161, 161, 161, 106, 161, 163, 162, 161, 161, 161, 161, 161, 161, 161, 117, 118, 159, 161, 122, 122, 163, 164, 161, 161, 127, 128, 129, 130, 131, 161, 161, 161, 161, 137, 70, 139, 140, 141, 142, 143, 144, 161, 161, 161, 165, 162, 82, 151, 152, 162, 86, 162, 74, 162, 162, 162, 159, 161, 80, 164, 163, 164, 166, 167, 162, 87, 88, 89, 162, 91, 162, 93, 162, 95, 162, 162, 98, 162, 162, 162, 162, 103, 104, 105, 162, 162, 122, 109, 110, 162, 162, 162, 162, 115, 116, 162, 162, 162, 162, 162, 162, 137, 124, 139, 140, 141, 142, 143, 144, 162, 162, 162, 162, 162, 162, 151, 152, 162, 162, 162, 162, 162, 162, 162, 162, 161, 163, 162, -1, 163, 166, 167, 163, 163, 163, 163, 163, 163, 163, 163, 163, -1, 163, -1, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, -1, -1, 166, -1, 167)

Table indexed analogously to $action. If $actionCheck[$actionBase[$state] + $symbol] != $symbol then the action is defaulted, i.e. $actionDefault[$state] should be used instead.

$actionDefault

protected array<string|int, mixed> $actionDefault = array(3, 32767, 102, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 100, 32767, 32767, 32767, 32767, 597, 597, 597, 597, 32767, 32767, 254, 102, 32767, 32767, 470, 387, 387, 387, 32767, 32767, 541, 541, 541, 541, 541, 541, 32767, 32767, 32767, 32767, 32767, 32767, 470, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 100, 32767, 32767, 32767, 36, 7, 8, 10, 11, 49, 17, 324, 32767, 32767, 32767, 32767, 102, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 590, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 474, 453, 454, 456, 457, 386, 542, 596, 327, 593, 385, 145, 339, 329, 242, 330, 258, 475, 259, 476, 479, 480, 215, 287, 382, 149, 150, 417, 471, 419, 469, 473, 418, 392, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 390, 391, 472, 450, 449, 448, 32767, 32767, 415, 416, 32767, 420, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 102, 32767, 389, 423, 421, 422, 439, 440, 437, 438, 441, 32767, 32767, 32767, 442, 443, 444, 445, 316, 32767, 32767, 366, 364, 424, 316, 111, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 430, 431, 32767, 32767, 32767, 32767, 535, 447, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 102, 32767, 100, 537, 412, 414, 504, 425, 426, 393, 32767, 511, 32767, 102, 32767, 513, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 536, 32767, 543, 543, 32767, 497, 100, 195, 32767, 32767, 512, 32767, 195, 195, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 604, 497, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 32767, 195, 110, 32767, 32767, 32767, 100, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 190, 32767, 268, 270, 102, 558, 195, 32767, 516, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 509, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 497, 435, 138, 32767, 138, 543, 427, 428, 429, 499, 543, 543, 543, 312, 289, 32767, 32767, 32767, 32767, 514, 514, 100, 100, 100, 100, 509, 32767, 32767, 32767, 32767, 111, 99, 99, 99, 99, 99, 103, 101, 32767, 32767, 32767, 32767, 223, 99, 32767, 101, 101, 32767, 32767, 223, 225, 212, 101, 227, 32767, 562, 563, 223, 101, 227, 227, 227, 247, 247, 486, 318, 101, 99, 101, 101, 197, 318, 318, 32767, 101, 486, 318, 486, 318, 199, 318, 318, 318, 486, 318, 32767, 101, 318, 214, 99, 99, 318, 32767, 32767, 32767, 499, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 222, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 530, 32767, 547, 560, 433, 434, 436, 545, 458, 459, 460, 461, 462, 463, 464, 466, 592, 32767, 503, 32767, 32767, 32767, 338, 32767, 602, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 603, 32767, 543, 32767, 32767, 32767, 32767, 432, 9, 74, 492, 42, 43, 51, 57, 520, 521, 522, 523, 517, 518, 524, 519, 32767, 32767, 525, 568, 32767, 32767, 544, 595, 32767, 32767, 32767, 32767, 32767, 32767, 138, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 530, 32767, 136, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 526, 32767, 32767, 32767, 543, 32767, 32767, 32767, 32767, 314, 311, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 543, 32767, 32767, 32767, 32767, 32767, 291, 32767, 308, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 286, 32767, 32767, 381, 499, 294, 296, 297, 32767, 32767, 32767, 32767, 360, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 152, 152, 3, 3, 341, 152, 152, 152, 341, 341, 152, 341, 341, 341, 152, 152, 152, 152, 152, 152, 280, 185, 262, 265, 247, 247, 152, 352, 152)

Map of states to their default action

$actionTableSize

protected int $actionTableSize = 1257

Size of $action table

$createdArrays

protected SplObjectStorage<Array_, null>|null $createdArrays

Array nodes created during parsing, for postprocessing of empty elements.

$defaultAction

protected int $defaultAction = -32766

Action number signifying default action

$dropTokens

protected array<int, bool> $dropTokens

Map of PHP token IDs to drop

$errorState

protected int $errorState

Error state, used to avoid error floods

$errorSymbol

protected int $errorSymbol = 1

Symbol number of error recovery token

$goto

protected array<string|int, mixed> $goto = array(196, 196, 1034, 1065, 697, 431, 661, 621, 658, 319, 706, 425, 314, 315, 335, 576, 430, 336, 432, 638, 654, 655, 852, 672, 673, 674, 853, 167, 167, 167, 167, 221, 197, 193, 193, 177, 179, 216, 193, 193, 193, 193, 193, 194, 194, 194, 194, 194, 194, 188, 189, 190, 191, 192, 218, 216, 219, 536, 537, 421, 538, 540, 541, 542, 543, 544, 545, 546, 547, 1136, 168, 169, 170, 195, 171, 172, 173, 166, 174, 175, 176, 178, 215, 217, 220, 238, 243, 244, 246, 257, 258, 259, 260, 261, 262, 263, 264, 268, 269, 270, 271, 277, 289, 290, 317, 318, 426, 427, 428, 581, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 180, 237, 181, 198, 199, 200, 239, 188, 189, 190, 191, 192, 218, 1136, 201, 182, 183, 184, 202, 198, 185, 240, 203, 201, 165, 204, 205, 186, 206, 207, 208, 187, 209, 210, 211, 212, 213, 214, 855, 1232, 975, 279, 279, 279, 279, 623, 623, 419, 351, 1269, 600, 1269, 1269, 1269, 1269, 1269, 1269, 1269, 1269, 1269, 1287, 1287, 599, 1100, 1287, 709, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 508, 700, 827, 1098, 458, 559, 552, 860, 833, 909, 904, 905, 918, 861, 906, 858, 907, 908, 859, 1233, 1234, 912, 500, 886, 501, 252, 252, 843, 1107, 1108, 507, 1087, 1082, 1083, 1084, 341, 552, 559, 568, 569, 344, 579, 602, 616, 617, 1235, 1295, 1296, 833, 440, 833, 22, 250, 250, 250, 250, 245, 253, 694, 573, 1237, 829, 1237, 893, 851, 893, 893, 1034, 1034, 1237, 694, 349, 342, 1034, 694, 1034, 1034, 1034, 1034, 1034, 1034, 1034, 1034, 1034, 848, 1327, 1034, 1034, 1034, 1034, 1319, 1319, 1319, 1319, 1237, 343, 342, 1040, 1039, 1237, 1237, 1237, 1237, 868, 996, 1237, 1237, 1237, 913, 355, 914, 354, 354, 354, 354, 466, 466, 479, 880, 355, 355, 867, 394, 926, 466, 481, 571, 927, 967, 410, 705, 942, 355, 355, 942, 848, 355, 660, 1354, 609, 624, 627, 628, 629, 630, 651, 652, 653, 708, 554, 1133, 1285, 1285, 355, 355, 1285, 1058, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 539, 539, 1185, 424, 539, 611, 539, 539, 539, 539, 539, 539, 539, 539, 539, 566, 682, 1337, 1337, 733, 637, 639, 1043, 1044, 659, 476, 1312, 1313, 683, 687, 1010, 695, 704, 1006, 1337, 1298, 438, 408, 409, 631, 633, 635, 670, 5, 671, 6, 412, 413, 414, 337, 684, 1340, 1340, 415, 325, 309, 686, 347, 352, 353, 553, 563, 450, 450, 450, 553, 1309, 563, 1309, 666, 397, 462, 845, 1314, 1315, 1309, 548, 548, 548, 548, 873, 604, 469, 580, 470, 471, 403, 554, 878, 848, 958, 1345, 1346, 577, 614, 870, 550, 615, 550, 255, 255, 1321, 1321, 1321, 1321, 550, 999, 1018, 477, 971, 1228, 732, 736, 881, 869, 1070, 1074, 876, 882, 551, 1008, 1003, 1071, 1075, 978, 980, 0, 1305, 1118, 0, 456, 0, 0, 0, 0, 969, 969, 969, 969, 0, 0, 456, 963, 970, 0, 0, 0, 0, 968, 0, 1230, 0, 0, 0, 450, 450, 450, 450, 450, 450, 450, 450, 450, 450, 450, 931, 1123, 450, 0, 1073, 1116, 885, 619, 1307, 1307, 1073, 1216, 944, 1015, 433, 1217, 1220, 945, 1221, 0, 433, 872, 0, 664, 994, 0, 1041, 1041, 0, 866, 0, 0, 0, 665, 1052, 1048, 1049, 0, 0, 0, 0, 1227, 324, 275, 324, 1037, 1037, 681, 952, 0, 0, 1029, 1045, 1046, 396, 399, 560, 601, 605, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1013, 1013)

Table of states to goto after reduction. Indexed according to $gotoBase comment.

$gotoBase

protected array<string|int, mixed> $gotoBase = array(0, 0, -253, 0, 0, 224, 182, 251, 179, -10, 0, 0, -89, 32, 11, -185, 27, 66, 128, 197, -229, 0, 5, 163, 308, 260, 18, 22, 115, 118, 0, 0, 0, 0, 0, -68, 0, 122, 0, 123, 0, 43, -1, 153, 0, 200, -327, 0, -330, 147, 460, 0, 0, 0, 0, 0, -33, 0, 0, 540, 0, 0, 280, 0, 95, 294, -236, 0, 0, 0, 0, 0, 0, -5, 0, 0, -140, 0, 0, 134, 119, -19, -88, -75, -152, -74, -698, 0, 0, 296, 0, 0, 127, 23, 0, 0, 48, -310, 0, 71, 0, 0, 0, 269, 283, 0, 0, 414, -71, 0, 103, 0, 0, 124, 83, 0, 100, 273, 17, 104, 144, 0, 0, 0, 0, 0, 0, 1, 0, 114, 167, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -47, 0, 0, 50, 0, 281, 105, 94, 0, 0, 0, -273, 0, 34, 0, 0, 107, 0, 0, 0, 0, 0, 0, 0, -26, 99, -56, 110, 230, 125, 0, 0, 90, 0, 67, 241, 0, 254, 75, 0, 0)

Map of non-terminals to a displacement into the $goto table. The corresponding goto state for this non-terminal/state pair is $goto[$gotoBase[$nonTerminal] + $state] (unless defaulted)

$gotoCheck

protected array<string|int, mixed> $gotoCheck = array(42, 42, 73, 127, 73, 66, 66, 56, 56, 66, 9, 66, 66, 66, 66, 66, 66, 66, 66, 66, 86, 86, 26, 86, 86, 86, 27, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 15, 20, 49, 23, 23, 23, 23, 108, 108, 43, 97, 108, 130, 108, 108, 108, 108, 108, 108, 108, 108, 108, 170, 170, 8, 8, 170, 8, 170, 170, 170, 170, 170, 170, 170, 170, 170, 8, 8, 6, 8, 83, 76, 76, 15, 12, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 20, 20, 15, 155, 45, 155, 5, 5, 20, 144, 144, 155, 15, 15, 15, 15, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 20, 20, 20, 12, 83, 12, 76, 5, 5, 5, 5, 5, 5, 7, 172, 73, 7, 73, 25, 25, 25, 25, 73, 73, 73, 7, 179, 168, 73, 7, 73, 73, 73, 73, 73, 73, 73, 73, 73, 22, 181, 73, 73, 73, 73, 9, 9, 9, 9, 73, 168, 168, 118, 118, 73, 73, 73, 73, 35, 103, 73, 73, 73, 65, 14, 65, 24, 24, 24, 24, 149, 149, 84, 35, 14, 14, 35, 62, 73, 149, 84, 104, 73, 93, 93, 93, 9, 14, 14, 9, 22, 14, 64, 14, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 14, 150, 171, 171, 14, 14, 171, 114, 171, 171, 171, 171, 171, 171, 171, 171, 171, 173, 173, 151, 13, 173, 13, 173, 173, 173, 173, 173, 173, 173, 173, 173, 48, 116, 182, 182, 48, 48, 48, 119, 119, 48, 176, 176, 176, 48, 48, 48, 48, 48, 48, 182, 14, 113, 82, 82, 85, 85, 85, 82, 46, 82, 46, 82, 82, 82, 29, 82, 182, 182, 82, 169, 169, 14, 82, 97, 97, 9, 9, 23, 23, 23, 9, 130, 9, 130, 120, 9, 9, 18, 178, 178, 130, 107, 107, 107, 107, 39, 107, 9, 9, 9, 9, 28, 14, 9, 22, 92, 9, 9, 2, 2, 37, 19, 80, 19, 5, 5, 130, 130, 130, 130, 19, 50, 110, 157, 50, 160, 50, 99, 16, 16, 16, 16, 9, 41, 50, 50, 50, 129, 132, 16, 96, -1, 130, 147, -1, 19, -1, -1, -1, -1, 19, 19, 19, 19, -1, -1, 19, 19, 19, -1, -1, -1, -1, 16, -1, 14, -1, -1, -1, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 17, 17, 23, -1, 130, 16, 16, 17, 130, 130, 130, 79, 79, 17, 117, 79, 79, 79, 79, -1, 117, 17, -1, 17, 17, -1, 117, 117, -1, 17, -1, -1, -1, 117, 117, 117, 117, -1, -1, -1, -1, 17, 24, 24, 24, 89, 89, 89, 89, -1, -1, 89, 89, 89, 59, 59, 59, 59, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 107, 107)

Table indexed analogously to $goto. If $gotoCheck[$gotoBase[$nonTerminal] + $state] != $nonTerminal then the goto state is defaulted, i.e. $gotoDefault[$nonTerminal] should be used.

$gotoDefault

protected array<string|int, mixed> $gotoDefault = array(-32768, 512, 740, 4, 741, 935, 816, 825, 597, 530, 707, 348, 625, 422, 1303, 911, 1122, 578, 844, 1246, 1254, 457, 847, 330, 730, 923, 894, 895, 400, 386, 392, 398, 649, 626, 494, 879, 453, 871, 486, 874, 452, 883, 164, 418, 510, 887, 3, 890, 557, 921, 973, 387, 898, 388, 677, 900, 562, 902, 903, 395, 401, 402, 1127, 570, 622, 915, 256, 564, 916, 385, 917, 925, 390, 393, 688, 465, 505, 499, 411, 1102, 565, 608, 646, 447, 473, 620, 632, 618, 480, 434, 416, 329, 957, 965, 487, 463, 979, 350, 987, 738, 1135, 640, 489, 995, 641, 1002, 1005, 531, 532, 478, 1017, 272, 1020, 490, 19, 667, 1031, 1032, 668, 642, 1054, 643, 669, 644, 1056, 472, 598, 1064, 454, 1072, 1291, 455, 1076, 266, 1079, 278, 417, 435, 1085, 1086, 9, 1092, 698, 699, 11, 276, 509, 1117, 689, 451, 1134, 439, 1204, 1206, 558, 491, 1224, 1223, 680, 506, 1229, 448, 1294, 449, 533, 474, 316, 534, 1338, 308, 333, 313, 549, 295, 334, 535, 475, 1300, 1308, 331, 31, 1328, 1339, 575, 613)

Map of non-terminals to the default state to goto after their reduction

$gotoTableSize

protected int $gotoTableSize = 657

Size of $goto table

$invalidSymbol

protected int $invalidSymbol = 168

Symbol number signifying an invalid token

$numNonLeafStates

protected int $numNonLeafStates = 739

Number of non-leaf states

$phpTokenToSymbol

protected array<string|int, int> $phpTokenToSymbol

Map of PHP token IDs to internal symbols

$productions

protected array<int, string> $productions

Names of the production rules (only necessary for debugging)

$reduceCallbacks

protected array<string|int, callable> $reduceCallbacks

Semantic action callbacks

$ruleToLength

protected array<string|int, mixed> $ruleToLength = array(1, 1, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 2, 1, 3, 4, 1, 2, 0, 1, 1, 1, 1, 4, 3, 5, 4, 3, 4, 2, 3, 1, 1, 7, 6, 2, 3, 1, 2, 3, 1, 2, 3, 1, 1, 3, 1, 3, 1, 2, 2, 3, 1, 3, 2, 3, 1, 3, 3, 2, 0, 1, 1, 1, 1, 1, 3, 7, 10, 5, 7, 9, 5, 3, 3, 3, 3, 3, 3, 1, 2, 5, 7, 9, 6, 5, 6, 3, 2, 1, 1, 1, 1, 0, 2, 1, 3, 8, 0, 4, 2, 1, 3, 0, 1, 0, 1, 0, 1, 3, 1, 1, 1, 8, 9, 7, 8, 7, 6, 8, 0, 2, 0, 2, 1, 2, 1, 2, 1, 1, 1, 0, 2, 0, 2, 0, 2, 2, 1, 3, 1, 4, 1, 4, 1, 1, 4, 2, 1, 3, 3, 3, 4, 4, 5, 0, 2, 4, 3, 1, 1, 7, 0, 2, 1, 3, 3, 4, 1, 4, 0, 2, 5, 0, 2, 6, 0, 2, 0, 3, 1, 2, 1, 1, 2, 0, 1, 3, 0, 2, 1, 1, 1, 1, 6, 8, 6, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 3, 3, 3, 3, 3, 1, 3, 3, 1, 1, 2, 1, 1, 0, 1, 0, 2, 2, 2, 4, 3, 1, 1, 3, 1, 2, 2, 3, 2, 3, 1, 1, 2, 3, 1, 1, 3, 2, 0, 1, 5, 5, 6, 10, 3, 5, 1, 1, 3, 0, 2, 4, 5, 4, 4, 4, 3, 1, 1, 1, 1, 1, 1, 0, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 1, 3, 2, 2, 3, 1, 0, 1, 1, 3, 3, 3, 4, 4, 1, 1, 2, 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, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 4, 3, 4, 4, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 3, 2, 1, 2, 4, 2, 2, 8, 9, 8, 9, 9, 10, 9, 10, 8, 3, 2, 0, 4, 2, 1, 3, 2, 1, 2, 2, 2, 4, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 0, 3, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 5, 3, 3, 4, 1, 1, 3, 1, 1, 1, 1, 1, 3, 2, 3, 0, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 1, 4, 4, 1, 4, 4, 0, 1, 1, 1, 3, 3, 1, 4, 2, 2, 1, 3, 1, 4, 4, 3, 3, 3, 3, 1, 3, 1, 1, 3, 1, 1, 4, 1, 1, 1, 3, 1, 1, 2, 1, 3, 4, 3, 2, 0, 2, 2, 1, 2, 1, 1, 1, 4, 3, 3, 3, 3, 6, 3, 1, 1, 2, 1)

Map of rules to the length of their right-hand side, which is the number of elements that have to be popped from the stack(s) on reduction.

$ruleToNonTerminal

protected array<string|int, mixed> $ruleToNonTerminal = array(0, 1, 3, 3, 2, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 9, 10, 11, 11, 11, 12, 12, 13, 13, 14, 15, 15, 16, 16, 17, 17, 18, 18, 21, 21, 22, 23, 23, 24, 24, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 29, 29, 30, 30, 32, 34, 34, 28, 36, 36, 33, 38, 38, 35, 35, 37, 37, 39, 39, 31, 40, 40, 41, 43, 44, 44, 45, 45, 46, 46, 48, 47, 47, 47, 47, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 25, 25, 50, 69, 69, 72, 72, 71, 70, 70, 63, 75, 75, 76, 76, 77, 77, 78, 78, 79, 79, 80, 80, 26, 26, 27, 27, 27, 27, 27, 88, 88, 90, 90, 83, 83, 91, 91, 92, 92, 92, 84, 84, 87, 87, 85, 85, 93, 94, 94, 57, 57, 65, 65, 68, 68, 68, 67, 95, 95, 96, 58, 58, 58, 58, 97, 97, 98, 98, 99, 99, 100, 101, 101, 102, 102, 103, 103, 55, 55, 51, 51, 105, 53, 53, 106, 52, 52, 54, 54, 64, 64, 64, 64, 81, 81, 109, 109, 111, 111, 112, 112, 112, 112, 110, 110, 110, 114, 114, 114, 114, 89, 89, 117, 117, 117, 118, 118, 115, 115, 119, 119, 121, 121, 122, 122, 116, 123, 123, 120, 124, 124, 124, 124, 113, 113, 82, 82, 82, 20, 20, 20, 126, 125, 125, 127, 127, 127, 127, 60, 128, 128, 129, 61, 131, 131, 132, 132, 133, 133, 86, 134, 134, 134, 134, 134, 134, 134, 139, 139, 140, 140, 141, 141, 141, 141, 141, 142, 143, 143, 138, 138, 135, 135, 137, 137, 145, 145, 144, 144, 144, 144, 144, 144, 144, 136, 146, 146, 148, 147, 147, 62, 104, 149, 149, 56, 56, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 156, 150, 150, 155, 155, 158, 159, 159, 160, 161, 162, 162, 162, 162, 19, 19, 73, 73, 73, 73, 151, 151, 151, 151, 164, 164, 152, 152, 154, 154, 154, 157, 157, 170, 170, 170, 170, 170, 170, 170, 170, 170, 171, 171, 171, 108, 173, 173, 173, 173, 153, 153, 153, 153, 153, 153, 153, 153, 59, 59, 167, 167, 167, 167, 174, 174, 163, 163, 163, 175, 175, 175, 175, 175, 175, 74, 74, 66, 66, 66, 66, 130, 130, 130, 130, 178, 177, 166, 166, 166, 166, 166, 166, 166, 165, 165, 165, 176, 176, 176, 176, 107, 172, 180, 180, 179, 179, 181, 181, 181, 181, 181, 181, 181, 181, 169, 169, 169, 169, 168, 183, 182, 182, 182, 182, 182, 182, 182, 182, 184, 184, 184, 184)

Map of rules to the non-terminal on their left-hand side, i.e. the non-terminal to use for determining the state to goto after reduction.

$semStack

protected array<string|int, mixed> $semStack

Semantic value stack (contains values of tokens and semantic action results)

$semValue

protected mixed $semValue

Temporary value containing the result of last semantic action (reduction)

$symbolToName

protected array<string|int, mixed> $symbolToName = array("EOF", "error", "T_THROW", "T_INCLUDE", "T_INCLUDE_ONCE", "T_EVAL", "T_REQUIRE", "T_REQUIRE_ONCE", "','", "T_LOGICAL_OR", "T_LOGICAL_XOR", "T_LOGICAL_AND", "T_PRINT", "T_YIELD", "T_DOUBLE_ARROW", "T_YIELD_FROM", "'='", "T_PLUS_EQUAL", "T_MINUS_EQUAL", "T_MUL_EQUAL", "T_DIV_EQUAL", "T_CONCAT_EQUAL", "T_MOD_EQUAL", "T_AND_EQUAL", "T_OR_EQUAL", "T_XOR_EQUAL", "T_SL_EQUAL", "T_SR_EQUAL", "T_POW_EQUAL", "T_COALESCE_EQUAL", "'?'", "':'", "T_COALESCE", "T_BOOLEAN_OR", "T_BOOLEAN_AND", "'|'", "'^'", "T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG", "T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG", "T_IS_EQUAL", "T_IS_NOT_EQUAL", "T_IS_IDENTICAL", "T_IS_NOT_IDENTICAL", "T_SPACESHIP", "'<'", "T_IS_SMALLER_OR_EQUAL", "'>'", "T_IS_GREATER_OR_EQUAL", "'.'", "T_SL", "T_SR", "'+'", "'-'", "'*'", "'/'", "'%'", "'!'", "T_INSTANCEOF", "'~'", "T_INC", "T_DEC", "T_INT_CAST", "T_DOUBLE_CAST", "T_STRING_CAST", "T_ARRAY_CAST", "T_OBJECT_CAST", "T_BOOL_CAST", "T_UNSET_CAST", "'@'", "T_POW", "'['", "T_NEW", "T_CLONE", "T_EXIT", "T_IF", "T_ELSEIF", "T_ELSE", "T_ENDIF", "T_LNUMBER", "T_DNUMBER", "T_STRING", "T_STRING_VARNAME", "T_VARIABLE", "T_NUM_STRING", "T_INLINE_HTML", "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_MATCH", "T_ENDSWITCH", "T_CASE", "T_DEFAULT", "T_BREAK", "T_CONTINUE", "T_GOTO", "T_FUNCTION", "T_FN", "T_CONST", "T_RETURN", "T_TRY", "T_CATCH", "T_FINALLY", "T_USE", "T_INSTEADOF", "T_GLOBAL", "T_STATIC", "T_ABSTRACT", "T_FINAL", "T_PRIVATE", "T_PROTECTED", "T_PUBLIC", "T_READONLY", "T_VAR", "T_UNSET", "T_ISSET", "T_EMPTY", "T_HALT_COMPILER", "T_CLASS", "T_TRAIT", "T_INTERFACE", "T_ENUM", "T_EXTENDS", "T_IMPLEMENTS", "T_OBJECT_OPERATOR", "T_NULLSAFE_OBJECT_OPERATOR", "T_LIST", "T_ARRAY", "T_CALLABLE", "T_CLASS_C", "T_TRAIT_C", "T_METHOD_C", "T_FUNC_C", "T_LINE", "T_FILE", "T_START_HEREDOC", "T_END_HEREDOC", "T_DOLLAR_OPEN_CURLY_BRACES", "T_CURLY_OPEN", "T_PAAMAYIM_NEKUDOTAYIM", "T_NAMESPACE", "T_NS_C", "T_DIR", "T_NS_SEPARATOR", "T_ELLIPSIS", "T_NAME_FULLY_QUALIFIED", "T_NAME_QUALIFIED", "T_NAME_RELATIVE", "T_ATTRIBUTE", "';'", "']'", "'('", "')'", "'{'", "'}'", "'`'", "'\"'", "'\$'")

Map of symbols to their names

$tokenEndStack

protected array<string|int, int> $tokenEndStack

Token end position stack

$tokenPos

protected int $tokenPos

Current position in token array

$tokenStartStack

protected array<string|int, int> $tokenStartStack

Token start position stack

$tokenToSymbol

protected array<string|int, mixed> $tokenToSymbol = array(0, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 56, 166, 168, 167, 55, 168, 168, 161, 162, 53, 51, 8, 52, 48, 54, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 31, 159, 44, 16, 46, 30, 68, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 70, 168, 160, 36, 168, 165, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 163, 35, 164, 58, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 32, 33, 34, 37, 38, 39, 40, 41, 42, 43, 45, 47, 49, 50, 57, 59, 60, 61, 62, 63, 64, 65, 66, 67, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158)

Map of external symbols (static::T_*) to internal symbols

$tokenToSymbolMapSize

protected int $tokenToSymbolMapSize = 396

Size of $tokenToSymbol map

$unexpectedTokenRule

protected int $unexpectedTokenRule = 32767

Rule number signifying that an unexpected token was encountered

$YY2TBLSTATE

protected int $YY2TBLSTATE = 435

Methods

__construct()

Creates a parser instance.

public __construct(Lexer $lexer[, PhpVersion $phpVersion = null ]) : mixed

Options:

  • phpVersion: ?PhpVersion,
Parameters
$lexer : Lexer

A lexer

$phpVersion : PhpVersion = null

PHP version to target, defaults to latest supported. This option is best-effort: Even if specified, parsing will generally assume the latest supported version and only adjust behavior in minor ways, for example by omitting errors in older versions and interpreting type hints as a name or identifier depending on version.

getTokens()

Return tokens for the last parse.

public getTokens() : array<string|int, Token>
Return values
array<string|int, Token>

parse()

Parses PHP code into a node tree.

public parse(string $code[, ErrorHandler|null $errorHandler = null ]) : array<string|int, Stmt>|null

If a non-throwing error handler is used, the parser will continue parsing after an error occurred and attempt to build a partial AST.

Parameters
$code : string

The source code to parse

$errorHandler : ErrorHandler|null = null

Error handler to use for lexer/parser errors, defaults to ErrorHandler\Throwing.

Return values
array<string|int, Stmt>|null

Array of statements (or null non-throwing error handler is used and the parser was unable to recover from an error).

checkClassModifier()

protected checkClassModifier(int $a, int $b, int $modifierPos) : void
Parameters
$a : int
$b : int
$modifierPos : int

checkModifier()

protected checkModifier(int $a, int $b, int $modifierPos) : void
Parameters
$a : int
$b : int
$modifierPos : int

createEmptyElemAttributes()

protected createEmptyElemAttributes(int $tokenPos) : array<string, mixed>
Parameters
$tokenPos : int
Return values
array<string, mixed>

createTokenMap()

Creates the token map.

protected createTokenMap() : array<int, int>

The token map maps the PHP internal token identifiers to the identifiers used by the Parser. Additionally it maps T_OPEN_TAG_WITH_ECHO to T_ECHO and T_CLOSE_TAG to ';'.

Return values
array<int, int>

The token map

doParse()

protected doParse() : array<string|int, Stmt>|null
Return values
array<string|int, Stmt>|null

getAttributes()

Get attributes for a node with the given start and end token positions.

protected getAttributes(int $tokenStartPos, int $tokenEndPos) : array<string, mixed>
Parameters
$tokenStartPos : int

Token position the node starts at

$tokenEndPos : int

Token position the node ends at

Return values
array<string, mixed>

Attributes

getAttributesAt()

Get combined start and end attributes at a stack location

protected getAttributesAt(int $stackPos) : array<string, mixed>
Parameters
$stackPos : int

Stack location

Return values
array<string, mixed>

Combined start and end attributes

getAttributesForToken()

Get attributes for a single token at the given token position.

protected getAttributesForToken(int $tokenPos) : array<string, mixed>
Parameters
$tokenPos : int
Return values
array<string, mixed>

Attributes

getCommentBeforeToken()

Get last comment before the given token position, if any

protected getCommentBeforeToken(int $tokenPos) : Comment|null
Parameters
$tokenPos : int
Return values
Comment|null

getErrorMessage()

Format error message including expected tokens.

protected getErrorMessage(int $symbol, int $state) : string
Parameters
$symbol : int

Unexpected symbol

$state : int

State at time of error

Return values
string

Formatted error message

getExpectedTokens()

Get limited number of expected tokens in given state.

protected getExpectedTokens(int $state) : array<string|int, string>
Parameters
$state : int

State

Return values
array<string|int, string>

Expected tokens. If too many, an empty array is returned.

getFloatCastKind()

protected getFloatCastKind(string $cast) : int
Parameters
$cast : string
Return values
int

handleHaltCompiler()

protected handleHaltCompiler() : string
Return values
string

handleNamespaces()

Moves statements of semicolon-style namespaces into $ns->stmts and checks various error conditions.

protected handleNamespaces(array<string|int, Stmt$stmts) : array<string|int, Stmt>
Parameters
$stmts : array<string|int, Stmt>
Return values
array<string|int, Stmt>

initReduceCallbacks()

Initialize $reduceCallbacks map.

protected initReduceCallbacks() : void

inlineHtmlHasLeadingNewline()

protected inlineHtmlHasLeadingNewline(int $stackPos) : bool
Parameters
$stackPos : int
Return values
bool

maybeCreateNop()

protected maybeCreateNop(int $tokenStartPos, int $tokenEndPos) : Nop|null
Parameters
$tokenStartPos : int
$tokenEndPos : int
Return values
Nop|null

maybeCreateZeroLengthNop()

Create a zero-length nop to capture preceding comments, if any.

protected maybeCreateZeroLengthNop(int $tokenPos) : Nop|null
Parameters
$tokenPos : int
Return values
Nop|null

parseDocString()

protected parseDocString(string $startToken, string|array<string|int, Expr|InterpolatedStringPart$contents, string $endToken, array<string, mixed> $attributes, array<string, mixed> $endTokenAttributes, bool $parseUnicodeEscape) : Expr
Parameters
$startToken : string
$contents : string|array<string|int, Expr|InterpolatedStringPart>
$endToken : string
$attributes : array<string, mixed>
$endTokenAttributes : array<string, mixed>
$parseUnicodeEscape : bool
Return values
Expr

parseLNumber()

protected parseLNumber(string $str, array<string, mixed> $attributes[, bool $allowInvalidOctal = false ]) : Int_
Parameters
$str : string
$attributes : array<string, mixed>
$allowInvalidOctal : bool = false
Return values
Int_

parseNumString()

Parse a T_NUM_STRING token into either an integer or string node.

protected parseNumString(string $str, array<string, mixed> $attributes) : Int_|String_
Parameters
$str : string

Number string

$attributes : array<string, mixed>

Attributes

Return values
Int_|String_

Integer or string node.

stripIndentation()

protected stripIndentation(string $string, int $indentLen, string $indentChar, bool $newlineAtStart, bool $newlineAtEnd, array<string, mixed> $attributes) : string
Parameters
$string : string
$indentLen : int
$indentChar : string
$newlineAtStart : bool
$newlineAtEnd : bool
$attributes : array<string, mixed>
Return values
string

checkImplementedInterfaces()

private checkImplementedInterfaces(array<string|int, Name$interfaces) : void
Parameters
$interfaces : array<string|int, Name>

getNamespaceErrorAttributes()

private getNamespaceErrorAttributes(Namespace_ $node) : array<string, mixed>
Parameters
$node : Namespace_
Return values
array<string, mixed>

getNamespacingStyle()

Determine namespacing style (semicolon or brace)

private getNamespacingStyle(array<string|int, Node$stmts) : null|string
Parameters
$stmts : array<string|int, Node>

Top-level statements.

Return values
null|string

One of "semicolon", "brace" or null (no namespaces)


        
On this page

Search results