[antlr-interest] how to get rid of newlines in the ast

Terence Parr parrt at cs.usfca.edu
Fri Mar 23 08:00:04 PDT 2007


Hi. I use this all the time.  A real and small grammar usually  
highlights what's wrong.
Ter
On Mar 23, 2007, at 6:00 AM, Dave Cramer wrote:

> I've tried following the examples where they suggest	
>
> NEWLINE ->
>
> however if you have a completely empty line you end up with a null  
> pointer exception
>
> So the solution seems to be to put NEWLINES into the ast and then  
> take them out there ?
>
> I want my grammar to not use any special end of line terminator  
> other than NEWLINE.
>
> Dave



More information about the antlr-interest mailing list