re.lex
Class Token

java.lang.Object
  extended by java_cup.runtime.Symbol
      extended by re.lex.Token

public class Token
extends java_cup.runtime.Symbol

Just a simple extension to the Symbol class from CUP.


Field Summary
 
Fields inherited from class java_cup.runtime.Symbol
left, parse_state, right, sym, value
 
Constructor Summary
Token(int id, Object value, int line)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Token

public Token(int id,
             Object value,
             int line)
Parameters:
id - The constant out of sym.java for this type of Token
value - The associated value, or null if no value is needed
line - The line from the source code where the Token appeared.
Method Detail

toString

public String toString()
Overrides:
toString in class java_cup.runtime.Symbol