public interface PHPParserConstants {
int EOF = 0;
- int PHPSTART = 1;
- int PHPEND = 2;
- int SINGLE_LINE_COMMENT = 12;
- int SINGLE_LINE_COMMENT_PHPEND = 13;
- int FORMAL_COMMENT = 14;
- int MULTI_LINE_COMMENT = 15;
- int CLASS = 17;
- int FUNCTION = 18;
- int VAR = 19;
- int IF = 20;
- int ELSEIF = 21;
- int ELSE = 22;
- int ARRAY = 23;
- int PRINT = 24;
- int ECHO = 25;
- int INCLUDE = 26;
- int REQUIRE = 27;
- int INCLUDE_ONCE = 28;
- int REQUIRE_ONCE = 29;
- int GLOBAL = 30;
- int STATIC = 31;
- int CLASSACCESS = 32;
- int STATICCLASSACCESS = 33;
- int ARRAYASSIGN = 34;
- int BREAK = 35;
- int CASE = 36;
- int CONST = 37;
- int CONTINUE = 38;
- int _DEFAULT = 39;
- int DO = 40;
- int EXTENDS = 41;
- int FALSE = 42;
- int FOR = 43;
- int GOTO = 44;
- int NEW = 45;
- int NULL = 46;
- int RETURN = 47;
- int SUPER = 48;
- int SWITCH = 49;
- int THIS = 50;
- int TRUE = 51;
- int WHILE = 52;
- int ENDWHILE = 53;
- int ENDIF = 54;
- int ENDFOR = 55;
- int FOREACH = 56;
- int AS = 57;
- int STRING = 58;
- int OBJECT = 59;
- int BOOL = 60;
- int BOOLEAN = 61;
- int REAL = 62;
- int DOUBLE = 63;
- int FLOAT = 64;
- int INT = 65;
- int INTEGER = 66;
- int _ORL = 67;
- int _ANDL = 68;
- int INTEGER_LITERAL = 69;
- int DECIMAL_LITERAL = 70;
- int HEX_LITERAL = 71;
- int OCTAL_LITERAL = 72;
- int FLOATING_POINT_LITERAL = 73;
- int EXPONENT = 74;
- int STRING_LITERAL = 75;
- int STRING_1 = 76;
- int STRING_2 = 77;
- int STRING_3 = 78;
- int IDENTIFIER = 79;
- int LETTER = 80;
- int DIGIT = 81;
- int SPECIAL = 82;
- int LPAREN = 83;
- int RPAREN = 84;
- int LBRACE = 85;
- int RBRACE = 86;
- int LBRACKET = 87;
- int RBRACKET = 88;
- int SEMICOLON = 89;
- int COMMA = 90;
- int DOT = 91;
- int AT = 92;
- int DOLLAR = 93;
- int ASSIGN = 94;
+ int PHPSTARTSHORT = 1;
+ int PHPSTARTLONG = 2;
+ int PHPECHOSTART = 3;
+ int PHPEND = 4;
+ int SINGLE_LINE_COMMENT = 14;
+ int SINGLE_LINE_COMMENT_PHPEND = 15;
+ int FORMAL_COMMENT = 16;
+ int MULTI_LINE_COMMENT = 17;
+ int CLASS = 19;
+ int FUNCTION = 20;
+ int VAR = 21;
+ int IF = 22;
+ int ELSEIF = 23;
+ int ELSE = 24;
+ int ARRAY = 25;
+ int BREAK = 26;
+ int PRINT = 27;
+ int ECHO = 28;
+ int INCLUDE = 29;
+ int REQUIRE = 30;
+ int INCLUDE_ONCE = 31;
+ int REQUIRE_ONCE = 32;
+ int GLOBAL = 33;
+ int STATIC = 34;
+ int CLASSACCESS = 35;
+ int STATICCLASSACCESS = 36;
+ int ARRAYASSIGN = 37;
+ int LIST = 38;
+ int CASE = 39;
+ int CONST = 40;
+ int CONTINUE = 41;
+ int _DEFAULT = 42;
+ int DO = 43;
+ int EXTENDS = 44;
+ int FOR = 45;
+ int GOTO = 46;
+ int NEW = 47;
+ int NULL = 48;
+ int RETURN = 49;
+ int SUPER = 50;
+ int SWITCH = 51;
+ int THIS = 52;
+ int TRUE = 53;
+ int FALSE = 54;
+ int WHILE = 55;
+ int ENDWHILE = 56;
+ int ENDIF = 57;
+ int ENDFOR = 58;
+ int FOREACH = 59;
+ int AS = 60;
+ int STRING = 61;
+ int OBJECT = 62;
+ int BOOL = 63;
+ int BOOLEAN = 64;
+ int REAL = 65;
+ int DOUBLE = 66;
+ int FLOAT = 67;
+ int INT = 68;
+ int INTEGER = 69;
+ int _ORL = 70;
+ int _ANDL = 71;
+ int INTEGER_LITERAL = 72;
+ int DECIMAL_LITERAL = 73;
+ int HEX_LITERAL = 74;
+ int OCTAL_LITERAL = 75;
+ int FLOATING_POINT_LITERAL = 76;
+ int EXPONENT = 77;
+ int STRING_LITERAL = 78;
+ int STRING_1 = 79;
+ int STRING_2 = 80;
+ int STRING_3 = 81;
+ int IDENTIFIER = 82;
+ int LETTER = 83;
+ int DIGIT = 84;
+ int SPECIAL = 85;
+ int LPAREN = 86;
+ int RPAREN = 87;
+ int LBRACE = 88;
+ int RBRACE = 89;
+ int LBRACKET = 90;
+ int RBRACKET = 91;
+ int SEMICOLON = 92;
+ int COMMA = 93;
+ int DOT = 94;
int GT = 95;
int LT = 96;
- int BANG = 97;
- int HOOK = 98;
- int COLON = 99;
- int EQ = 100;
- int LE = 101;
- int GE = 102;
- int NE = 103;
- int DIF = 104;
- int SC_OR = 105;
- int SC_AND = 106;
- int INCR = 107;
- int DECR = 108;
- int PLUS = 109;
- int MINUS = 110;
- int STAR = 111;
- int SLASH = 112;
- int BIT_AND = 113;
- int BIT_OR = 114;
- int XOR = 115;
- int REM = 116;
- int LSHIFT = 117;
- int RSIGNEDSHIFT = 118;
- int RUNSIGNEDSHIFT = 119;
- int PLUSASSIGN = 120;
- int MINUSASSIGN = 121;
- int STARASSIGN = 122;
- int SLASHASSIGN = 123;
- int ANDASSIGN = 124;
- int ORASSIGN = 125;
- int XORASSIGN = 126;
- int DOTASSIGN = 127;
- int REMASSIGN = 128;
- int LSHIFTASSIGN = 129;
- int RSIGNEDSHIFTASSIGN = 130;
- int BANGDOUBLEEQUAL = 131;
- int TRIPLEEQUAL = 132;
- int TILDEEQUAL = 133;
- int DOLLAR_ID = 134;
+ int EQ = 97;
+ int LE = 98;
+ int GE = 99;
+ int NE = 100;
+ int DIF = 101;
+ int BANGDOUBLEEQUAL = 102;
+ int TRIPLEEQUAL = 103;
+ int ASSIGN = 104;
+ int PLUSASSIGN = 105;
+ int MINUSASSIGN = 106;
+ int STARASSIGN = 107;
+ int SLASHASSIGN = 108;
+ int ANDASSIGN = 109;
+ int ORASSIGN = 110;
+ int XORASSIGN = 111;
+ int DOTASSIGN = 112;
+ int REMASSIGN = 113;
+ int TILDEEQUAL = 114;
+ int AT = 115;
+ int DOLLAR = 116;
+ int BANG = 117;
+ int HOOK = 118;
+ int COLON = 119;
+ int SC_OR = 120;
+ int SC_AND = 121;
+ int INCR = 122;
+ int DECR = 123;
+ int PLUS = 124;
+ int MINUS = 125;
+ int STAR = 126;
+ int SLASH = 127;
+ int BIT_AND = 128;
+ int BIT_OR = 129;
+ int XOR = 130;
+ int REM = 131;
+ int LSHIFT = 132;
+ int RSIGNEDSHIFT = 133;
+ int RUNSIGNEDSHIFT = 134;
+ int LSHIFTASSIGN = 135;
+ int RSIGNEDSHIFTASSIGN = 136;
+ int DOLLAR_ID = 137;
int DEFAULT = 0;
int PHPPARSING = 1;
String[] tokenImage = {
"<EOF>",
- "<PHPSTART>",
+ "\"<?\"",
+ "\"<?php\"",
+ "\"<?=\"",
"\"?>\"",
- "<token of kind 3>",
+ "<token of kind 5>",
"\" \"",
"\"\\t\"",
"\"\\n\"",
"\"\\r\"",
"\"\\f\"",
"\"//\"",
- "<token of kind 10>",
+ "<token of kind 12>",
"\"/*\"",
"<SINGLE_LINE_COMMENT>",
"\"?>\"",
"\"*/\"",
"\"*/\"",
- "<token of kind 16>",
+ "<token of kind 18>",
"\"class\"",
"\"function\"",
"\"var\"",
"\"elseif\"",
"\"else\"",
"\"array\"",
+ "\"break\"",
"\"print\"",
"\"echo\"",
"\"include\"",
"\"->\"",
"\"::\"",
"\"=>\"",
- "\"break\"",
+ "\"list\"",
"\"case\"",
"\"const\"",
"\"continue\"",
"\"default\"",
"\"do\"",
"\"extends\"",
- "\"false\"",
"\"for\"",
"\"goto\"",
"\"new\"",
"\"switch\"",
"\"this\"",
"\"true\"",
+ "\"false\"",
"\"while\"",
"\"endwhile\"",
"\"endif\"",
"\";\"",
"\",\"",
"\".\"",
- "\"@\"",
- "\"$\"",
- "\"=\"",
"\">\"",
"\"<\"",
- "\"!\"",
- "\"?\"",
- "\":\"",
"\"==\"",
"\"<=\"",
"\">=\"",
"\"!=\"",
"\"<>\"",
+ "\"!==\"",
+ "\"===\"",
+ "\"=\"",
+ "\"+=\"",
+ "\"-=\"",
+ "\"*=\"",
+ "\"/=\"",
+ "\"&=\"",
+ "\"|=\"",
+ "\"^=\"",
+ "\".=\"",
+ "\"%=\"",
+ "\"~=\"",
+ "\"@\"",
+ "\"$\"",
+ "\"!\"",
+ "\"?\"",
+ "\":\"",
"\"||\"",
"\"&&\"",
"\"++\"",
"\"<<\"",
"\">>\"",
"\">>>\"",
- "\"+=\"",
- "\"-=\"",
- "\"*=\"",
- "\"/=\"",
- "\"&=\"",
- "\"|=\"",
- "\"^=\"",
- "\".=\"",
- "\"%=\"",
"\"<<=\"",
"\">>=\"",
- "\"!==\"",
- "\"===\"",
- "\"~=\"",
"<DOLLAR_ID>",
"\"?>\"",
};