[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Token.setText()
All my token classes are being generated with this method:
public void setText(String text)
{
throw new RuntimeException("Cannot change TArrow text.");
}
First, what is "TArrow" (there are no tokens named "arrow"), and second,
why am I not allowed to change the token text like the example on
page 39 of thesis.ps?
What I'm trying to do is decode a doubly quoted string, respecting
backslash escapes, etc., by overriding Lexer.filter().
Thanks,
-Archie
___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com