org.egothor.parser.plain
Class Simple
java.lang.Object
org.egothor.parser.plain.Simple
- All Implemented Interfaces:
- SimpleConstants
public class Simple
- extends java.lang.Object
- implements SimpleConstants
- Author:
- Leo Galambos
Fields inherited from interface org.egothor.parser.plain.SimpleConstants |
ACRONYM, CJK_LETTER, CRAP, DATE, DEFAULT, DIGIT, EOF, GRAM, LETTER, MARK, NOISE, NUM, PUNCT, tokenImage, WORD |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public SimpleTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
Simple
public Simple(CharStream stream)
Simple
public Simple(SimpleTokenManager tm)
next
public final Token next()
throws ParseException
- Returns the next token in the stream, or null at EOS.
- Throws:
ParseException
ReInit
public void ReInit(CharStream stream)
ReInit
public void ReInit(SimpleTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()