[antlr-interest] Problem when trying to run John Merrell's tutorial (from antlr.org Getting Started page)

Ric Klaren ric.klaren at gmail.com
Sun Dec 3 11:31:50 PST 2006


On 12/3/06, Jorn Ronnow <jorn.news at gmail.com> wrote:
> ....
> Tracing the call to CalcParser::expr(), I see that this function tries to
> call astFactory->create(LT(1)), but astFactory is NULL, which makes the
> program crash.

This problem is due to changes in 2.7.4 plus or minus a minor version
number. It's now required to initialize the ASTFactory when building
trees. Look at the examples/C++ documentation section on how to do



More information about the antlr-interest mailing list