Php7
extends ParserAbstract
in package
Table of Contents
- SYMBOL_NONE = -1
- $action : array<string|int, int>
- $actionBase : array<string|int, int>
- $actionCheck : array<string|int, int>
- $actionDefault : array<string|int, int>
- $actionTableSize : int
- $defaultAction : int
- $endAttributes : array<string|int, mixed>
- $endAttributeStack : array<string|int, array<string|int, mixed>>
- $errorHandler : ErrorHandler
- $errorState : int
- $errorSymbol : int
- $goto : array<string|int, int>
- $gotoBase : array<string|int, int>
- $gotoCheck : array<string|int, int>
- $gotoDefault : array<string|int, int>
- $gotoTableSize : int
- $invalidSymbol : int
- $lexer : Lexer
- $lookaheadStartAttributes : array<string|int, mixed>
- $numNonLeafStates : int
- $productions : array<string|int, mixed>
- $reduceCallbacks : array<string|int, callable>
- $ruleToLength : array<string|int, int>
- $ruleToNonTerminal : array<string|int, int>
- $semStack : array<string|int, mixed>
- $semValue : mixed
- $startAttributeStack : array<string|int, array<string|int, mixed>>
- $symbolToName : array<string|int, string>
- $tokenToSymbol : array<string|int, int>
- $tokenToSymbolMapSize : int
- $unexpectedTokenRule : int
- $YY2TBLSTATE : mixed
- __construct() : mixed
- Creates a parser instance.
- parse() : array<string|int, Stmt>|null
- Parses PHP code into a node tree.
- checkClass() : mixed
- checkClassConst() : mixed
- checkClassMethod() : mixed
- checkInterface() : mixed
- checkModifier() : mixed
- checkNamespace() : mixed
- checkParam() : mixed
- checkProperty() : mixed
- checkTryCatch() : mixed
- checkUseUse() : mixed
- createCommentNopAttributes() : array<string|int, mixed>
- Create attributes for a zero-length common-capturing nop.
- doParse() : mixed
- emitError() : mixed
- fixupPhp5StaticPropCall() : StaticCall
- Fix up parsing of static property calls in PHP 5.
- fixupStartAttributes() : mixed
- getAttributesAt() : array<string|int, mixed>
- Get combined start and end attributes at a stack location
- 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() : mixed
- handleNamespaces() : array<string|int, Stmt>
- Moves statements of semicolon-style namespaces into $ns->stmts and checks various error conditions.
- initReduceCallbacks() : mixed
- Initialize $reduceCallbacks map.
- parseDocString() : mixed
- parseLNumber() : mixed
- parseNumString() : LNumber|String_
- Parse a T_NUM_STRING token into either an integer or string node.
- stripIndentation() : mixed
- fixupNamespaceAttributes() : mixed
- getNamespacingStyle() : null|string
- Determine namespacing style (semicolon or brace)
Constants
SYMBOL_NONE
public
mixed
SYMBOL_NONE
= -1
Properties
$action
protected
array<string|int, int>
$action
= array(130, 131, 132, 555, 133, 134, -32766, 704, 705, 706, 135, 36, -543, -552, 455, -32766, -543, -32766, -32766, -32766, -552, 1152, 778, 927, -549, 969, 970, 0, -32766, -32766, -32766, -549, -32766, 1219, -32766, 245, -32766, 962, -32766, -32766, -32766, -32766, -32766, 461, -32766, -32766, -32766, -32766, -32766, -32766, -32766, -32766, 124, -331, 707, -331, -32766, 388, 1031, 1032, 1033, 1030, 1029, 1028, -32766, 435, 430, 2, 261, 136, 371, 711, 712, 713, 714, 391, 789, 397, 1031, 1032, 1033, 1030, 1029, 1028, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 745, 556, 746, 747, 748, 749, 737, 738, 372, 373, 740, 741, 726, 727, 728, 730, 731, 732, 332, 771, 772, 773, 774, 775, 733, 734, 557, 558, 766, 757, 755, 756, 752, 753, -294, -189, 559, 560, 751, 561, 562, 563, 564, 565, 566, 1235, 456, 783, -503, 889, 754, 567, 568, 928, 137, -32766, -32766, -32766, 130, 131, 132, 555, 133, 134, 983, 704, 705, 706, 135, 36, -32766, -32766, -32766, -32766, -552, -32766, -32766, -32766, -552, 1152, 547, 101, 102, 103, 583, -549, -32766, -32766, -32766, -549, -32766, -32766, -32766, 245, -32766, 80, -32766, -32766, -32766, -32766, -32766, -32766, -32766, -32766, -32766, 959, 958, 957, -32766, -32766, -503, -503, 707, 1264, -32766, 388, 1265, -32766, -32766, -32766, 235, 784, -32766, 778, 19, -503, 261, 136, 371, 711, 712, 713, 714, -32766, -32766, 397, 788, -503, -32766, -509, -32766, -32766, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 745, 556, 746, 747, 748, 749, 737, 738, 372, 373, 740, 741, 726, 727, 728, 730, 731, 732, 332, 771, 772, 773, 774, 775, 733, 734, 557, 558, 766, 757, 755, 756, 752, 753, -294, -189, 559, 560, 751, 561, 562, 563, 564, 565, 566, 309, 81, 82, 83, 139, 754, 567, 568, 681, 137, 729, 699, 700, 701, 702, 703, 1239, 704, 705, 706, 742, 743, 33, 1238, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 31, 263, -32766, -32766, -32766, 104, 105, 106, 577, 263, 1216, 126, -188, 107, 142, 440, 441, 707, -32766, -32766, -32766, 107, -254, -32766, 247, -32766, -32766, -32766, -32766, -32766, -32766, 708, 709, 710, 711, 712, 713, 714, 293, -32766, 776, -32766, -32766, -32766, -32766, -32766, 295, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 745, 768, 746, 747, 748, 749, 737, 738, 739, 767, 740, 741, 726, 727, 728, 730, 731, 732, 770, 771, 772, 773, 774, 775, 733, 734, 735, 736, 766, 757, 755, 756, 752, 753, 529, 311, 744, 750, 751, 758, 759, 761, 760, 762, 763, 234, -32766, -32766, -32766, 307, 754, 765, 764, 48, 49, 50, 486, 51, 52, 481, 397, 18, 321, 53, 54, 345, 55, -32766, 982, -32766, -32766, -32766, -32766, -32766, -32766, -32767, -32767, -32767, -32767, -32767, 349, -32767, -32767, -32767, -32767, 99, 100, 101, 102, 103, 814, 354, 815, 1191, 356, 1152, 871, 271, 408, 871, 56, 57, 409, 814, 410, 815, 58, -188, 59, 240, 241, 60, 61, 62, 63, 64, 65, 66, 67, -32766, 26, 262, 68, 412, 487, 411, 672, 967, 1185, 1186, 488, 1150, 1216, 1154, 1153, 1155, 1183, 40, 23, 489, 1009, 490, -82, 491, 147, 492, 969, 970, 493, 494, 786, 429, 430, 42, 43, 413, 418, 415, 871, 44, 495, 391, 496, 497, 248, 344, 320, 1159, 1154, 1153, 1155, 793, 896, 498, 499, 500, 148, 1008, 861, 692, 787, 861, 967, 1254, 501, 502, 150, 1173, 1174, 1175, 1176, 1170, 1171, 281, 624, 24, 26, -14, 151, 1177, 1172, 969, 970, 1154, 1153, 1155, 282, -82, 1216, -502, 152, 69, 1183, 305, 306, 311, 34, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 154, -149, -149, -149, 639, 640, 146, 376, 1159, 1159, 861, 615, 616, 32, 243, 35, -149, 1216, -149, 121, -149, 873, -149, 667, 873, 122, 667, 242, 1067, 1069, 501, 502, 414, 1173, 1174, 1175, 1176, 1170, 1171, -501, 127, -502, -502, 496, 497, 1177, 1172, -504, 128, 871, 424, 425, 847, 896, -107, -107, -502, 71, 442, 443, 306, 311, -107, -32766, 432, 433, -49, 141, -502, 1152, -508, 155, 156, 780, 157, -84, -32766, -32766, -32766, 673, -32766, -76, -32766, 873, -32766, 667, -149, -32766, 1216, 1216, 1179, 282, -32766, -32766, -32766, -73, 73, -71, -32766, -32766, 311, -501, -501, 129, -32766, 388, -70, -69, -32766, -504, -504, -68, -32766, -67, 1152, -66, -501, -65, 871, -64, 275, -32766, -32766, -32766, -504, -32766, -45, -32766, -501, -32766, -16, 861, -32766, 145, -107, 264, -504, -32766, -32766, -32766, 682, 72, 244, -32766, -32766, -32766, 685, 782, 674, -32766, 388, 1152, 669, 871, -501, 870, 144, -32766, -32766, -32766, -32766, 272, -32766, 282, -32766, 273, -32766, 73, 73, -32766, 1216, 311, 311, 276, -32766, -32766, -32766, 885, -32766, 246, -32766, -32766, 277, 677, 1152, 314, -32766, 388, -4, 871, 263, -32766, -32766, -32766, -32766, -32766, 107, -32766, 143, -32766, 861, 778, -32766, 871, 873, -32766, 667, -32766, -32766, -32766, 625, 647, 871, -32766, -32766, -32766, -501, -501, 787, -32766, 388, 1152, 1037, -32766, 969, 970, 1266, -32766, -32766, -32766, -32766, -501, -32766, 531, -32766, 861, -32766, 660, 871, -32766, 630, 535, 683, -501, -32766, -32766, -32766, 138, -32766, 642, -32766, -32766, 1023, 311, 1152, 20, -32766, 388, 437, 466, 631, -32766, -32766, -32766, -32766, -32766, 643, -32766, 286, -32766, -506, 861, -32766, 913, 407, 667, 613, -32766, -32766, -32766, -32766, 284, -467, -32766, -32766, 861, 46, 283, 282, -32766, 388, 686, 897, 414, 861, 402, 898, -32766, 294, 38, 280, -232, -232, -232, 496, 497, 1007, 414, 873, 26, 667, 1190, 786, 806, 896, -107, -107, 1192, 496, 497, 861, 1216, 47, -457, 8, 1183, 22, 847, 896, -107, -107, 347, -506, -506, 541, 9, -231, -231, -231, 581, 1180, 887, 414, 39, 873, 848, 667, -4, 289, 290, 689, 690, 852, 496, 497, 937, 914, 1261, 873, -506, 667, -232, 847, 896, -107, -107, 921, 873, 911, 667, 922, 850, 909, -537, 502, 123, 1173, 1174, 1175, 1176, 1170, 1171, 1012, 1015, 291, 292, 1016, 1013, 1177, 1172, 1014, 1020, 1263, 873, 30, 667, -231, 304, 798, 348, 71, 1205, 1223, 306, 311, 1257, 618, -535, 346, 668, -107, 125, -107, 671, 675, 676, 678, 285, 679, 680, -107, -107, -107, -107, -107, -107, -107, 684, 670, -257, 809, 808, 817, 895, 929, 816, 1262, 894, 892, 893, 1138, 880, 888, 878, 919, 920, 1260, 1217, 1206, 1224, 1230, 1233, 0, -509, -508, -507, 1, 27, 28, 37, 41, 45, 70, 74, -308, -255, 75, 76, 77, 78, 79, 140, 149, 153, 239, 310, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 403, 404, 0, -254, 12, 13, 14, 15, 17, 375, 457, 458, 465, 468, 469, 470, 471, 475, 476, 477, 484, 654, 1163, 1106, 1181, 984, 1142, -259, -99, 11, 16, 25, 279, 374, 574, 578, 605, 659, 1110, 1158, 1107, 1236, 0, -471, 1123, 0, 1184)
$actionBase
protected
array<string|int, int>
$actionBase
= array(0, -2, 151, 555, 816, 830, 865, 379, 717, 622, 862, 676, 780, 780, 839, 780, 493, 745, 301, 301, -57, 301, 301, 496, 496, 496, 618, 618, 618, 618, -58, -58, 95, 700, 733, 770, 663, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 75, -8, 347, 629, 986, 992, 988, 993, 984, 983, 987, 989, 994, 915, 916, 753, 917, 918, 919, 920, 990, 877, 985, 991, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 508, 38, 219, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 156, 156, 156, 203, 525, 525, 8, 598, 161, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 349, 333, 435, 435, 435, 435, 435, 436, 436, 436, 436, 933, 564, 636, 635, 465, -52, 127, 127, 718, 718, 759, 410, 410, 410, 444, -109, -109, -109, 74, 538, 396, 348, 414, 414, 414, 414, 414, 802, 998, 139, 139, 139, 139, 414, 414, 414, 606, 713, 713, 881, 293, 293, 293, 713, 383, 777, 497, 383, 497, 129, 793, 32, -40, -145, 793, 829, 845, 23, 12, 788, 573, 788, 767, 863, 898, 995, 82, 789, 913, 795, 914, 224, 678, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 981, 269, 982, 63, 269, 269, 269, 529, 63, 518, 558, 63, 778, 982, 75, 805, 75, 75, 75, 75, 944, 75, 75, 75, 75, 75, 75, 949, 727, 723, 692, -17, 75, -8, 143, 143, 419, 36, 143, 143, 143, 143, 75, 75, 565, 573, 762, 812, 581, 817, 344, 762, 762, 762, 509, 121, 201, 122, 352, 750, 750, 768, 769, 924, 924, 750, 765, 750, 769, 929, 750, 768, 768, 750, 924, 768, 761, 343, 488, 452, 470, 768, 768, 492, 924, 370, 768, 768, 750, 750, 750, 797, 768, 494, 750, 356, 346, 750, 750, 768, 768, 797, 786, 59, 779, 924, 924, 924, 797, 455, 779, 779, 822, 823, 792, 732, 439, 378, 561, 332, 768, 732, 732, 750, 481, 792, 732, 792, 732, 818, 732, 732, 732, 792, 732, 765, 484, 732, 768, 515, 211, 732, 27, 930, 931, 672, 934, 927, 935, 955, 936, 937, 879, 794, 798, 942, 928, 938, 926, 925, 752, 631, 637, 806, 764, 923, 756, 756, 756, 921, 756, 756, 756, 756, 756, 756, 756, 756, 631, 811, 813, 776, 781, 945, 652, 660, 796, 814, 996, 997, 944, 976, 939, 771, 679, 962, 946, 760, 867, 947, 948, 963, 977, 978, 826, 757, 861, 899, 869, 950, 883, 756, 930, 937, 928, 938, 926, 925, 716, 714, 710, 712, 708, 704, 694, 703, 730, 875, 841, 872, 949, 922, 631, 873, 958, 864, 964, 965, 878, 790, 772, 876, 900, 951, 952, 953, 884, 979, 885, 815, 959, 896, 966, 791, 901, 967, 968, 969, 970, 886, 902, 888, 824, 749, 932, 773, 903, 528, 766, 775, 956, 560, 943, 889, 904, 905, 971, 972, 973, 906, 907, 940, 827, 960, 784, 961, 957, 828, 838, 570, 754, 758, 582, 594, 908, 909, 941, 737, 763, 840, 842, 980, 910, 614, 843, 683, 911, 975, 684, 686, 774, 897, 808, 783, 787, 954, 743, 844, 912, 854, 855, 858, 974, 859, 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, 449, 449, 449, 449, 449, 449, 301, 301, 301, 301, 449, 449, 449, 449, 449, 449, 449, 0, 0, 301, 0, 0, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 414, 414, 285, 0, 285, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 285, 285, 285, 285, 285, 285, 285, 293, 293, 293, 293, 761, 414, 414, 414, 414, -37, 293, 293, 414, 414, -37, 414, 414, 414, 761, 414, 414, 414, 0, 0, 63, 497, 0, 0, 0, 0, 0, 497, 497, 269, 269, 269, 269, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, 497, 0, 63, 0, 765, 414, 269, 761, 308, 414, 0, 0, 0, 0, 63, 765, 63, 497, 143, 75, 308, 0, 534, 534, 534, 534, 0, 573, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 0, 761, 0, 0, 0, 0, 0, 0, 0, 0, 0, 765, 768, 0, 924, 0, 0, 0, 0, 750, 0, 0, 0, 0, 0, 0, 750, 929, 768, 768, 0, 0, 0, 0, 0, 0, 765, 0, 0, 0, 0, 0, 0, 0, 0, 756, 790, 0, 790, 0, 756, 756, 756)
$actionCheck
protected
array<string|int, int>
$actionCheck
= array(2, 3, 4, 5, 6, 7, 115, 9, 10, 11, 12, 13, 157, 1, 31, 73, 161, 9, 10, 11, 8, 79, 79, 31, 1, 134, 135, 0, 86, 87, 88, 8, 90, 1, 92, 37, 94, 1, 30, 97, 32, 33, 34, 101, 102, 103, 104, 9, 10, 11, 108, 109, 14, 105, 56, 107, 114, 115, 115, 116, 117, 118, 119, 120, 122, 105, 106, 8, 70, 71, 72, 73, 74, 75, 76, 115, 1, 79, 115, 116, 117, 118, 119, 120, 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, 8, 8, 133, 134, 135, 136, 137, 138, 139, 140, 141, 1, 158, 79, 69, 1, 147, 148, 149, 156, 151, 9, 10, 11, 2, 3, 4, 5, 6, 7, 161, 9, 10, 11, 12, 13, 9, 10, 11, 73, 157, 9, 10, 11, 161, 79, 80, 49, 50, 51, 50, 157, 86, 87, 88, 161, 90, 30, 92, 37, 94, 158, 30, 97, 32, 33, 34, 35, 102, 103, 104, 118, 119, 120, 108, 109, 131, 132, 56, 79, 114, 115, 82, 9, 10, 11, 14, 153, 122, 79, 8, 146, 70, 71, 72, 73, 74, 75, 76, 9, 10, 79, 156, 158, 30, 160, 32, 33, 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, 161, 161, 133, 134, 135, 136, 137, 138, 139, 140, 141, 69, 9, 10, 11, 158, 147, 148, 149, 158, 151, 2, 3, 4, 5, 6, 7, 1, 9, 10, 11, 12, 13, 30, 8, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 8, 56, 9, 10, 11, 52, 53, 54, 1, 56, 81, 8, 8, 68, 8, 131, 132, 56, 9, 10, 11, 68, 161, 30, 8, 32, 33, 34, 35, 36, 37, 70, 71, 72, 73, 74, 75, 76, 8, 30, 79, 32, 33, 34, 35, 36, 8, 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, 84, 164, 133, 134, 135, 136, 137, 138, 139, 140, 141, 96, 9, 10, 11, 8, 147, 148, 149, 2, 3, 4, 5, 6, 7, 105, 79, 107, 8, 12, 13, 8, 15, 30, 1, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 8, 43, 44, 45, 46, 47, 48, 49, 50, 51, 105, 8, 107, 143, 8, 79, 1, 30, 8, 1, 49, 50, 8, 105, 8, 107, 55, 161, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 9, 69, 70, 71, 72, 73, 8, 31, 115, 77, 78, 79, 115, 81, 152, 153, 154, 85, 86, 87, 88, 159, 90, 31, 92, 14, 94, 134, 135, 97, 98, 152, 105, 106, 102, 103, 104, 105, 106, 1, 108, 109, 115, 116, 117, 37, 114, 115, 1, 152, 153, 154, 8, 126, 122, 123, 124, 14, 156, 83, 158, 81, 83, 115, 84, 133, 134, 14, 136, 137, 138, 139, 140, 141, 142, 74, 75, 69, 31, 14, 148, 149, 134, 135, 152, 153, 154, 155, 96, 81, 69, 14, 160, 85, 162, 163, 164, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 14, 74, 75, 76, 74, 75, 100, 101, 1, 1, 83, 110, 111, 144, 145, 14, 89, 81, 91, 16, 93, 156, 95, 158, 156, 16, 158, 37, 58, 59, 133, 134, 105, 136, 137, 138, 139, 140, 141, 69, 16, 131, 132, 116, 117, 148, 149, 69, 16, 1, 105, 106, 125, 126, 127, 128, 146, 160, 105, 106, 163, 164, 126, 73, 127, 128, 31, 16, 158, 79, 160, 16, 16, 79, 16, 31, 86, 87, 88, 31, 90, 31, 92, 156, 94, 158, 159, 97, 81, 81, 1, 155, 102, 103, 104, 31, 160, 31, 108, 109, 164, 131, 132, 31, 114, 115, 31, 31, 73, 131, 132, 31, 122, 31, 79, 31, 146, 31, 1, 31, 30, 86, 87, 88, 146, 90, 31, 92, 158, 94, 31, 83, 97, 31, 126, 31, 158, 102, 103, 104, 31, 151, 37, 108, 109, 73, 31, 153, 31, 114, 115, 79, 158, 1, 69, 31, 31, 122, 86, 87, 88, 35, 90, 155, 92, 35, 94, 160, 160, 97, 81, 164, 164, 35, 102, 103, 104, 37, 73, 37, 108, 109, 35, 31, 79, 35, 114, 115, 0, 1, 56, 86, 87, 88, 122, 90, 68, 92, 69, 94, 83, 79, 97, 1, 156, 115, 158, 102, 103, 104, 89, 76, 1, 108, 109, 73, 131, 132, 81, 114, 115, 79, 81, 84, 134, 135, 82, 122, 86, 87, 88, 146, 90, 84, 92, 83, 94, 91, 1, 97, 95, 88, 31, 158, 102, 103, 104, 158, 73, 93, 108, 109, 121, 164, 79, 96, 114, 115, 96, 96, 99, 86, 87, 88, 122, 90, 99, 92, 113, 94, 69, 83, 97, 156, 126, 158, 112, 102, 103, 104, 115, 130, 146, 108, 109, 83, 69, 129, 155, 114, 115, 159, 126, 105, 83, 107, 126, 122, 129, 156, 112, 99, 100, 101, 116, 117, 1, 105, 156, 69, 158, 143, 152, 125, 126, 127, 128, 143, 116, 117, 83, 81, 69, 146, 146, 85, 146, 125, 126, 127, 128, 146, 131, 132, 150, 147, 99, 100, 101, 150, 157, 151, 105, 156, 156, 159, 158, 159, 131, 132, 156, 156, 156, 116, 117, 156, 156, 159, 156, 158, 158, 159, 125, 126, 127, 128, 156, 156, 156, 158, 156, 156, 156, 160, 134, 158, 136, 137, 138, 139, 140, 141, 156, 156, 131, 132, 156, 156, 148, 149, 156, 156, 159, 156, 158, 158, 159, 158, 157, 146, 160, 157, 157, 163, 164, 157, 157, 160, 158, 158, 105, 158, 107, 158, 158, 158, 158, 112, 158, 158, 115, 116, 117, 118, 119, 120, 121, 158, 158, 161, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, -1, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 159, 161, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, -1, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, -1, 162, 162, -1, 163)
$actionDefault
protected
array<string|int, int>
$actionDefault
= array(3, 32767, 99, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 97, 32767, 32767, 32767, 32767, 32767, 32767, 555, 555, 555, 555, 236, 99, 32767, 32767, 32767, 32767, 431, 350, 350, 350, 32767, 32767, 499, 499, 499, 499, 499, 499, 32767, 32767, 32767, 32767, 32767, 32767, 431, 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, 97, 32767, 32767, 32767, 35, 5, 6, 8, 9, 48, 15, 32767, 32767, 32767, 32767, 32767, 99, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 548, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 435, 414, 415, 417, 418, 349, 500, 554, 293, 551, 348, 142, 305, 295, 224, 296, 240, 241, 267, 345, 146, 379, 432, 381, 430, 434, 380, 355, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 353, 354, 433, 436, 437, 440, 441, 411, 410, 409, 377, 32767, 32767, 378, 352, 382, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 99, 32767, 384, 383, 400, 401, 398, 399, 402, 403, 404, 405, 406, 32767, 32767, 32767, 32767, 32767, 328, 391, 392, 284, 284, 330, 32767, 32767, 32767, 108, 32767, 32767, 32767, 493, 408, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 99, 32767, 97, 495, 374, 376, 463, 386, 387, 385, 356, 32767, 470, 32767, 99, 472, 32767, 32767, 32767, 32767, 32767, 32767, 494, 32767, 501, 501, 32767, 456, 97, 32767, 32767, 32767, 32767, 262, 32767, 32767, 32767, 32767, 562, 456, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 32767, 107, 32767, 32767, 32767, 97, 185, 32767, 250, 252, 99, 516, 190, 32767, 475, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 468, 190, 190, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 456, 396, 135, 32767, 135, 501, 388, 389, 390, 458, 501, 501, 501, 32767, 32767, 32767, 190, 32767, 473, 473, 97, 97, 97, 97, 468, 32767, 190, 190, 32767, 32767, 190, 108, 96, 96, 96, 96, 190, 190, 96, 100, 98, 190, 190, 32767, 32767, 32767, 205, 190, 96, 32767, 98, 98, 32767, 32767, 190, 190, 205, 207, 98, 209, 32767, 520, 521, 205, 98, 209, 209, 229, 229, 447, 286, 98, 96, 98, 98, 190, 286, 286, 32767, 98, 447, 286, 447, 286, 192, 286, 286, 286, 447, 286, 32767, 98, 286, 190, 96, 96, 286, 32767, 32767, 32767, 458, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 488, 32767, 505, 518, 394, 395, 397, 503, 419, 420, 421, 422, 423, 424, 425, 427, 550, 32767, 462, 32767, 32767, 32767, 32767, 304, 560, 32767, 560, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 561, 32767, 501, 32767, 32767, 32767, 32767, 393, 7, 74, 41, 42, 50, 56, 479, 480, 481, 482, 476, 477, 483, 478, 32767, 484, 526, 32767, 32767, 502, 553, 32767, 32767, 32767, 32767, 32767, 32767, 135, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 488, 32767, 133, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 501, 32767, 32767, 32767, 281, 283, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 501, 32767, 32767, 32767, 269, 271, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 266, 32767, 32767, 344, 32767, 32767, 32767, 32767, 324, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 148, 148, 3, 3, 307, 148, 148, 148, 307, 307, 148, 307, 307, 148, 148, 148, 148, 148, 148, 180, 244, 247, 229, 229, 148, 316, 148)
$actionTableSize
protected
int
$actionTableSize
= 1162
$defaultAction
protected
int
$defaultAction
= -32766
$endAttributes
protected
array<string|int, mixed>
$endAttributes
$endAttributeStack
protected
array<string|int, array<string|int, mixed>>
$endAttributeStack
$errorHandler
protected
ErrorHandler
$errorHandler
$errorState
protected
int
$errorState
$errorSymbol
protected
int
$errorSymbol
= 1
$goto
protected
array<string|int, int>
$goto
= array(190, 190, 655, 781, 663, 399, 629, 964, 971, 972, 393, 297, 298, 317, 549, 303, 398, 318, 400, 607, 361, 365, 534, 572, 576, 161, 161, 161, 161, 187, 187, 171, 173, 209, 191, 204, 187, 187, 187, 187, 187, 188, 188, 188, 188, 188, 188, 182, 183, 184, 185, 186, 206, 204, 207, 509, 510, 389, 511, 513, 514, 515, 516, 517, 518, 519, 520, 1053, 162, 163, 164, 189, 165, 166, 167, 160, 168, 169, 170, 172, 203, 205, 208, 230, 233, 236, 238, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 266, 267, 300, 301, 302, 394, 395, 396, 554, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 174, 225, 175, 192, 193, 194, 231, 182, 183, 184, 185, 186, 206, 1053, 195, 176, 177, 178, 196, 192, 179, 232, 197, 159, 198, 226, 180, 199, 227, 228, 181, 229, 200, 201, 202, 807, 611, 611, 804, 274, 274, 274, 274, 976, 973, 974, 592, 626, 1147, 594, 594, 571, 533, 526, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1250, 1250, 986, 328, 812, 1027, 860, 855, 856, 869, 1026, 813, 857, 810, 858, 859, 811, 803, 1251, 1251, 805, 1250, 863, 912, 936, 910, 910, 908, 910, 687, 363, 526, 1003, 1004, 533, 1253, 525, 945, 940, 1251, 542, 543, 820, 1148, 838, 370, 552, 832, 308, 288, 819, 573, 864, 795, 865, 1200, 1200, 785, 587, 588, 1200, 1200, 1200, 1200, 1200, 1200, 1200, 1200, 1200, 1200, 1151, 1151, 1151, 968, 1149, 1208, 1209, 968, 968, 472, 968, 968, 968, 779, 968, 968, 968, 1232, 1232, 1232, 1232, 1151, 1151, 1151, 1151, 1151, 785, 21, 785, 546, 1198, 1198, 1151, 1151, 1151, 1198, 1198, 1198, 1198, 1198, 1198, 1198, 1198, 1198, 1198, 523, 523, 523, 325, 876, 512, 512, 392, 877, 582, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 1240, 427, 906, 906, 906, 906, 387, 387, 387, 387, 602, 604, 427, 900, 907, 540, 904, 379, 662, 688, 606, 608, 933, 5, 627, 6, 539, 645, 649, 947, 653, 661, 943, 586, 377, 378, 800, 1019, 570, 635, 666, 636, 359, 381, 382, 383, 453, 646, 652, 652, 384, 658, 1017, 454, 323, 580, 595, 598, 599, 600, 601, 619, 620, 621, 665, 527, 537, 1267, 450, 1225, 1226, 527, 545, 537, 800, 628, 362, 1101, 528, 434, 521, 521, 521, 521, 1227, 1228, 1132, 890, 405, 575, 1133, 1136, 891, 1137, 444, 553, 445, 419, 419, 419, 830, 329, 330, 1258, 1259, 1222, 1222, 1222, 622, 623, 431, 637, 638, 1211, 439, 439, 550, 585, 881, 1041, 797, 319, 833, 821, 991, 439, 590, 995, 825, 828, 369, 822, 952, 1234, 1234, 1234, 1234, 915, 648, 824, 955, 632, 931, 473, 691, 474, 992, 818, 1144, 451, 996, 480, 0, 834, 1036, 1218, 917, 0, 0, 1143, 0, 905, 0, 0, 0, 0, 0, 528, 0, 0, 419, 419, 419, 419, 419, 419, 419, 419, 419, 419, 419, 800, 419, 1034, 837, 0, 0, 0, 994, 0, 0, 1220, 1220, 994, 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, 1146, 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, 270, 524, 524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 950, 950)
$gotoBase
protected
array<string|int, int>
$gotoBase
= array(0, 0, -232, 0, 0, 249, -6, 351, -16, 0, 0, -37, -11, 79, -167, 22, 1, 148, 40, -188, 0, 83, 158, 324, 199, 156, 202, 132, 162, 0, 0, 0, 0, 0, -118, 0, 131, 0, 142, 0, 66, -1, 0, 0, 211, -347, 0, -332, 192, 0, 0, 0, 0, 0, 130, 0, 0, -23, 0, 0, 323, 0, 161, 225, -229, 0, 0, 0, 0, 0, 0, -5, 0, 0, -198, 0, 30, 42, -109, 157, -77, -122, -246, 0, 53, 0, 0, 67, -267, 0, 89, 0, 0, 0, 312, 352, 0, 0, 375, -63, 0, 116, 0, 140, 0, -264, 0, -110, 0, 0, 0, 186, 0, 118, 165, 0, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -74, 0, 0, 64, 0, 405, 0, 135, 0, 0, 0, -4, 0, 63, 0, 0, 65, 0, 0, 0, 0, 0, 0, -71, 7, 52, 258, 72, 0, 0, 99, 0, 58, 276, 0, 292, -101, -83, 0, 0)
$gotoCheck
protected
array<string|int, int>
$gotoCheck
= array(41, 41, 71, 6, 8, 64, 64, 105, 105, 105, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 57, 57, 57, 57, 57, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 14, 107, 107, 25, 22, 22, 22, 22, 107, 107, 107, 54, 54, 19, 99, 99, 114, 74, 74, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 164, 164, 111, 88, 14, 128, 14, 14, 14, 14, 128, 14, 14, 14, 14, 14, 14, 24, 165, 165, 26, 164, 14, 48, 24, 24, 24, 24, 24, 24, 74, 74, 14, 14, 74, 164, 24, 24, 24, 165, 74, 74, 34, 19, 44, 74, 74, 34, 151, 151, 34, 74, 63, 19, 63, 152, 152, 11, 74, 74, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 71, 71, 71, 71, 19, 19, 19, 71, 71, 74, 71, 71, 71, 5, 71, 71, 71, 8, 8, 8, 8, 71, 71, 71, 71, 71, 11, 74, 11, 154, 153, 153, 71, 71, 71, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 18, 18, 18, 161, 71, 155, 155, 12, 71, 12, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 163, 18, 18, 18, 18, 18, 23, 23, 23, 23, 81, 81, 18, 18, 18, 47, 84, 84, 84, 47, 47, 47, 94, 45, 47, 45, 8, 47, 47, 47, 47, 47, 47, 8, 78, 78, 21, 7, 7, 78, 7, 78, 60, 78, 78, 78, 80, 78, 7, 7, 78, 7, 7, 80, 78, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 8, 8, 13, 158, 158, 158, 8, 95, 8, 21, 62, 8, 135, 13, 8, 98, 98, 98, 98, 160, 160, 76, 76, 103, 98, 76, 76, 76, 76, 8, 8, 8, 22, 22, 22, 8, 88, 88, 8, 8, 114, 114, 114, 82, 82, 79, 82, 82, 13, 133, 133, 2, 2, 16, 16, 17, 28, 15, 15, 15, 133, 16, 15, 38, 8, 27, 36, 16, 114, 114, 114, 114, 15, 13, 16, 101, 16, 16, 139, 90, 139, 113, 16, 144, 141, 116, 139, -1, 40, 131, 114, 87, -1, -1, 16, -1, 15, -1, -1, -1, -1, -1, 13, -1, -1, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 21, 22, 15, 15, -1, -1, -1, 114, -1, -1, 114, 114, 114, -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, 13, -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, 23, 23, 23, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 98, 98)
$gotoDefault
protected
array<string|int, int>
$gotoDefault
= array(-32768, 485, 695, 4, 696, 769, 777, 569, 503, 664, 324, 596, 390, 331, 862, 1040, 551, 796, 1160, 1168, 428, 799, 312, 326, 844, 845, 846, 366, 351, 357, 364, 617, 597, 467, 831, 422, 823, 459, 826, 421, 835, 158, 386, 483, 839, 3, 841, 530, 872, 352, 849, 353, 641, 851, 536, 853, 854, 360, 367, 368, 1045, 544, 593, 866, 237, 538, 867, 350, 868, 875, 355, 358, 650, 438, 478, 380, 1021, 579, 614, 416, 447, 591, 603, 589, 902, 460, 436, 916, 327, 924, 693, 1052, 609, 462, 932, 610, 939, 942, 504, 505, 452, 954, 268, 463, 981, 633, 634, 966, 612, 979, 446, 985, 423, 993, 1204, 426, 997, 260, 1000, 269, 385, 401, 1005, 1006, 7, 1011, 656, 657, 10, 265, 482, 1035, 651, 420, 1051, 406, 1120, 1122, 532, 464, 1140, 1139, 644, 479, 1145, 1207, 417, 506, 448, 299, 507, 287, 315, 296, 522, 278, 316, 508, 449, 1213, 1221, 313, 29, 1241, 1252, 322, 548, 584)
$gotoTableSize
protected
int
$gotoTableSize
= 611
$invalidSymbol
protected
int
$invalidSymbol
= 165
$lexer
protected
Lexer
$lexer
$lookaheadStartAttributes
protected
array<string|int, mixed>
$lookaheadStartAttributes
$numNonLeafStates
protected
int
$numNonLeafStates
= 694
$productions
protected
array<string|int, mixed>
$productions
$reduceCallbacks
protected
array<string|int, callable>
$reduceCallbacks
$ruleToLength
protected
array<string|int, int>
$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, 0, 1, 0, 1, 1, 2, 1, 3, 4, 1, 2, 0, 1, 1, 1, 1, 1, 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, 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, 0, 2, 1, 3, 8, 0, 4, 2, 1, 3, 0, 1, 0, 1, 3, 1, 8, 9, 7, 8, 7, 6, 1, 2, 2, 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, 1, 1, 1, 6, 8, 6, 1, 2, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 1, 2, 1, 0, 1, 0, 2, 2, 2, 4, 1, 3, 1, 2, 2, 3, 2, 3, 1, 1, 2, 3, 1, 1, 3, 2, 0, 1, 5, 5, 10, 3, 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, 2, 1, 3, 1, 1, 3, 2, 2, 3, 1, 0, 1, 1, 3, 3, 3, 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, 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, 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, 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)
$ruleToNonTerminal
protected
array<string|int, int>
$ruleToNonTerminal
= array(0, 1, 3, 3, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 9, 10, 10, 10, 11, 11, 12, 12, 13, 14, 14, 15, 15, 16, 16, 17, 17, 20, 20, 21, 22, 22, 23, 23, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 28, 28, 29, 29, 31, 33, 33, 27, 35, 35, 32, 37, 37, 34, 34, 36, 36, 38, 38, 30, 39, 39, 40, 42, 43, 43, 44, 45, 45, 47, 46, 46, 46, 46, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 24, 24, 67, 67, 70, 70, 69, 68, 68, 61, 73, 73, 74, 74, 75, 75, 76, 76, 25, 25, 26, 26, 26, 26, 79, 79, 79, 80, 80, 83, 83, 81, 81, 84, 85, 85, 55, 55, 63, 63, 66, 66, 66, 65, 86, 86, 87, 56, 56, 56, 56, 88, 88, 89, 89, 90, 90, 91, 92, 92, 93, 93, 94, 94, 53, 53, 49, 49, 96, 51, 51, 97, 50, 50, 52, 52, 62, 62, 62, 62, 77, 77, 100, 100, 102, 102, 102, 102, 101, 101, 101, 104, 104, 104, 105, 105, 107, 107, 107, 106, 106, 108, 108, 109, 109, 109, 103, 103, 78, 78, 78, 19, 19, 110, 110, 111, 111, 111, 111, 58, 112, 112, 113, 59, 115, 115, 116, 116, 117, 117, 82, 118, 118, 118, 118, 118, 123, 123, 124, 124, 125, 125, 125, 125, 125, 126, 127, 127, 122, 122, 119, 119, 121, 121, 129, 129, 128, 128, 128, 128, 128, 128, 120, 130, 130, 132, 131, 131, 60, 95, 133, 133, 54, 54, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 140, 134, 134, 139, 139, 142, 143, 143, 144, 145, 145, 145, 18, 18, 71, 71, 71, 71, 135, 135, 135, 135, 147, 147, 136, 136, 138, 138, 138, 141, 141, 152, 152, 152, 152, 152, 152, 152, 152, 152, 153, 153, 99, 155, 155, 155, 155, 137, 137, 137, 137, 137, 137, 137, 137, 57, 57, 150, 150, 150, 150, 156, 156, 146, 146, 146, 157, 157, 157, 157, 157, 157, 72, 72, 64, 64, 64, 64, 114, 114, 114, 114, 160, 159, 149, 149, 149, 149, 149, 149, 149, 148, 148, 148, 158, 158, 158, 158, 98, 154, 162, 162, 161, 161, 163, 163, 163, 163, 163, 163, 163, 163, 151, 151, 151, 151, 165, 166, 164, 164, 164, 164, 164, 164, 164, 164, 167, 167, 167, 167)
$semStack
protected
array<string|int, mixed>
$semStack
$semValue
protected
mixed
$semValue
$startAttributeStack
protected
array<string|int, array<string|int, mixed>>
$startAttributeStack
$symbolToName
protected
array<string|int, string>
$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_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_VAR", "T_UNSET", "T_ISSET", "T_EMPTY", "T_HALT_COMPILER", "T_CLASS", "T_TRAIT", "T_INTERFACE", "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", "';'", "']'", "'{'", "'}'", "'('", "')'", "'`'", "'"'", "'$'")
$tokenToSymbol
protected
array<string|int, int>
$tokenToSymbol
= array(0, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 55, 163, 165, 164, 54, 37, 165, 160, 161, 52, 49, 8, 50, 51, 53, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 31, 156, 43, 16, 45, 30, 67, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 69, 165, 157, 36, 165, 162, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 158, 35, 159, 57, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 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, 38, 39, 40, 41, 42, 44, 46, 47, 48, 56, 58, 59, 60, 61, 62, 63, 64, 65, 66, 68, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155)
$tokenToSymbolMapSize
protected
int
$tokenToSymbolMapSize
= 392
$unexpectedTokenRule
protected
int
$unexpectedTokenRule
= 32767
$YY2TBLSTATE
protected
mixed
$YY2TBLSTATE
= 397
Methods
__construct()
Creates a parser instance.
public
__construct(Lexer $lexer[, array<string|int, mixed> $options = [] ]) : mixed
Options: Currently none.
Parameters
- $lexer : Lexer
-
A lexer
- $options : array<string|int, mixed> = []
-
Options array.
Return values
mixed —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).
checkClass()
protected
checkClass(Class_ $node, mixed $namePos) : mixed
Parameters
- $node : Class_
- $namePos : mixed
Return values
mixed —checkClassConst()
protected
checkClassConst(ClassConst $node, mixed $modifierPos) : mixed
Parameters
- $node : ClassConst
- $modifierPos : mixed
Return values
mixed —checkClassMethod()
protected
checkClassMethod(ClassMethod $node, mixed $modifierPos) : mixed
Parameters
- $node : ClassMethod
- $modifierPos : mixed
Return values
mixed —checkInterface()
protected
checkInterface(Interface_ $node, mixed $namePos) : mixed
Parameters
- $node : Interface_
- $namePos : mixed
Return values
mixed —checkModifier()
protected
checkModifier(mixed $a, mixed $b, mixed $modifierPos) : mixed
Parameters
- $a : mixed
- $b : mixed
- $modifierPos : mixed
Return values
mixed —checkNamespace()
protected
checkNamespace(Namespace_ $node) : mixed
Parameters
- $node : Namespace_
Return values
mixed —checkParam()
protected
checkParam(Param $node) : mixed
Parameters
- $node : Param
Return values
mixed —checkProperty()
protected
checkProperty(Property $node, mixed $modifierPos) : mixed
Parameters
- $node : Property
- $modifierPos : mixed
Return values
mixed —checkTryCatch()
protected
checkTryCatch(TryCatch $node) : mixed
Parameters
- $node : TryCatch
Return values
mixed —checkUseUse()
protected
checkUseUse(UseUse $node, mixed $namePos) : mixed
Parameters
- $node : UseUse
- $namePos : mixed
Return values
mixed —createCommentNopAttributes()
Create attributes for a zero-length common-capturing nop.
protected
createCommentNopAttributes(array<string|int, Comment> $comments) : array<string|int, mixed>
Parameters
- $comments : array<string|int, Comment>
Return values
array<string|int, mixed> —doParse()
protected
doParse() : mixed
Return values
mixed —emitError()
protected
emitError(Error $error) : mixed
Parameters
- $error : Error
Return values
mixed —fixupPhp5StaticPropCall()
Fix up parsing of static property calls in PHP 5.
protected
fixupPhp5StaticPropCall(StaticPropertyFetch|ArrayDimFetch $prop, array<string|int, Arg> $args, array<string|int, mixed> $attributes) : StaticCall
In PHP 5 A::$b[c][d] and A::$b[c]d have very different interpretation. The former is interpreted as (A::$b)[c][d], while the latter is the same as A::{$b[c][d]}(). We parse the latter as the former initially and this method fixes the AST into the correct form when we encounter the "()".
Parameters
- $prop : StaticPropertyFetch|ArrayDimFetch
- $args : array<string|int, Arg>
- $attributes : array<string|int, mixed>
Return values
StaticCall —fixupStartAttributes()
protected
fixupStartAttributes(Node $to, Node $from) : mixed
Parameters
Return values
mixed —getAttributesAt()
Get combined start and end attributes at a stack location
protected
getAttributesAt(int $pos) : array<string|int, mixed>
Parameters
- $pos : int
-
Stack location
Return values
array<string|int, mixed> —Combined start and end attributes
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 —handleBuiltinTypes()
protected
handleBuiltinTypes(Name $name) : mixed
Parameters
- $name : Name
Return values
mixed —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() : mixed
Return values
mixed —parseDocString()
protected
parseDocString(string $startToken, mixed $contents, string $endToken, array<string|int, mixed> $attributes, array<string|int, mixed> $endTokenAttributes, bool $parseUnicodeEscape) : mixed
Parameters
- $startToken : string
- $contents : mixed
- $endToken : string
- $attributes : array<string|int, mixed>
- $endTokenAttributes : array<string|int, mixed>
- $parseUnicodeEscape : bool
Return values
mixed —parseLNumber()
protected
parseLNumber(mixed $str, mixed $attributes[, mixed $allowInvalidOctal = false ]) : mixed
Parameters
- $str : mixed
- $attributes : mixed
- $allowInvalidOctal : mixed = false
Return values
mixed —parseNumString()
Parse a T_NUM_STRING token into either an integer or string node.
protected
parseNumString(string $str, array<string|int, mixed> $attributes) : LNumber|String_
Parameters
- $str : string
-
Number string
- $attributes : array<string|int, mixed>
-
Attributes
Return values
LNumber|String_ —Integer or string node.
stripIndentation()
protected
stripIndentation(string $string, int $indentLen, string $indentChar, bool $newlineAtStart, bool $newlineAtEnd, array<string|int, mixed> $attributes) : mixed
Parameters
- $string : string
- $indentLen : int
- $indentChar : string
- $newlineAtStart : bool
- $newlineAtEnd : bool
- $attributes : array<string|int, mixed>
Return values
mixed —fixupNamespaceAttributes()
private
fixupNamespaceAttributes(Namespace_ $stmt) : mixed
Parameters
- $stmt : Namespace_
Return values
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)