[antlr-interest] Re: Error Token

Jan Oetting jan.oetting at gmx.de
Wed Mar 24 00:04:51 PST 2004


Hi,
thanks for your answers, Matt and Bogdan

1. to be correct, Text is not displayed white on white, but not at all
2.Bodgan, my problem with unclosed Strings is even in your Java grammar
example
"Hello World (without " after World) is not displayed, isnt' it?
Is this okay for you?
3. Matt:using Tokenstreams instead
SATC uses the CharScanner class not a Tokenstream
So I can not provide a ErrorFilterTokenStream and present it to SATC (i
tried this :-(
Probably SATC needs the CharScanner because of the MultistateLexer ( I
guess)

4. my new idea
make a new class extending my Lexer and overwriting the nextToken method,
catching all Errors,
extracting the text from the error text and present this class to SATC.
Is this a good idea?

Greetings
Jan

-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list