[antlr-interest] [C target] how to skip empty lines

Daniels, Troy (US SSA) troy.daniels at baesystems.com
Fri Oct 23 13:36:18 PDT 2009


 

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org 
> [mailto:antlr-interest-bounces at antlr.org] On Behalf Of 
> David-Sarah Hopwood
> 
> Bear in mind that this won't allow a blank line at the start 
> of the input, though. If that should be allowed, then you may 
> still need a blank procedure rule (assuming procedures can 
> occur at top-level).
> 

Also, you may need to handle things like \n space \n tab \n, which will
fail with just \n+.

Troy



More information about the antlr-interest mailing list