re.lex
Class Token
java.lang.Object
java_cup.runtime.Symbol
re.lex.Token
public class Token
- extends java_cup.runtime.Symbol
Just a simple extension to the Symbol class from
CUP.
| Fields inherited from class java_cup.runtime.Symbol |
left, parse_state, right, sym, value |
|
Constructor Summary |
Token(int id,
Object value,
int line)
|
Token
public Token(int id,
Object value,
int line)
- Parameters:
id - The constant out of sym.java for this type of Tokenvalue - The associated value, or null if no value is neededline - The line from the source code where the Token appeared.
toString
public String toString()
- Overrides:
toString in class java_cup.runtime.Symbol