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 33e3a98..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 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 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,16 +160,22 @@ public interface PHPParserConstants { "\"\\n\"", "\"\\r\"", "\"\\f\"", + "\" \"", + "\"\\t\"", + "\"\\n\"", + "\"\\r\"", + "\"\\f\"", "\"//\"", "\"#\"", - "", + "", "\"/*\"", "", - "", + "", "\"todo\"", + "\"TODO\"", "\"*/\"", "\"*/\"", - "", + "", "\"class\"", "\"function\"", "\"var\"", @@ -214,7 +230,6 @@ public interface PHPParserConstants { "\"int\"", "\"integer\"", "\"@\"", - "\"$\"", "\"!\"", "\"~\"", "\"?\"", @@ -243,13 +258,26 @@ public interface PHPParserConstants { "", "", "", - "", "", "", + "", + "\"\\\"\"", + "\"$\"", + "\"\\\"\"", + "\"{\"", + "\"{\"", + "\"}\"", + "", + "\"}\"", + "", + "", + "", + "\"$\"", "", "", "", "", + "", "\"(\"", "\")\"", "\"{\"", @@ -281,7 +309,6 @@ public interface PHPParserConstants { "\"~=\"", "\"<<=\"", "\">>=\"", - "", }; }