X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java b/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java index 00c5d6a..85ec698 100644 --- a/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java +++ b/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java @@ -8,137 +8,135 @@ public interface PHPParserConstants { int PHPSTARTLONG = 2; int PHPECHOSTART = 3; int PHPEND = 4; - int SINGLE_LINE_COMMENT = 15; - int SINGLE_LINE_COMMENT_PHPEND = 16; - int FORMAL_COMMENT = 17; - int MULTI_LINE_COMMENT = 18; - int CLASS = 20; - int FUNCTION = 21; - int VAR = 22; - int IF = 23; - int ELSEIF = 24; - int ELSE = 25; - int ARRAY = 26; - int BREAK = 27; - int LIST = 28; - int PRINT = 29; - int ECHO = 30; - int INCLUDE = 31; - int REQUIRE = 32; - int INCLUDE_ONCE = 33; - int REQUIRE_ONCE = 34; - int GLOBAL = 35; - int STATIC = 36; - int CLASSACCESS = 37; - int STATICCLASSACCESS = 38; - int ARRAYASSIGN = 39; - int CASE = 40; - int CONST = 41; - int CONTINUE = 42; - int _DEFAULT = 43; - int DO = 44; - int EXTENDS = 45; - int FOR = 46; - int GOTO = 47; - int NEW = 48; - int NULL = 49; - int RETURN = 50; - int SUPER = 51; - int SWITCH = 52; - int THIS = 53; - int TRUE = 54; - int FALSE = 55; - int WHILE = 56; - int ENDWHILE = 57; - int ENDSWITCH = 58; - int ENDIF = 59; - int ENDFOR = 60; - int FOREACH = 61; - int AS = 62; - int STRING = 63; - int OBJECT = 64; - int BOOL = 65; - int BOOLEAN = 66; - int REAL = 67; - int DOUBLE = 68; - int FLOAT = 69; - int INT = 70; - int INTEGER = 71; - int AT = 72; - int DOLLAR = 73; - int BANG = 74; - int TILDE = 75; - int HOOK = 76; - int COLON = 77; - int OR_OR = 78; - int AND_AND = 79; - int INCR = 80; - int DECR = 81; - int PLUS = 82; - int MINUS = 83; - int STAR = 84; - int SLASH = 85; - int BIT_AND = 86; - int BIT_OR = 87; - int XOR = 88; - int REMAINDER = 89; - int LSHIFT = 90; - int RSIGNEDSHIFT = 91; - int RUNSIGNEDSHIFT = 92; - int _ORL = 93; - int _ANDL = 94; - int INTEGER_LITERAL = 95; - int DECIMAL_LITERAL = 96; - int HEX_LITERAL = 97; - int OCTAL_LITERAL = 98; - int FLOATING_POINT_LITERAL = 99; - int EXPONENT = 100; - int STRING_LITERAL = 101; - int STRING_1 = 102; - int STRING_2 = 103; - int STRING_3 = 104; - int IDENTIFIER = 105; - int LETTER = 106; - int DIGIT = 107; - int SPECIAL = 108; - int LPAREN = 109; - int RPAREN = 110; - int LBRACE = 111; - int RBRACE = 112; - int LBRACKET = 113; - int RBRACKET = 114; - int SEMICOLON = 115; - int COMMA = 116; - int DOT = 117; - int GT = 118; - int LT = 119; - int EQUAL_EQUAL = 120; - int LE = 121; - int GE = 122; - int NOT_EQUAL = 123; - int DIF = 124; - int BANGDOUBLEEQUAL = 125; - int TRIPLEEQUAL = 126; - int ASSIGN = 127; - int PLUSASSIGN = 128; - int MINUSASSIGN = 129; - int STARASSIGN = 130; - int SLASHASSIGN = 131; - int ANDASSIGN = 132; - int ORASSIGN = 133; - int XORASSIGN = 134; - int DOTASSIGN = 135; - int REMASSIGN = 136; - int TILDEEQUAL = 137; - int LSHIFTASSIGN = 138; - int RSIGNEDSHIFTASSIGN = 139; - int DOLLAR_ID = 140; + int SINGLE_LINE_COMMENT = 20; + int CLASS = 27; + int FUNCTION = 28; + int VAR = 29; + int IF = 30; + int ELSEIF = 31; + int ELSE = 32; + int ARRAY = 33; + int BREAK = 34; + int LIST = 35; + int PRINT = 36; + int ECHO = 37; + int INCLUDE = 38; + int REQUIRE = 39; + int INCLUDE_ONCE = 40; + int REQUIRE_ONCE = 41; + int GLOBAL = 42; + int DEFINE = 43; + int STATIC = 44; + int CLASSACCESS = 45; + int STATICCLASSACCESS = 46; + int ARRAYASSIGN = 47; + int CASE = 48; + int CONST = 49; + int CONTINUE = 50; + int _DEFAULT = 51; + int DO = 52; + int EXTENDS = 53; + int FOR = 54; + int GOTO = 55; + int NEW = 56; + int NULL = 57; + int RETURN = 58; + int SUPER = 59; + int SWITCH = 60; + int THIS = 61; + int TRUE = 62; + int FALSE = 63; + int WHILE = 64; + int ENDWHILE = 65; + int ENDSWITCH = 66; + int ENDIF = 67; + int ENDFOR = 68; + int FOREACH = 69; + int AS = 70; + int STRING = 71; + int OBJECT = 72; + int BOOL = 73; + int BOOLEAN = 74; + int REAL = 75; + int DOUBLE = 76; + int FLOAT = 77; + int INT = 78; + int INTEGER = 79; + int AT = 80; + int BANG = 81; + int TILDE = 82; + int HOOK = 83; + int COLON = 84; + int OR_OR = 85; + int AND_AND = 86; + int PLUS_PLUS = 87; + int MINUS_MINUS = 88; + int PLUS = 89; + int MINUS = 90; + int STAR = 91; + int SLASH = 92; + int BIT_AND = 93; + int BIT_OR = 94; + int XOR = 95; + int REMAINDER = 96; + int LSHIFT = 97; + int RSIGNEDSHIFT = 98; + int RUNSIGNEDSHIFT = 99; + int _ORL = 100; + int _ANDL = 101; + int INTEGER_LITERAL = 102; + int DECIMAL_LITERAL = 103; + int HEX_LITERAL = 104; + int OCTAL_LITERAL = 105; + int FLOATING_POINT_LITERAL = 106; + int EXPONENT = 107; + int STRING_LITERAL = 108; + int STRING_1 = 109; + int STRING_2 = 110; + int STRING_3 = 111; + int DOLLAR = 112; + int IDENTIFIER = 113; + int LETTER = 114; + int DIGIT = 115; + int SPECIAL = 116; + int LPAREN = 117; + int RPAREN = 118; + int LBRACE = 119; + int RBRACE = 120; + int LBRACKET = 121; + int RBRACKET = 122; + int SEMICOLON = 123; + int COMMA = 124; + int DOT = 125; + int GT = 126; + int LT = 127; + int EQUAL_EQUAL = 128; + int LE = 129; + int GE = 130; + int NOT_EQUAL = 131; + int DIF = 132; + int BANGDOUBLEEQUAL = 133; + int TRIPLEEQUAL = 134; + int ASSIGN = 135; + int PLUSASSIGN = 136; + int MINUSASSIGN = 137; + int STARASSIGN = 138; + int SLASHASSIGN = 139; + int ANDASSIGN = 140; + int ORASSIGN = 141; + int XORASSIGN = 142; + int DOTASSIGN = 143; + int REMASSIGN = 144; + int TILDEEQUAL = 145; + int LSHIFTASSIGN = 146; + int RSIGNEDSHIFTASSIGN = 147; int DEFAULT = 0; int PHPPARSING = 1; int IN_SINGLE_LINE_COMMENT = 2; - int IN_FORMAL_COMMENT = 3; - int IN_MULTI_LINE_COMMENT = 4; + int IN_VARIABLE = 3; + int IN_FORMAL_COMMENT = 4; + int IN_MULTI_LINE_COMMENT = 5; String[] tokenImage = { "", @@ -152,15 +150,22 @@ public interface PHPParserConstants { "\"\\n\"", "\"\\r\"", "\"\\f\"", + "\" \"", + "\"\\t\"", + "\"\\n\"", + "\"\\r\"", + "\"\\f\"", "\"//\"", "\"#\"", - "", + "", "\"/*\"", "", - "\"?>\"", + "", + "\"todo\"", + "\"TODO\"", "\"*/\"", "\"*/\"", - "", + "", "\"class\"", "\"function\"", "\"var\"", @@ -177,6 +182,7 @@ public interface PHPParserConstants { "\"include_once\"", "\"require_once\"", "\"global\"", + "\"define\"", "\"static\"", "\"->\"", "\"::\"", @@ -214,7 +220,6 @@ public interface PHPParserConstants { "\"int\"", "\"integer\"", "\"@\"", - "\"$\"", "\"!\"", "\"~\"", "\"?\"", @@ -246,6 +251,7 @@ public interface PHPParserConstants { "", "", "", + "\"$\"", "", "", "", @@ -281,7 +287,6 @@ public interface PHPParserConstants { "\"~=\"", "\"<<=\"", "\">>=\"", - "", }; }