public char[][] taskTags = null;
public char[][] taskPriorities = null;
- public static final boolean DEBUG = false;
+ public static final boolean DEBUG = true;
public Scanner() {
this(false, false);
return TokenNameIdentifier;
}
- case 'd' : //define declare default do die
+ case 'd' : // declare default do die
+ // TODO delete define ==> no keyword !
switch (length) {
case 2 :
if ((data[++index] == 'o'))
return TokenNamedo;
else
return TokenNameIdentifier;
- case 3 :
- if ((data[++index] == 'i') && (data[++index] == 'e'))
- return TokenNamedie;
- else
- return TokenNameIdentifier;
- case 6 :
- if ((data[++index] == 'e')
- && (data[++index] == 'f')
- && (data[++index] == 'i')
- && (data[++index] == 'n')
- && (data[++index] == 'e'))
- return TokenNamedefine;
- else
- return TokenNameIdentifier;
+// case 6 :
+// if ((data[++index] == 'e')
+// && (data[++index] == 'f')
+// && (data[++index] == 'i')
+// && (data[++index] == 'n')
+// && (data[++index] == 'e'))
+// return TokenNamedefine;
+// else
+// return TokenNameIdentifier;
case 7 :
if ((data[++index] == 'e')
&& (data[++index] == 'c')
return "Identifier(" + new String(getCurrentTokenSource()) + ")"; //$NON-NLS-1$ //$NON-NLS-2$
case TokenNameVariable :
return "Variable(" + new String(getCurrentTokenSource()) + ")"; //$NON-NLS-1$ //$NON-NLS-2$
+ case TokenNameabstract :
+ return "abstract"; //$NON-NLS-1$
+ case TokenNamearray :
+ return "array"; //$NON-NLS-1$
case TokenNameas :
return "as"; //$NON-NLS-1$
case TokenNamebreak :
return "continue"; //$NON-NLS-1$
case TokenNamedefault :
return "default"; //$NON-NLS-1$
- case TokenNamedefine :
- return "define"; //$NON-NLS-1$
+// case TokenNamedefine :
+// return "define"; //$NON-NLS-1$
case TokenNamedo :
return "do"; //$NON-NLS-1$
case TokenNameecho :
return "extends"; //$NON-NLS-1$
case TokenNamefalse :
return "false"; //$NON-NLS-1$
+ case TokenNamefinal :
+ return "final"; //$NON-NLS-1$
case TokenNamefor :
return "for"; //$NON-NLS-1$
case TokenNameforeach :
return "global"; //$NON-NLS-1$
case TokenNameif :
return "if"; //$NON-NLS-1$
+ case TokenNameimplements :
+ return "implements"; //$NON-NLS-1$
case TokenNameinclude :
return "include"; //$NON-NLS-1$
case TokenNameinclude_once :
return "include_once"; //$NON-NLS-1$
+ case TokenNameinterface :
+ return "interface"; //$NON-NLS-1$
case TokenNamelist :
return "list"; //$NON-NLS-1$
case TokenNamenew :
return "null"; //$NON-NLS-1$
case TokenNameprint :
return "print"; //$NON-NLS-1$
+ case TokenNameprivate :
+ return "private"; //$NON-NLS-1$
+ case TokenNameprotected :
+ return "protected"; //$NON-NLS-1$
+ case TokenNamepublic :
+ return "public"; //$NON-NLS-1$
case TokenNamerequire :
return "require"; //$NON-NLS-1$
case TokenNamerequire_once :
return "switch"; //$NON-NLS-1$
case TokenNametrue :
return "true"; //$NON-NLS-1$
+ case TokenNameunset :
+ return "unset"; //$NON-NLS-1$
case TokenNamevar :
return "var"; //$NON-NLS-1$
case TokenNamewhile :