polyglot.lex
Class Token

java.lang.Object
  extended by polyglot.lex.Token
Direct Known Subclasses:
EOF, Identifier, Keyword, Literal, Operator, QQListToken, QQNodeToken

public abstract class Token
extends java.lang.Object

The base class of all tokens.


Constructor Summary
Token(Position position, int symbol)
           
 
Method Summary
protected static java.lang.String escape(java.lang.String s)
           
 Position getPosition()
           
 java_cup.runtime.Symbol symbol()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Token

public Token(Position position,
             int symbol)
Method Detail

getPosition

public Position getPosition()

symbol

public java_cup.runtime.Symbol symbol()

escape

protected static java.lang.String escape(java.lang.String s)