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 333d9da..1d8793c 100644 --- a/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java +++ b/net.sourceforge.phpeclipse/src/test/PHPParserConstants.java @@ -4,7 +4,10 @@ package test; public interface PHPParserConstants { int EOF = 0; - int SINGLE_LINE_COMMENT = 13; + 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; @@ -44,80 +47,84 @@ public interface PHPParserConstants { int TRUE = 51; int WHILE = 52; int ENDWHILE = 53; - int STRING = 54; - int OBJECT = 55; - int BOOL = 56; - int BOOLEAN = 57; - int REAL = 58; - int DOUBLE = 59; - int FLOAT = 60; - int INT = 61; - int INTEGER = 62; - int _ORL = 63; - int _ANDL = 64; - int INTEGER_LITERAL = 65; - int DECIMAL_LITERAL = 66; - int HEX_LITERAL = 67; - int OCTAL_LITERAL = 68; - int FLOATING_POINT_LITERAL = 69; - int EXPONENT = 70; - int STRING_LITERAL = 71; - int STRING_1 = 72; - int STRING_2 = 73; - int STRING_3 = 74; - int IDENTIFIER = 75; - int LETTER = 76; - int DIGIT = 77; - int SPECIAL = 78; - int LPAREN = 79; - int RPAREN = 80; - int LBRACE = 81; - int RBRACE = 82; - int LBRACKET = 83; - int RBRACKET = 84; - int SEMICOLON = 85; - int COMMA = 86; - int DOT = 87; - int AT = 88; - int DOLLAR = 89; - int ASSIGN = 90; - int GT = 91; - int LT = 92; - int BANG = 93; - int HOOK = 94; - int COLON = 95; - int EQ = 96; - int LE = 97; - int GE = 98; - int NE = 99; - int SC_OR = 100; - int SC_AND = 101; - int INCR = 102; - int DECR = 103; - int PLUS = 104; - int MINUS = 105; - int STAR = 106; - int SLASH = 107; - int BIT_AND = 108; - int BIT_OR = 109; - int XOR = 110; - int REM = 111; - int LSHIFT = 112; - int RSIGNEDSHIFT = 113; - int RUNSIGNEDSHIFT = 114; - int PLUSASSIGN = 115; - int MINUSASSIGN = 116; - int STARASSIGN = 117; - int SLASHASSIGN = 118; - int ANDASSIGN = 119; - int ORASSIGN = 120; - int XORASSIGN = 121; - int DOTASSIGN = 122; - int REMASSIGN = 123; - int LSHIFTASSIGN = 124; - int RSIGNEDSHIFTASSIGN = 125; - int RUNSIGNEDSHIFTASSIGN = 126; - int DOLLAR_ID = 127; + 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 DEFAULT = 0; int PHPPARSING = 1; @@ -127,19 +134,19 @@ public interface PHPParserConstants { String[] tokenImage = { "", - "\"", + "", "\"?>\"", + "", "\" \"", "\"\\t\"", "\"\\n\"", "\"\\r\"", "\"\\f\"", "\"//\"", - "", + "", "\"/*\"", "", + "\"?>\"", "\"*/\"", "\"*/\"", "", @@ -180,6 +187,8 @@ public interface PHPParserConstants { "\"true\"", "\"while\"", "\"endwhile\"", + "\"foreach\"", + "\"as\"", "\"string\"", "\"object\"", "\"bool\"", @@ -204,7 +213,7 @@ public interface PHPParserConstants { "", "", "", - "\"_\"", + "", "\"(\"", "\")\"", "\"{\"", @@ -252,7 +261,9 @@ public interface PHPParserConstants { "\"%=\"", "\"<<=\"", "\">>=\"", - "\">>>=\"", + "\"!==\"", + "\"===\"", + "\"~=\"", "", "\"?>\"", };