[antlr-interest] detecting transitions in stanza-based files
Bryan Ewbank
ewbank at gmail.com
Tue May 10 07:57:21 PDT 2005
The core problem is that shortLine and longLine have the same
left-match. If this is true, it's perhaps best to simply /parse/
everything (assume longLine?), then use a tree walker to break out
stanzas using a semantic predicate.
On 5/10/05, Chris Black <chris at lotuscat.com> wrote:
> multStanzas: (stanza)+
> stanza: shortLine (longLine)+
>
> shortLine: FIELD DELIM FIELD DELIM FIELD NEWLINE
> longLine: FIELD DELIM FIELD (DELIM FIELD)+ NEWLINE
More information about the antlr-interest
mailing list