[antlr-interest] Sometimes skip, sometimes not.

doctlo-antlr at yahoo.com doctlo-antlr at yahoo.com
Tue Feb 22 07:52:50 PST 2005


OK. Here is the situation.

I am parsing something where the structure is:
generally new lines are ignored, but there is a certain
construct,

OPENB    :  '[';
CLOSEB  : ']';
name        :  LETTER ( LETTER | DIGIT )*;
property: NAME OPENB VALUE CLOSEB;

where in value any value can appear except for ']' ( unless it is
preceded by a \ ).

The problem is how do I specify that newlines are skipped except
when in value?



More information about the antlr-interest mailing list