1 30 31 package org.syntax.jedit.tokenmarker; 32 33 43 44 public class Token 45 { 46 50 public static final byte NULL = 0; 51 52 55 public static final byte COMMENT1 = 1; 56 57 60 public static final byte COMMENT2 = 2; 61 62 63 67 public static final byte LITERAL1 = 3; 68 69 73 public static final byte LITERAL2 = 4; 74 75 79 public static final byte LABEL = 5; 80 81 86 public static final byte KEYWORD1 = 6; 87 88 93 public static final byte KEYWORD2 = 7; 94 95 99 public static final byte KEYWORD3 = 8; 100 101 106 public static final byte OPERATOR = 9; 107 108 113 public static final byte INVALID = 10; 114 115 public static final byte PARAMETER = 11; 116 public static final byte PARAMETER_OK = 12; 117 118 121 public static final byte ID_COUNT = 13; 122 123 127 public static final byte INTERNAL_FIRST = 100; 128 129 133 public static final byte INTERNAL_LAST = 126; 134 135 139 public static final byte END = 127; 140 141 144 public int length; 145 146 149 public byte id; 150 151 154 public Token next; 155 156 161 public Token(int length, byte id) 162 { 163 this.length = length; 164 this.id = id; 165 } 166 167 170 public String toString() 171 { 172 return "[id=" + id + ",length=" + length + "]"; 173 } 174 } 175 | Popular Tags |