[antlr-interest] Predicate Question...
Terence Parr
parrt at cs.usfca.edu
Mon Nov 6 09:14:02 PST 2006
On Nov 6, 2006, at 2:40 AM, Hill, Robert wrote:
> Does it make sense to have predicates in tree parsers in V3?
Possible, but trees should be designed so they are unnecessary. The
tree grammar should be trivial...no need for preds.
Ter
> If the predicate is skipped, the failedPredException is thrown, and
> the parsing following the exception gets out of sync.
>
> Does the rule you're skipping have to be a root token?
>
> I think I'm misunderstanding the usage here.
> Does anyone have any pointers to any (simple!) examples ?
>
> Cheers!
>
> Rob
>
> Robert Hill
> Information Engineer
> E UKIMEA DWP ACU, Hallamshire Business Park, 100 Napier St,
> Sheffield. S11 8HD
> email: rhill03 at eds.com
> Office: +44 114 291 1928
> Mobile: +44 7903 185 516
>
>
More information about the antlr-interest
mailing list