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 d427051..00c5d6a 100644 --- a/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java +++ b/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java @@ -4,122 +4,135 @@ 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 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 LIST = 28; + int PRINT = 29; + int ECHO = 30; + int INCLUDE = 31; + int REQUIRE = 32; + int INCLUDE_ONCE = 33; + int REQUIRE_ONCE = 34; + int GLOBAL = 35; + int STATIC = 36; + int CLASSACCESS = 37; + int STATICCLASSACCESS = 38; + int ARRAYASSIGN = 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 ENDSWITCH = 58; + int ENDIF = 59; + int ENDFOR = 60; + int FOREACH = 61; + int AS = 62; + int STRING = 63; + int OBJECT = 64; + int BOOL = 65; + int BOOLEAN = 66; + int REAL = 67; + int DOUBLE = 68; + int FLOAT = 69; + int INT = 70; + int INTEGER = 71; + int AT = 72; + int DOLLAR = 73; + int BANG = 74; + int TILDE = 75; + int HOOK = 76; + int COLON = 77; + int OR_OR = 78; + int AND_AND = 79; + int INCR = 80; + int DECR = 81; + int PLUS = 82; + int MINUS = 83; + int STAR = 84; + int SLASH = 85; + int BIT_AND = 86; + int BIT_OR = 87; + int XOR = 88; + int REMAINDER = 89; + int LSHIFT = 90; + int RSIGNEDSHIFT = 91; + int RUNSIGNEDSHIFT = 92; + int _ORL = 93; + int _ANDL = 94; + int INTEGER_LITERAL = 95; + int DECIMAL_LITERAL = 96; + int HEX_LITERAL = 97; + int OCTAL_LITERAL = 98; + int FLOATING_POINT_LITERAL = 99; + int EXPONENT = 100; + int STRING_LITERAL = 101; + int STRING_1 = 102; + int STRING_2 = 103; + int STRING_3 = 104; + int IDENTIFIER = 105; + int LETTER = 106; + int DIGIT = 107; + int SPECIAL = 108; + int LPAREN = 109; + int RPAREN = 110; + int LBRACE = 111; + int RBRACE = 112; + int LBRACKET = 113; + int RBRACKET = 114; + int SEMICOLON = 115; + int COMMA = 116; + int DOT = 117; + int GT = 118; + int LT = 119; + int EQUAL_EQUAL = 120; + int LE = 121; + int GE = 122; + int NOT_EQUAL = 123; + int DIF = 124; + int BANGDOUBLEEQUAL = 125; + int TRIPLEEQUAL = 126; + int ASSIGN = 127; + int PLUSASSIGN = 128; + int MINUSASSIGN = 129; + int STARASSIGN = 130; + int SLASHASSIGN = 131; + int ANDASSIGN = 132; + int ORASSIGN = 133; + int XORASSIGN = 134; + int DOTASSIGN = 135; + int REMASSIGN = 136; + int TILDEEQUAL = 137; + int LSHIFTASSIGN = 138; + int RSIGNEDSHIFTASSIGN = 139; + int DOLLAR_ID = 140; int DEFAULT = 0; int PHPPARSING = 1; @@ -129,21 +142,25 @@ public interface PHPParserConstants { String[] tokenImage = { "", - "", + "\"\"", - "", + "", "\" \"", "\"\\t\"", "\"\\n\"", "\"\\r\"", "\"\\f\"", "\"//\"", - "", + "\"#\"", + "", "\"/*\"", "", + "\"?>\"", "\"*/\"", "\"*/\"", - "", + "", "\"class\"", "\"function\"", "\"var\"", @@ -151,6 +168,8 @@ public interface PHPParserConstants { "\"elseif\"", "\"else\"", "\"array\"", + "\"break\"", + "\"list\"", "\"print\"", "\"echo\"", "\"include\"", @@ -162,14 +181,12 @@ public interface PHPParserConstants { "\"->\"", "\"::\"", "\"=>\"", - "\"break\"", "\"case\"", "\"const\"", "\"continue\"", "\"default\"", "\"do\"", "\"extends\"", - "\"false\"", "\"for\"", "\"goto\"", "\"new\"", @@ -179,8 +196,14 @@ public interface PHPParserConstants { "\"switch\"", "\"this\"", "\"true\"", + "\"false\"", "\"while\"", "\"endwhile\"", + "\"endswitch\"", + "\"endif\"", + "\"endfor\"", + "\"foreach\"", + "\"as\"", "\"string\"", "\"object\"", "\"bool\"", @@ -190,6 +213,27 @@ public interface PHPParserConstants { "\"float\"", "\"int\"", "\"integer\"", + "\"@\"", + "\"$\"", + "\"!\"", + "\"~\"", + "\"?\"", + "\":\"", + "\"||\"", + "\"&&\"", + "\"++\"", + "\"--\"", + "\"+\"", + "\"-\"", + "\"*\"", + "\"/\"", + "\"&\"", + "\"|\"", + "\"^\"", + "\"%\"", + "\"<<\"", + "\">>\"", + "\">>>\"", "\"OR\"", "\"AND\"", "", @@ -205,7 +249,7 @@ public interface PHPParserConstants { "", "", "", - "\"_\"", + "", "\"(\"", "\")\"", "\"{\"", @@ -215,33 +259,16 @@ public interface PHPParserConstants { "\";\"", "\",\"", "\".\"", - "\"@\"", - "\"$\"", - "\"=\"", "\">\"", "\"<\"", - "\"!\"", - "\"?\"", - "\":\"", "\"==\"", "\"<=\"", "\">=\"", "\"!=\"", - "\"||\"", - "\"&&\"", - "\"++\"", - "\"--\"", - "\"+\"", - "\"-\"", - "\"*\"", - "\"/\"", - "\"&\"", - "\"|\"", - "\"^\"", - "\"%\"", - "\"<<\"", - "\">>\"", - "\">>>\"", + "\"<>\"", + "\"!==\"", + "\"===\"", + "\"=\"", "\"+=\"", "\"-=\"", "\"*=\"", @@ -251,11 +278,10 @@ public interface PHPParserConstants { "\"^=\"", "\".=\"", "\"%=\"", + "\"~=\"", "\"<<=\"", "\">>=\"", - "\">>>=\"", "", - "\"?>\"", }; }