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

Jorn Ronnow jorn.news at gmail.com
Sun Dec 3 13:38:48 PST 2006


"Ric Klaren" <ric.klaren at gmail.com> wrote in
message news:bc607a4e0612031131k1d1f7f0dr3ecd9a7e912d2d0e at mail.gmail.com...
> Hi,
>
> 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
> this.

Thanks, that got me up and running!

cul8r
/Jörn





More information about the antlr-interest mailing list