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 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 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 CASE = 38;
+ int CONST = 39;
+ int CONTINUE = 40;
+ int _DEFAULT = 41;
+ int DO = 42;
+ int EXTENDS = 43;
+ int FOR = 44;
+ int GOTO = 45;
+ int NEW = 46;
+ int NULL = 47;
+ int RETURN = 48;
+ int SUPER = 49;
+ int SWITCH = 50;
+ int THIS = 51;
+ int TRUE = 52;
+ int FALSE = 53;
+ int WHILE = 54;
+ int ENDWHILE = 55;
+ int ENDIF = 56;
+ int ENDFOR = 57;
+ int FOREACH = 58;
+ int AS = 59;
+ int STRING = 60;
+ int OBJECT = 61;
+ int BOOL = 62;
+ int BOOLEAN = 63;
+ int REAL = 64;
+ int DOUBLE = 65;
+ int FLOAT = 66;
+ int INT = 67;
+ int INTEGER = 68;
+ int _ORL = 69;
+ int _ANDL = 70;
+ int INTEGER_LITERAL = 71;
+ int DECIMAL_LITERAL = 72;
+ int HEX_LITERAL = 73;
+ int OCTAL_LITERAL = 74;
+ int FLOATING_POINT_LITERAL = 75;
+ int EXPONENT = 76;
+ int STRING_LITERAL = 77;
+ int STRING_1 = 78;
+ int STRING_2 = 79;
+ int STRING_3 = 80;
+ int IDENTIFIER = 81;
+ int LETTER = 82;
+ int DIGIT = 83;
+ int SPECIAL = 84;
+ int LPAREN = 85;
+ int RPAREN = 86;
+ int LBRACE = 87;
+ int RBRACE = 88;
+ int LBRACKET = 89;
+ int RBRACKET = 90;
+ int SEMICOLON = 91;
+ int COMMA = 92;
+ int DOT = 93;
+ int GT = 94;
+ int LT = 95;
+ int EQ = 96;
+ int LE = 97;
+ int GE = 98;
+ int NE = 99;
+ int DIF = 100;
+ int BANGDOUBLEEQUAL = 101;
+ int TRIPLEEQUAL = 102;
+ int ASSIGN = 103;
+ int PLUSASSIGN = 104;
+ int MINUSASSIGN = 105;
+ int STARASSIGN = 106;
+ int SLASHASSIGN = 107;
+ int ANDASSIGN = 108;
+ int ORASSIGN = 109;
+ int XORASSIGN = 110;
+ int DOTASSIGN = 111;
+ int REMASSIGN = 112;
+ int TILDEEQUAL = 113;
+ int AT = 114;
+ int DOLLAR = 115;
+ int BANG = 116;
+ int HOOK = 117;
+ int COLON = 118;
+ int SC_OR = 119;
+ int SC_AND = 120;
+ int INCR = 121;
+ int DECR = 122;
+ int PLUS = 123;
+ int MINUS = 124;
+ int STAR = 125;
+ int SLASH = 126;
+ int BIT_AND = 127;
+ int BIT_OR = 128;
+ int XOR = 129;
+ int REM = 130;
+ int LSHIFT = 131;
+ int RSIGNEDSHIFT = 132;
+ int RUNSIGNEDSHIFT = 133;
+ int LSHIFTASSIGN = 134;
+ int RSIGNEDSHIFTASSIGN = 135;
+ int DOLLAR_ID = 136;
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\"",
"\"case\"",
"\"const\"",
"\"continue\"",
"\"default\"",
"\"do\"",
"\"extends\"",
- "\"false\"",
"\"for\"",
"\"goto\"",
"\"new\"",
"\"switch\"",
"\"this\"",
"\"true\"",
+ "\"false\"",
"\"while\"",
"\"endwhile\"",
"\"endif\"",
"\";\"",
"\",\"",
"\".\"",
- "\"@\"",
- "\"$\"",
- "\"=\"",
"\">\"",
"\"<\"",
- "\"!\"",
- "\"?\"",
- "\":\"",
"\"==\"",
"\"<=\"",
"\">=\"",
"\"!=\"",
"\"<>\"",
+ "\"!==\"",
+ "\"===\"",
+ "\"=\"",
+ "\"+=\"",
+ "\"-=\"",
+ "\"*=\"",
+ "\"/=\"",
+ "\"&=\"",
+ "\"|=\"",
+ "\"^=\"",
+ "\".=\"",
+ "\"%=\"",
+ "\"~=\"",
+ "\"@\"",
+ "\"$\"",
+ "\"!\"",
+ "\"?\"",
+ "\":\"",
"\"||\"",
"\"&&\"",
"\"++\"",
"\"<<\"",
"\">>\"",
"\">>>\"",
- "\"+=\"",
- "\"-=\"",
- "\"*=\"",
- "\"/=\"",
- "\"&=\"",
- "\"|=\"",
- "\"^=\"",
- "\".=\"",
- "\"%=\"",
"\"<<=\"",
"\">>=\"",
- "\"!==\"",
- "\"===\"",
- "\"~=\"",
"<DOLLAR_ID>",
"\"?>\"",
};