[antlr-interest] Re: Error Token

Matt Benson gudnabrsam at yahoo.com
Wed Mar 24 06:57:08 PST 2004


--- Jan Oetting <jan.oetting at gmx.de> wrote:
> 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)

Bogdan, can you verify why SATC's API doesn't use a
generic TokenStream?  (possibly it wasn't available
when SATC was created?)

> 
> 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?
> 

Sounds similar to what I was saying before...

seems like building that into SATC might be the
ticket, though... default colorization for tokens that
have not yet shown their "true colors".

-Matt

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html


 
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