Home | History | Annotate | Download | only in compiler

Lines Matching defs:Token

18 class Token {
19 public Token next = null;
30 private Token currentToken;
31 private Token lookAheadTokens;
42 currentToken = new Token();
55 Token t;
63 * Looks at the next token.
70 Token tk = lookAheadTokens;
79 Token tk2;
80 tk.next = tk2 = new Token();
100 private int get(Token token) {
103 t = readLine(token);
105 token.tokenId = t;
109 private int readLine(Token token) {
118 return readCharConst(token);
120 return readStringL(token);
122 return readNumber(c, token);
129 return readDouble(tbuf, c, token);
137 return readIdentifier(c, token);
174 private int readCharConst(Token token) {
189 token.longValue = value;
209 private int readStringL(Token token) {
239 token.textValue = tbuf.toString();
243 private int readNumber(int c, Token token) {
257 token.longValue = value;
273 token.longValue = value;
290 token.longValue = value;
292 token.doubleValue = (double)value;
300 return readDouble(tbuf, c2, token);
310 private int readDouble(StringBuffer sbuf, int c, Token token) {
337 token.doubleValue = Double.parseDouble(sbuf.toString());
429 private int readIdentifier(int c, Token token) {
452 token.textValue = name;