public static final char COMMENT = 'C';
public static final char WHITESPACE = 'W';
public static final char NUMERIC = 'N';
- public static final char GROUP = 'G';
public static final char END_OF_LINE = 'E';
private char type;
private int start;
private int end;
private String value;
+
+ public Token(char type, char value, int start) {
+ this.type = type;
+ this.value = new Character(value).toString();
+ this.start = start;
+ this.end = start + 1;
+ }
public Token(char type, String value, int start, int end) {
this.type = type;
this.value = value;