[antlr-interest] Re: Automatic semicolon insertion

whittaker55 at yahoo.com whittaker55 at yahoo.com
Wed Dec 17 09:16:11 PST 2003


> semicolon: SEMICOLON;
> 
> I replaced this with:
> 
> auto_semicolon:
> 	(SEMICOLON
>           { LA(1) == RBRACE || LT(1).getLine() != lastTokenLine }? 
> 	)
> 	;

My apologies for the typo - this should have read:
auto_semicolon:
(SEMICOLON
| { LA(1) == RBRACE || LT(1).getLine() != lastTokenLine }?
)
;

Note empty second option.

Thanks.



 

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