3.x RC1 compatibility
[phpeclipse.git] / net.sourceforge.phpeclipse / src / test / PHPParserConstants.java
index 8248034..6fc6c54 100644 (file)
@@ -4,155 +4,178 @@ 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 = 20;
+  int CLASS = 27;
+  int FUNCTION = 28;
+  int VAR = 29;
+  int IF = 30;
+  int ELSEIF = 31;
+  int ELSE = 32;
+  int ARRAY = 33;
+  int BREAK = 34;
+  int LIST = 35;
+  int PRINT = 36;
+  int ECHO = 37;
+  int INCLUDE = 38;
+  int REQUIRE = 39;
+  int INCLUDE_ONCE = 40;
+  int REQUIRE_ONCE = 41;
+  int GLOBAL = 42;
+  int DEFINE = 43;
+  int STATIC = 44;
+  int CLASSACCESS = 45;
+  int STATICCLASSACCESS = 46;
+  int ARRAYASSIGN = 47;
+  int CASE = 48;
+  int CONST = 49;
+  int CONTINUE = 50;
+  int _DEFAULT = 51;
+  int DO = 52;
+  int EXTENDS = 53;
+  int FOR = 54;
+  int GOTO = 55;
+  int NEW = 56;
+  int NULL = 57;
+  int RETURN = 58;
+  int SUPER = 59;
+  int SWITCH = 60;
+  int THIS = 61;
+  int TRUE = 62;
+  int FALSE = 63;
+  int WHILE = 64;
+  int ENDWHILE = 65;
+  int ENDSWITCH = 66;
+  int ENDIF = 67;
+  int ENDFOR = 68;
+  int FOREACH = 69;
+  int AS = 70;
+  int STRING = 71;
+  int OBJECT = 72;
+  int BOOL = 73;
+  int BOOLEAN = 74;
+  int REAL = 75;
+  int DOUBLE = 76;
+  int FLOAT = 77;
+  int INT = 78;
+  int INTEGER = 79;
+  int AT = 80;
+  int BANG = 81;
+  int TILDE = 82;
+  int HOOK = 83;
+  int COLON = 84;
+  int OR_OR = 85;
+  int AND_AND = 86;
+  int PLUS_PLUS = 87;
+  int MINUS_MINUS = 88;
+  int PLUS = 89;
+  int MINUS = 90;
+  int STAR = 91;
+  int SLASH = 92;
+  int BIT_AND = 93;
+  int BIT_OR = 94;
+  int XOR = 95;
+  int REMAINDER = 96;
+  int LSHIFT = 97;
+  int RSIGNEDSHIFT = 98;
+  int RUNSIGNEDSHIFT = 99;
+  int _ORL = 100;
+  int _ANDL = 101;
+  int INTEGER_LITERAL = 102;
+  int DECIMAL_LITERAL = 103;
+  int HEX_LITERAL = 104;
+  int OCTAL_LITERAL = 105;
+  int FLOATING_POINT_LITERAL = 106;
+  int EXPONENT = 107;
+  int STRING_LITERAL = 108;
+  int STRING_2 = 109;
+  int STRING_3 = 110;
+  int ESCAPED = 111;
+  int DOUBLEQUOTE = 112;
+  int DOLLARS = 113;
+  int DOUBLEQUOTE2 = 114;
+  int LBRACE1 = 115;
+  int RBRACE1 = 119;
+  int ID = 120;
+  int DOLLAR = 123;
+  int IDENTIFIER = 124;
+  int LETTER = 125;
+  int DIGIT = 126;
+  int SPECIAL = 127;
+  int LPAREN = 129;
+  int RPAREN = 130;
+  int LBRACE = 131;
+  int RBRACE = 132;
+  int LBRACKET = 133;
+  int RBRACKET = 134;
+  int SEMICOLON = 135;
+  int COMMA = 136;
+  int DOT = 137;
+  int GT = 138;
+  int LT = 139;
+  int EQUAL_EQUAL = 140;
+  int LE = 141;
+  int GE = 142;
+  int NOT_EQUAL = 143;
+  int DIF = 144;
+  int BANGDOUBLEEQUAL = 145;
+  int TRIPLEEQUAL = 146;
+  int ASSIGN = 147;
+  int PLUSASSIGN = 148;
+  int MINUSASSIGN = 149;
+  int STARASSIGN = 150;
+  int SLASHASSIGN = 151;
+  int ANDASSIGN = 152;
+  int ORASSIGN = 153;
+  int XORASSIGN = 154;
+  int DOTASSIGN = 155;
+  int REMASSIGN = 156;
+  int TILDEEQUAL = 157;
+  int LSHIFTASSIGN = 158;
+  int RSIGNEDSHIFTASSIGN = 159;
 
   int DEFAULT = 0;
   int PHPPARSING = 1;
   int IN_SINGLE_LINE_COMMENT = 2;
