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 1d8793c..85ec698 100644 --- a/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java +++ b/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java @@ -4,152 +4,168 @@ package test; 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 = 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 = { "", - "", + "\"\"", - "", + "", + "\" \"", + "\"\\t\"", + "\"\\n\"", + "\"\\r\"", + "\"\\f\"", "\" \"", "\"\\t\"", "\"\\n\"", "\"\\r\"", "\"\\f\"", "\"//\"", - "", + "\"#\"", + "", "\"/*\"", "", - "\"?>\"", + "", + "\"todo\"", + "\"TODO\"", "\"*/\"", "\"*/\"", - "", + "", "\"class\"", "\"function\"", "\"var\"", @@ -157,6 +173,8 @@ public interface PHPParserConstants { "\"elseif\"", "\"else\"", "\"array\"", + "\"break\"", + "\"list\"", "\"print\"", "\"echo\"", "\"include\"", @@ -164,18 +182,17 @@ public interface PHPParserConstants { "\"include_once\"", "\"require_once\"", "\"global\"", + "\"define\"", "\"static\"", "\"->\"", "\"::\"", "\"=>\"", - "\"break\"", "\"case\"", "\"const\"", "\"continue\"", "\"default\"", "\"do\"", "\"extends\"", - "\"false\"", "\"for\"", "\"goto\"", "\"new\"", @@ -185,8 +202,12 @@ public interface PHPParserConstants { "\"switch\"", "\"this\"", "\"true\"", + "\"false\"", "\"while\"", "\"endwhile\"", + "\"endswitch\"", + "\"endif\"", + "\"endfor\"", "\"foreach\"", "\"as\"", "\"string\"", @@ -198,6 +219,26 @@ public interface PHPParserConstants { "\"float\"", "\"int\"", "\"integer\"", + "\"@\"", + "\"!\"", + "\"~\"", + "\"?\"", + "\":\"", + "\"||\"", + "\"&&\"", + "\"++\"", + "\"--\"", + "\"+\"", + "\"-\"", + "\"*\"", + "\"/\"", + "\"&\"", + "\"|\"", + "\"^\"", + "\"%\"", + "\"<<\"", + "\">>\"", + "\">>>\"", "\"OR\"", "\"AND\"", "", @@ -210,6 +251,7 @@ public interface PHPParserConstants { "", "", "", + "\"$\"", "", "", "", @@ -223,33 +265,16 @@ public interface PHPParserConstants { "\";\"", "\",\"", "\".\"", - "\"@\"", - "\"$\"", - "\"=\"", "\">\"", "\"<\"", - "\"!\"", - "\"?\"", - "\":\"", "\"==\"", "\"<=\"", "\">=\"", "\"!=\"", - "\"||\"", - "\"&&\"", - "\"++\"", - "\"--\"", - "\"+\"", - "\"-\"", - "\"*\"", - "\"/\"", - "\"&\"", - "\"|\"", - "\"^\"", - "\"%\"", - "\"<<\"", - "\">>\"", - "\">>>\"", + "\"<>\"", + "\"!==\"", + "\"===\"", + "\"=\"", "\"+=\"", "\"-=\"", "\"*=\"", @@ -259,13 +284,9 @@ public interface PHPParserConstants { "\"^=\"", "\".=\"", "\"%=\"", + "\"~=\"", "\"<<=\"", "\">>=\"", - "\"!==\"", - "\"===\"", - "\"~=\"", - "", - "\"?>\"", }; }