[antlr-interest] How can you ignore White Space but record the last white space character used ?

Silvain Piree s.piree at enneya.com
Thu Jun 27 23:38:08 PDT 2002


> However,  is there an easy way to get it to record the fact that
> a space has been detected so that this can be passed to the 
> Parser ?

You can use the HiddenTokenStream to pass whitespace
tokens to your parser. See the "preserveWhiteSpace" example
in the ANTLR examples directory.

Also, see the documentation of ANTLR about token streams.



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

More information about the antlr-interest mailing list