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 d427051..663594d 100644 --- a/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java +++ b/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java @@ -4,122 +4,132 @@ package test; public interface PHPParserConstants { int EOF = 0; - int PHPSTART = 1; - int PHPEND = 2; - int SINGLE_LINE_COMMENT = 12; - int FORMAL_COMMENT = 13; - int MULTI_LINE_COMMENT = 14; - int CLASS = 16; - int FUNCTION = 17; - int VAR = 18; - int IF = 19; - int ELSEIF = 20; - int ELSE = 21; - int ARRAY = 22; - int PRINT = 23; - int ECHO = 24; - int INCLUDE = 25; - int REQUIRE = 26; - int INCLUDE_ONCE = 27; - int REQUIRE_ONCE = 28; - int GLOBAL = 29; - int STATIC = 30; - int CLASSACCESS = 31; - int STATICCLASSACCESS = 32; - int ARRAYASSIGN = 33; - int BREAK = 34; - int CASE = 35; - int CONST = 36; - int CONTINUE = 37; - int _DEFAULT = 38; - int DO = 39; - int EXTENDS = 40; - int FALSE = 41; - int FOR = 42; - int GOTO = 43; - int NEW = 44; - int NULL = 45; - int RETURN = 46; - int SUPER = 47; - int SWITCH = 48; - int THIS = 49; - int TRUE = 50; - int WHILE = 51; - int ENDWHILE = 52; - int STRING = 53; - int OBJECT = 54; - int BOOL = 55; - int BOOLEAN = 56; - int REAL = 57; - int DOUBLE = 58; - int FLOAT = 59; - int INT = 60; - int INTEGER = 61; - int _ORL = 62; - int _ANDL = 63; - int INTEGER_LITERAL = 64; - int DECIMAL_LITERAL = 65; - int HEX_LITERAL = 66; - int OCTAL_LITERAL = 67; - int FLOATING_POINT_LITERAL = 68; - int EXPONENT = 69; - int STRING_LITERAL = 70; - int STRING_1 = 71; - int STRING_2 = 72; - int STRING_3 = 73; - int IDENTIFIER = 74; - int LETTER = 75; - int DIGIT = 76; - int SPECIAL = 77; - int LPAREN = 78; - int RPAREN = 79; - int LBRACE = 80; - int RBRACE = 81; - int LBRACKET = 82; - int RBRACKET = 83; - int SEMICOLON = 84; - int COMMA = 85; - int DOT = 86; - int AT = 87; - int DOLLAR = 88; - int ASSIGN = 89; - int GT = 90; - int LT = 91; - int BANG = 92; - int HOOK = 93; - int COLON = 94; - int EQ = 95; - int LE = 96; - int GE = 97; - int NE = 98; - int SC_OR = 99; - int SC_AND = 100; - int INCR = 101; - int DECR = 102; - int PLUS = 103; - int MINUS = 104; - int STAR = 105; - int SLASH = 106; - int BIT_AND = 107; - int BIT_OR = 108; - int XOR = 109; - int REM = 110; - int LSHIFT = 111; - int RSIGNEDSHIFT = 112; - int RUNSIGNEDSHIFT = 113; - int PLUSASSIGN = 114; - int MINUSASSIGN = 115; - int STARASSIGN = 116; - int SLASHASSIGN = 117; - int ANDASSIGN = 118; - int ORASSIGN = 119; - int XORASSIGN = 120; - int DOTASSIGN = 121; - int REMASSIGN = 122; - int LSHIFTASSIGN = 123; - int RSIGNEDSHIFTASSIGN = 124; - int RUNSIGNEDSHIFTASSIGN = 125; - int DOLLAR_ID = 126; + 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; @@ -129,21 +139,26 @@ public interface PHPParserConstants { String[] tokenImage = { "", - "", + "\"\"", - "", + "", "\" \"", "\"\\t\"", "\"\\n\"", "\"\\r\"", "\"\\f\"", "\"//\"", - "", + "\"#\"", + "", "\"/*\"", "", + "\"?>\"", + "\"todo\"", "\"*/\"", "\"*/\"", - "", + "", "\"class\"", "\"function\"", "\"var\"", @@ -151,6 +166,8 @@ public interface PHPParserConstants { "\"elseif\"", "\"else\"", "\"array\"", + "\"break\"", + "\"list\"", "\"print\"", "\"echo\"", "\"include\"", @@ -162,14 +179,12 @@ public interface PHPParserConstants { "\"->\"", "\"::\"", "\"=>\"", - "\"break\"", "\"case\"", "\"const\"", "\"continue\"", "\"default\"", "\"do\"", "\"extends\"", - "\"false\"", "\"for\"", "\"goto\"", "\"new\"", @@ -179,8 +194,14 @@ public interface PHPParserConstants { "\"switch\"", "\"this\"", "\"true\"", + "\"false\"", "\"while\"", "\"endwhile\"", + "\"endswitch\"", + "\"endif\"", + "\"endfor\"", + "\"foreach\"", + "\"as\"", "\"string\"", "\"object\"", "\"bool\"", @@ -190,6 +211,27 @@ public interface PHPParserConstants { "\"float\"", "\"int\"", "\"integer\"", + "\"@\"", + "\"$\"", + "\"!\"", + "\"~\"", + "\"?\"", + "\":\"", + "\"||\"", + "\"&&\"", + "\"++\"", + "\"--\"", + "\"+\"", + "\"-\"", + "\"*\"", + "\"/\"", + "\"&\"", + "\"|\"", + "\"^\"", + "\"%\"", + "\"<<\"", + "\">>\"", + "\">>>\"", "\"OR\"", "\"AND\"", "", @@ -205,7 +247,7 @@ public interface PHPParserConstants { "", "", "", - "\"_\"", + "", "\"(\"", "\")\"", "\"{\"", @@ -215,33 +257,16 @@ public interface PHPParserConstants { "\";\"", "\",\"", "\".\"", - "\"@\"", - "\"$\"", - "\"=\"", "\">\"", "\"<\"", - "\"!\"", - "\"?\"", - "\":\"", "\"==\"", "\"<=\"", "\">=\"", "\"!=\"", - "\"||\"", - "\"&&\"", - "\"++\"", - "\"--\"", - "\"+\"", - "\"-\"", - "\"*\"", - "\"/\"", - "\"&\"", - "\"|\"", - "\"^\"", - "\"%\"", - "\"<<\"", - "\">>\"", - "\">>>\"", + "\"<>\"", + "\"!==\"", + "\"===\"", + "\"=\"", "\"+=\"", "\"-=\"", "\"*=\"", @@ -251,11 +276,10 @@ public interface PHPParserConstants { "\"^=\"", "\".=\"", "\"%=\"", + "\"~=\"", "\"<<=\"", "\">>=\"", - "\">>>=\"", "", - "\"?>\"", }; }