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