At 14:07 7/01/2009, Ben Gillis wrote:
>Are there any examples or email archive discussion where the bulk 
>of text being parsed is, implicitly, comments that should be 
>ignored (i.e. there is no metacharacter(s) indicating what is a 
>comment)...and, the parser is only concerned with various 
>keywords?

Look up "filtering lexers" (or the "filter=true" option in a 
lexer-only grammar).  That might be the sort of thing you're 
after.

Alternatively, you could just define a lexer rule that consumes 
(and discards) everything up to (but not including) the next 
interesting keyword.


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to