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 333d9da..8248034 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,87 @@ 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 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 DEFAULT = 0; int PHPPARSING = 1; @@ -127,19 +137,19 @@ public interface PHPParserConstants { String[] tokenImage = { "", - "\"", + "", "\"?>\"", + "", "\" \"", "\"\\t\"", "\"\\n\"", "\"\\r\"", "\"\\f\"", "\"//\"", - "", + "", "\"/*\"", "", + "\"?>\"", "\"*/\"", "\"*/\"", "", @@ -180,6 +190,10 @@ public interface PHPParserConstants { "\"true\"", "\"while\"", "\"endwhile\"", + "\"endif\"", + "\"endfor\"", + "\"foreach\"", + "\"as\"", "\"string\"", "\"object\"", "\"bool\"", @@ -204,7 +218,7 @@ public interface PHPParserConstants { "", "", "", - "\"_\"", + "", "\"(\"", "\")\"", "\"{\"", @@ -226,6 +240,7 @@ public interface PHPParserConstants { "\"<=\"", "\">=\"", "\"!=\"", + "\"<>\"", "\"||\"", "\"&&\"", "\"++\"", @@ -252,7 +267,9 @@ public interface PHPParserConstants { "\"%=\"", "\"<<=\"", "\">>=\"", - "\">>>=\"", + "\"!==\"", + "\"===\"", + "\"~=\"", "", "\"?>\"", };