Initial import of the Guide contributed to the project byRobert Kraske. Was originall...
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / sql / parser / Token.java
index 438ce5c..d6531ba 100644 (file)
@@ -8,12 +8,18 @@ public class Token {
        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;