public interface PHPParserConstants {
int EOF = 0;
- int SINGLE_LINE_COMMENT = 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 STRING = 54;
- int OBJECT = 55;
- int BOOL = 56;
- int BOOLEAN = 57;
- int REAL = 58;
- int DOUBLE = 59;
- int FLOAT = 60;
- int INT = 61;
- int INTEGER = 62;
- int _ORL = 63;
- int _ANDL = 64;
- int INTEGER_LITERAL = 65;
- int DECIMAL_LITERAL = 66;
- int HEX_LITERAL = 67;
- int OCTAL_LITERAL = 68;
- int FLOATING_POINT_LITERAL = 69;
- int EXPONENT = 70;
- int STRING_LITERAL = 71;
- int STRING_1 = 72;
- int STRING_2 = 73;
- int STRING_3 = 74;
- int IDENTIFIER = 75;
- int LETTER = 76;
- int DIGIT = 77;
- int SPECIAL = 78;
- int LPAREN = 79;
- int RPAREN = 80;
- int LBRACE = 81;
- int RBRACE = 82;
- int LBRACKET = 83;
- int RBRACKET = 84;
- int SEMICOLON = 85;
- int COMMA = 86;
- int DOT = 87;
- int AT = 88;
- int DOLLAR = 89;
- int ASSIGN = 90;
- int GT = 91;
- int LT = 92;
- int BANG = 93;
- int HOOK = 94;
- int COLON = 95;
+ 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 SC_OR = 100;
- int SC_AND = 101;
- int INCR = 102;
- int DECR = 103;
- int PLUS = 104;
- int MINUS = 105;
- int STAR = 106;
- int SLASH = 107;
- int BIT_AND = 108;
- int BIT_OR = 109;
- int XOR = 110;
- int REM = 111;
- int LSHIFT = 112;
- int RSIGNEDSHIFT = 113;
- int RUNSIGNEDSHIFT = 114;
- int PLUSASSIGN = 115;
- int MINUSASSIGN = 116;
- int STARASSIGN = 117;
- int SLASHASSIGN = 118;
- int ANDASSIGN = 119;
- int ORASSIGN = 120;
- int XORASSIGN = 121;
- int DOTASSIGN = 122;
- int REMASSIGN = 123;
- int LSHIFTASSIGN = 124;
- int RSIGNEDSHIFTASSIGN = 125;
- int RUNSIGNEDSHIFTASSIGN = 126;
- int DOLLAR_ID = 127;
+ 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>",
- "\"<?php\"",
"\"<?\"",
- "<token of kind 3>",
+ "\"<?php\"",
+ "\"<?=\"",
"\"?>\"",
+ "<token of kind 5>",
"\" \"",
"\"\\t\"",
"\"\\n\"",
"\"\\r\"",
"\"\\f\"",
"\"//\"",
- "<token of kind 11>",
+ "<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\"",
+ "\"endfor\"",
+ "\"foreach\"",
+ "\"as\"",
"\"string\"",
"\"object\"",
"\"bool\"",
"<IDENTIFIER>",
"<LETTER>",
"<DIGIT>",
- "\"_\"",
+ "<SPECIAL>",
"\"(\"",
"\")\"",
"\"{\"",
"\";\"",
"\",\"",
"\".\"",
- "\"@\"",
- "\"$\"",
- "\"=\"",
"\">\"",
"\"<\"",
- "\"!\"",
- "\"?\"",
- "\":\"",
"\"==\"",
"\"<=\"",
"\">=\"",
"\"!=\"",
+ "\"<>\"",
+ "\"!==\"",
+ "\"===\"",
+ "\"=\"",
+ "\"+=\"",
+ "\"-=\"",
+ "\"*=\"",
+ "\"/=\"",
+ "\"&=\"",
+ "\"|=\"",
+ "\"^=\"",
+ "\".=\"",
+ "\"%=\"",
+ "\"~=\"",
+ "\"@\"",
+ "\"$\"",
+ "\"!\"",
+ "\"?\"",
+ "\":\"",
"\"||\"",
"\"&&\"",
"\"++\"",
"\"<<\"",
"\">>\"",
"\">>>\"",
- "\"+=\"",
- "\"-=\"",
- "\"*=\"",
- "\"/=\"",
- "\"&=\"",
- "\"|=\"",
- "\"^=\"",
- "\".=\"",
- "\"%=\"",
"\"<<=\"",
"\">>=\"",
- "\">>>=\"",
"<DOLLAR_ID>",
"\"?>\"",
};