X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java b/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java index eeb62cf..6fc6c54 100644 --- a/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java +++ b/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java @@ -8,135 +8,145 @@ 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 PRINT = 28; - int ECHO = 29; - int INCLUDE = 30; - int REQUIRE = 31; - int INCLUDE_ONCE = 32; - int REQUIRE_ONCE = 33; - int GLOBAL = 34; - int STATIC = 35; - int CLASSACCESS = 36; - int STATICCLASSACCESS = 37; - int ARRAYASSIGN = 38; - int LIST = 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 ENDIF = 58; - int ENDFOR = 59; - int FOREACH = 60; - int AS = 61; - int STRING = 62; - int OBJECT = 63; - int BOOL = 64; - int BOOLEAN = 65; - int REAL = 66; - int DOUBLE = 67; - int FLOAT = 68; - int INT = 69; - int INTEGER = 70; - int _ORL = 71; - int _ANDL = 72; - int INTEGER_LITERAL = 73; - int DECIMAL_LITERAL = 74; - int HEX_LITERAL = 75; - int OCTAL_LITERAL = 76; - int FLOATING_POINT_LITERAL = 77; - int EXPONENT = 78; - int STRING_LITERAL = 79; - int STRING_1 = 80; - int STRING_2 = 81; - int STRING_3 = 82; - int IDENTIFIER = 83; - int LETTER = 84; - int DIGIT = 85; - int SPECIAL = 86; - int LPAREN = 87; - int RPAREN = 88; - int LBRACE = 89; - int RBRACE = 90; - int LBRACKET = 91; - int RBRACKET = 92; - int SEMICOLON = 93; - int COMMA = 94; - int DOT = 95; - int GT = 96; - int LT = 97; - int EQ = 98; - int LE = 99; - int GE = 100; - int NE = 101; - int DIF = 102; - int BANGDOUBLEEQUAL = 103; - int TRIPLEEQUAL = 104; - int ASSIGN = 105; - int PLUSASSIGN = 106; - int MINUSASSIGN = 107; - int STARASSIGN = 108; - int SLASHASSIGN = 109; - int ANDASSIGN = 110; - int ORASSIGN = 111; - int XORASSIGN = 112; - int DOTASSIGN = 113; - int REMASSIGN = 114; - int TILDEEQUAL = 115; - int AT = 116; - int DOLLAR = 117; - int BANG = 118; - int HOOK = 119; - int COLON = 120; - int SC_OR = 121; - int SC_AND = 122; - int INCR = 123; - int DECR = 124; - int PLUS = 125; - int MINUS = 126; - int STAR = 127; - int SLASH = 128; - int BIT_AND = 129; - int BIT_OR = 130; - int XOR = 131; - int REM = 132; - int LSHIFT = 133; - int RSIGNEDSHIFT = 134; - int RUNSIGNEDSHIFT = 135; - int LSHIFTASSIGN = 136; - int RSIGNEDSHIFTASSIGN = 137; - int DOLLAR_ID = 138; + 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_2 = 109; + int STRING_3 = 110; + int ESCAPED = 111; + int DOUBLEQUOTE = 112; + int DOLLARS = 113; + int DOUBLEQUOTE2 = 114; + int LBRACE1 = 115; + int RBRACE1 = 119; + int ID = 120; + int DOLLAR = 123; + int IDENTIFIER = 124; + int LETTER = 125; + int DIGIT = 126; + int SPECIAL = 127; + int LPAREN = 129; + int RPAREN = 130; + int LBRACE = 131; + int RBRACE = 132; + int LBRACKET = 133; + int RBRACKET = 134; + int SEMICOLON = 135; + int COMMA = 136; + int DOT = 137; + int GT = 138; + int LT = 139; + int EQUAL_EQUAL = 140; + int LE = 141; + int GE = 142; + int NOT_EQUAL = 143; + int DIF = 144; + int BANGDOUBLEEQUAL = 145; + int TRIPLEEQUAL = 146; + int ASSIGN = 147; + int PLUSASSIGN = 148; + int MINUSASSIGN = 149; + int STARASSIGN = 150; + int SLASHASSIGN = 151; + int ANDASSIGN = 152; + int ORASSIGN = 153; + int XORASSIGN = 154; + int DOTASSIGN = 155; + int REMASSIGN = 156; + int TILDEEQUAL = 157; + int LSHIFTASSIGN = 158; + int RSIGNEDSHIFTASSIGN = 159; 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; + int IN_STRING = 6; + int DOLLAR_IN_STRING = 7; + int SKIPSTRING = 8; + int DOLLAR_IN_STRING_EXPR = 9; String[] tokenImage = { "", @@ -150,15 +160,22 @@ public interface PHPParserConstants { "\"\\n\"", "\"\\r\"", "\"\\f\"", + "\" \"", + "\"\\t\"", + "\"\\n\"", + "\"\\r\"", + "\"\\f\"", "\"//\"", "\"#\"", - "", + "", "\"/*\"", "", - "\"?>\"", + "", + "\"todo\"", + "\"TODO\"", "\"*/\"", "\"*/\"", - "", + "", "\"class\"", "\"function\"", "\"var\"", @@ -167,6 +184,7 @@ public interface PHPParserConstants { "\"else\"", "\"array\"", "\"break\"", + "\"list\"", "\"print\"", "\"echo\"", "\"include\"", @@ -174,11 +192,11 @@ public interface PHPParserConstants { "\"include_once\"", "\"require_once\"", "\"global\"", + "\"define\"", "\"static\"", "\"->\"", "\"::\"", "\"=>\"", - "\"list\"", "\"case\"", "\"const\"", "\"continue\"", @@ -197,6 +215,7 @@ public interface PHPParserConstants { "\"false\"", "\"while\"", "\"endwhile\"", + "\"endswitch\"", "\"endif\"", "\"endfor\"", "\"foreach\"", @@ -210,6 +229,26 @@ public interface PHPParserConstants { "\"float\"", "\"int\"", "\"integer\"", + "\"@\"", + "\"!\"", + "\"~\"", + "\"?\"", + "\":\"", + "\"||\"", + "\"&&\"", + "\"++\"", + "\"--\"", + "\"+\"", + "\"-\"", + "\"*\"", + "\"/\"", + "\"&\"", + "\"|\"", + "\"^\"", + "\"%\"", + "\"<<\"", + "\">>\"", + "\">>>\"", "\"OR\"", "\"AND\"", "", @@ -219,13 +258,26 @@ public interface PHPParserConstants { "", "", "", - "", "", "", + "", + "\"\\\"\"", + "\"$\"", + "\"\\\"\"", + "\"{\"", + "\"{\"", + "\"}\"", + "", + "\"}\"", + "", + "", + "", + "\"$\"", "", "", "", "", + "", "\"(\"", "\")\"", "\"{\"", @@ -255,30 +307,8 @@ public interface PHPParserConstants { "\".=\"", "\"%=\"", "\"~=\"", - "\"@\"", - "\"$\"", - "\"!\"", - "\"?\"", - "\":\"", - "\"||\"", - "\"&&\"", - "\"++\"", - "\"--\"", - "\"+\"", - "\"-\"", - "\"*\"", - "\"/\"", - "\"&\"", - "\"|\"", - "\"^\"", - "\"%\"", - "\"<<\"", - "\">>\"", - "\">>>\"", "\"<<=\"", "\">>=\"", - "", - "\"?>\"", }; }