[antlr-interest] Simple way to get the text that matched
Bryan Ewbank
ewbank at gmail.com
Thu Nov 2 10:50:45 PST 2006
Rick,
Be aware that (for buildAST=true and C++) you must define a factory
from which the AST nodes will be created. See the C++ examples for
details, and search for the identifier ASTFactory.
Without a registered method for your AST node type, you will get a
segv pretty quick.
On 11/2/06, Rick Morgan <r.morgan at verizonbusiness.com> wrote:
> Cancel my previous question, the "post processing step" I needed was
> actually a pre-processing step:
> options {
> buildAST=true;
> }
>
> >I have to guess that (being new with ANTLR) I've totally overlooked
> >some step, like some post-processing step that turns those hash marks into
> >valid AST node references like the wiki says they'll be. How do I get that
> >to happen?
> Rick
>
>
>
More information about the antlr-interest
mailing list