[antlr-interest] predicate and ambiguity
Lloyd Dupont
ld at galador.net
Sun Jul 8 23:25:52 PDT 2007
First thanks for your answr and tips! :-)
> Alternatively, you could turn on backtracking for parserrule and let
> ANTLR try the alternatives at runtime.
>
hmmm how does backtracking work?
I have seen the flag in the documentation, but I have no idea on how to
exploit it!
In the list of predefefined attribute I saw some interesting things..
is there a possibility to do something "like":
parserrule:
({ Function($rule.Tree) }? TOK1 otherparserrule TOK2)? TOK1
otherparserrule TOK2
| alternative
where I analyse the result of a few rules before accepting them.
On an other note I heard there is a PDF and a book.
Is it possible to pay online and get the PDF directly?
I have no good computing library around my place, but I like to peruse the
book.
Also, it's funny, on your blog, with IE the text and foreground is black on
black ?!? (while it's black and white with Firefox)
More information about the antlr-interest
mailing list