First page Back Continue Last page Summary Graphic
Scanner Framework (1)
A token class is represented by an integer
constant:
interface Tokens {
int EOF = 0;
int NUM = EOF + 1;
int LT = NUM + 1;
int LTEQ = LT + 1;
int EQ = LTEQ + 1;
int NEQ = EQ + 1;
}