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 8248034..663594d 100644 --- a/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java +++ b/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java @@ -4,130 +4,132 @@ 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 ENDIF = 54; - int ENDFOR = 55; - int FOREACH = 56; - int AS = 57; - int STRING = 58; - int OBJECT = 59; - int BOOL = 60; - int BOOLEAN = 61; - int REAL = 62; - int DOUBLE = 63; - int FLOAT = 64; - int INT = 65; - int INTEGER = 66; - int _ORL = 67; - int _ANDL = 68; - int INTEGER_LITERAL = 69; - int DECIMAL_LITERAL = 70; - int HEX_LITERAL = 71; - int OCTAL_LITERAL = 72; - int FLOATING_POINT_LITERAL = 73; - int EXPONENT = 74; - int STRING_LITERAL = 75; - int STRING_1 = 76; - int STRING_2 = 77; - int STRING_3 = 78; - int IDENTIFIER = 79; - int LETTER = 80; - int DIGIT = 81; - int SPECIAL = 82; - int LPAREN = 83; - int RPAREN = 84; - int LBRACE = 85; - int RBRACE = 86; - int LBRACKET = 87; - int RBRACKET = 88; - int SEMICOLON = 89; - int COMMA = 90; - int DOT = 91; - int AT = 92; - int DOLLAR = 93; - int ASSIGN = 94; - int GT = 95; - int LT = 96; - int BANG = 97; - int HOOK = 98; - int COLON = 99; - int EQ = 100; - int LE = 101; - int GE = 102; - int NE = 103; - int DIF = 104; - int SC_OR = 105; - int SC_AND = 106; - int INCR = 107; - int DECR = 108; - int PLUS = 109; - int MINUS = 110; - int STAR = 111; - int SLASH = 112; - int BIT_AND = 113; - int BIT_OR = 114; - int XOR = 115; - int REM = 116; - int LSHIFT = 117; - int RSIGNEDSHIFT = 118; - int RUNSIGNEDSHIFT = 119; - int PLUSASSIGN = 120; - int MINUSASSIGN = 121; - int STARASSIGN = 122; - int SLASHASSIGN = 123; - int ANDASSIGN = 124; - int ORASSIGN = 125; - int XORASSIGN = 126; - int DOTASSIGN = 127; - int REMASSIGN = 128; - int LSHIFTASSIGN = 129; - int RSIGNEDSHIFTASSIGN = 130; - int BANGDOUBLEEQUAL = 131; - int TRIPLEEQUAL = 132; - int TILDEEQUAL = 133; - int DOLLAR_ID = 134; + 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 STATIC = 37; + int CLASSACCESS = 38; + int STATICCLASSACCESS = 39; + int ARRAYASSIGN = 40; + int CASE = 41; + int CONST = 42; + int CONTINUE = 43; + int _DEFAULT = 44; + int DO = 45; + int EXTENDS = 46; + int FOR = 47; + int GOTO = 48; + int NEW = 49; + int NULL = 50; + int RETURN = 51; + int SUPER = 52; + int SWITCH = 53; + int THIS = 54; + int TRUE = 55; + int FALSE = 56; + int WHILE = 57; + int ENDWHILE = 58; + int ENDSWITCH = 59; + int ENDIF = 60; + int ENDFOR = 61; + int FOREACH = 62; + int AS = 63; + int STRING = 64; + int OBJECT = 65; + int BOOL = 66; + int BOOLEAN = 67; + int REAL = 68; + int DOUBLE = 69; + int FLOAT = 70; + int INT = 71; + int INTEGER = 72; + int AT = 73; + int DOLLAR = 74; + int BANG = 75; + int TILDE = 76; + int HOOK = 77; + int COLON = 78; + int OR_OR = 79; + int AND_AND = 80; + int PLUS_PLUS = 81; + int MINUS_MINUS = 82; + int PLUS = 83; + int MINUS = 84; + int STAR = 85; + int SLASH = 86; + int BIT_AND = 87; + int BIT_OR = 88; + int XOR = 89; + int REMAINDER = 90; + int LSHIFT = 91; + int RSIGNEDSHIFT = 92; + int RUNSIGNEDSHIFT = 93; + int _ORL = 94; + int _ANDL = 95; + int INTEGER_LITERAL = 96; + int DECIMAL_LITERAL = 97; + int HEX_LITERAL = 98; + int OCTAL_LITERAL = 99; + int FLOATING_POINT_LITERAL = 100; + int EXPONENT = 101; + int STRING_LITERAL = 102; + int STRING_1 = 103; + int STRING_2 = 104; + int STRING_3 = 105; + int IDENTIFIER = 106; + int LETTER = 107; + int DIGIT = 108; + int SPECIAL = 109; + int LPAREN = 110; + int RPAREN = 111; + int LBRACE = 112; + int RBRACE = 113; + int LBRACKET = 114; + int RBRACKET = 115; + int SEMICOLON = 116; + int COMMA = 117; + int DOT = 118; + int GT = 119; + int LT = 120; + int EQUAL_EQUAL = 121; + int LE = 122; + int GE = 123; + int NOT_EQUAL = 124; + int DIF = 125; + int BANGDOUBLEEQUAL = 126; + int TRIPLEEQUAL = 127; + int ASSIGN = 128; + int PLUSASSIGN = 129; + int MINUSASSIGN = 130; + int STARASSIGN = 131; + int SLASHASSIGN = 132; + int ANDASSIGN = 133; + int ORASSIGN = 134; + int XORASSIGN = 135; + int DOTASSIGN = 136; + int REMASSIGN = 137; + int TILDEEQUAL = 138; + int LSHIFTASSIGN = 139; + int RSIGNEDSHIFTASSIGN = 140; + int DOLLAR_ID = 141; int DEFAULT = 0; int PHPPARSING = 1; @@ -137,22 +139,26 @@ public interface PHPParserConstants { String[] tokenImage = { "", - "", + "\"\"", - "", + "", "\" \"", "\"\\t\"", "\"\\n\"", "\"\\r\"", "\"\\f\"", "\"//\"", - "", + "\"#\"", + "", "\"/*\"", "", "\"?>\"", + "\"todo\"", "\"*/\"", "\"*/\"", - "", + "", "\"class\"", "\"function\"", "\"var\"", @@ -160,6 +166,8 @@ public interface PHPParserConstants { "\"elseif\"", "\"else\"", "\"array\"", + "\"break\"", + "\"list\"", "\"print\"", "\"echo\"", "\"include\"", @@ -171,14 +179,12 @@ public interface PHPParserConstants { "\"->\"", "\"::\"", "\"=>\"", - "\"break\"", "\"case\"", "\"const\"", "\"continue\"", "\"default\"", "\"do\"", "\"extends\"", - "\"false\"", "\"for\"", "\"goto\"", "\"new\"", @@ -188,8 +194,10 @@ public interface PHPParserConstants { "\"switch\"", "\"this\"", "\"true\"", + "\"false\"", "\"while\"", "\"endwhile\"", + "\"endswitch\"", "\"endif\"", "\"endfor\"", "\"foreach\"", @@ -203,6 +211,27 @@ public interface PHPParserConstants { "\"float\"", "\"int\"", "\"integer\"", + "\"@\"", + "\"$\"", + "\"!\"", + "\"~\"", + "\"?\"", + "\":\"", + "\"||\"", + "\"&&\"", + "\"++\"", + "\"--\"", + "\"+\"", + "\"-\"", + "\"*\"", + "\"/\"", + "\"&\"", + "\"|\"", + "\"^\"", + "\"%\"", + "\"<<\"", + "\">>\"", + "\">>>\"", "\"OR\"", "\"AND\"", "", @@ -228,34 +257,16 @@ public interface PHPParserConstants { "\";\"", "\",\"", "\".\"", - "\"@\"", - "\"$\"", - "\"=\"", "\">\"", "\"<\"", - "\"!\"", - "\"?\"", - "\":\"", "\"==\"", "\"<=\"", "\">=\"", "\"!=\"", "\"<>\"", - "\"||\"", - "\"&&\"", - "\"++\"", - "\"--\"", - "\"+\"", - "\"-\"", - "\"*\"", - "\"/\"", - "\"&\"", - "\"|\"", - "\"^\"", - "\"%\"", - "\"<<\"", - "\">>\"", - "\">>>\"", + "\"!==\"", + "\"===\"", + "\"=\"", "\"+=\"", "\"-=\"", "\"*=\"", @@ -265,13 +276,10 @@ public interface PHPParserConstants { "\"^=\"", "\".=\"", "\"%=\"", + "\"~=\"", "\"<<=\"", "\">>=\"", - "\"!==\"", - "\"===\"", - "\"~=\"", "", - "\"?>\"", }; }