-  int IN_FORMAL_COMMENT = 3;
-  int IN_MULTI_LINE_COMMENT = 4;
+  int IN_VARIABLE = 3;
+  int IN_FORMAL_COMMENT = 4;
+  int IN_MULTI_LINE_COMMENT = 5;
+  int IN_STRING = 6;
+  int DOLLAR_IN_STRING = 7;
+  int SKIPSTRING = 8;
+  int DOLLAR_IN_STRING_EXPR = 9;
 
   String[] tokenImage = {
     "<EOF>",
-    "<PHPSTART>",
+    "\"<?\"",
+    "\"<?php\"",
+    "\"<?=\"",
     "\"?>\"",
-    "<token of kind 3>",
+    "<token of kind 5>",
+    "\" \"",
+    "\"\\t\"",
+    "\"\\n\"",
+    "\"\\r\"",
+    "\"\\f\"",
     "\" \"",
     "\"\\t\"",
     "\"\\n\"",
     "\"\\r\"",
     "\"\\f\"",
     "\"//\"",
-    "<token of kind 10>",
+    "\"#\"",
+    "<token of kind 18>",
     "\"/*\"",
     "<SINGLE_LINE_COMMENT>",
-    "\"?>\"",
+    "<token of kind 21>",
+    "\"todo\"",
+    "\"TODO\"",
     "\"*/\"",
     "\"*/\"",
-    "<token of kind 16>",
+    "<token of kind 26>",
     "\"class\"",
     "\"function\"",
     "\"var\"",
@@ -160,6 +183,8 @@ public interface PHPParserConstants {
     "\"elseif\"",
     "\"else\"",
     "\"array\"",
+    "\"break\"",
+    "\"list\"",
     "\"print\"",
     "\"echo\"",
     "\"include\"",
@@ -167,18 +192,17 @@ public interface PHPParserConstants {
     "\"include_once\"",
     "\"require_once\"",
     "\"global\"",
+    "\"define\"",
     "\"static\"",
     "\"->\"",
     "\"::\"",
     "\"=>\"",
-    "\"break\"",
     "\"case\"",
     "\"const\"",
     "\"continue\"",
     "\"default\"",
     "\"do\"",
     "\"extends\"",
-    "\"false\"",
     "\"for\"",
     "\"goto\"",
     "\"new\"",
@@ -188,8 +212,10 @@ public interface PHPParserConstants {
     "\"switch\"",
     "\"this\"",
     "\"true\"",
+    "\"false\"",
     "\"while\"",
     "\"endwhile\"",
+    "\"endswitch\"",
     "\"endif\"",
     "\"endfor\"",
     "\"foreach\"",
@@ -203,6 +229,26 @@ public interface PHPParserConstants {
     "\"float\"",
     "\"int\"",
     "\"integer\"",
+    "\"@\"",
+    "\"!\"",
+    "\"~\"",
+    "\"?\"",
+    "\":\"",
+    "\"||\"",
+    "\"&&\"",
+    "\"++\"",
+    "\"--\"",
+    "\"+\"",
+    "\"-\"",
+    "\"*\"",
+    "\"/\"",
+    "\"&\"",
+    "\"|\"",
+    "\"^\"",
+    "\"%\"",
+    "\"<<\"",
+    "\">>\"",
+    "\">>>\"",
     "\"OR\"",
     "\"AND\"",
     "<INTEGER_LITERAL>",
@@ -212,13 +258,26 @@ public interface PHPParserConstants {
     "<FLOATING_POINT_LITERAL>",
     "<EXPONENT>",
     "<STRING_LITERAL>",
-    "<STRING_1>",
     "<STRING_2>",
     "<STRING_3>",
+    "<ESCAPED>",
+    "\"\\\"\"",
+    "\"$\"",
+    "\"\\\"\"",
+    "\"{\"",
+    "\"{\"",
+    "\"}\"",
+    "<token of kind 118>",
+    "\"}\"",
+    "<ID>",
+    "<token of kind 121>",
+    "<token of kind 122>",
+    "\"$\"",
     "<IDENTIFIER>",
     "<LETTER>",
     "<DIGIT>",
     "<SPECIAL>",
+    "<token of kind 128>",
     "\"(\"",
     "\")\"",
     "\"{\"",
@@ -228,34 +287,16 @@ public interface PHPParserConstants {
     "\";\"",
     "\",\"",
     "\".\"",
-    "\"@\"",
-    "\"$\"",
-    "\"=\"",
     "\">\"",
     "\"<\"",
-    "\"!\"",
-    "\"?\"",
-    "\":\"",
     "\"==\"",
     "\"<=\"",
     "\">=\"",
     "\"!=\"",
     "\"<>\"",
-    "\"||\"",
-    "\"&&\"",
-    "\"++\"",
-    "\"--\"",
-    "\"+\"",
-    "\"-\"",
-    "\"*\"",
-    "\"/\"",
-    "\"&\"",
-    "\"|\"",
-    "\"^\"",
-    "\"%\"",
-    "\"<<\"",
-    "\">>\"",
-    "\">>>\"",
+    "\"!==\"",
+    "\"===\"",
+    "\"=\"",
     "\"+=\"",
     "\"-=\"",
     "\"*=\"",
@@ -265,13 +306,9 @@ public interface PHPParserConstants {
     "\"^=\"",
     "\".=\"",
     "\"%=\"",
+    "\"~=\"",
     "\"<<=\"",
     "\">>=\"",
-    "\"!==\"",
-    "\"===\"",
-    "\"~=\"",
-    "<DOLLAR_ID>",
-    "\"?>\"",
   };
 
 }