[antlr-interest] AST Tree question
Gavin Lambert
antlr at mirality.co.nz
Thu Jan 18 12:25:37 PST 2007
At 05:13 19/01/2007, Gibson, Andrea wrote:
>host : hostName
> | ipv6Reference;
>
>hostName
> :(domainLabel(PERIOD)? )*;
>
>ipv6Reference
> : OPEN_BRACKET ipv6Address CLOSE_BRACKET;
While this may not be directly causing your problem, the way
you've got it set up there means that hostName (and therefore also
host) can match nothing at all, which is probably not what you
want.
I suspect you actually want:
hostName
: domainLabel (PERIOD domainLabel)*
;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070119/69afbd3b/attachment.html
More information about the antlr-interest
mailing list