The ANTLR book and other examples I have demonstrate explicitly delineated
comments.
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?
For example, ...
--------------------------------------- Begin Example
---------------------------------------
This is a bunch of text we don't care anything about, it is comments and we
want to scan
text until we come to a keyword(s) that indicate we have something to parse
such as this...
KEYWORD=value1
This is a bunch of text discussion that we do not want parsed, but rather to
skip over it until we find yet
another keyword ... blah blah blah ...
KEYWORD2=value2 MODIFIER1=modValueA
A bunch more text we don't care anything about until we find yet another
keyword blah blah blah ...
KEYWORD=valueX MODIFIER2=modValueB
blah blah blah etc. etc. ad nausea...
--------------------------------------- End Example
---------------------------------------
Thanks in advance,
Ben
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address