[antlr-interest] DoubleLinkedTree

David Holroyd dave at badgers-in-foil.co.uk
Fri Mar 2 02:27:37 PST 2007


On Fri, Mar 02, 2007 at 08:46:13AM +0100, Alexander G?ngel wrote:
> David Holroyd schrieb:
> > On Thu, Mar 01, 2007 at 05:07:38PM +0100, Alexander G?ngel wrote:
> >> Can anybody give me hint how to get DoublelinkTrees  to work?
> >
> > You have to tell the Parser to use a TreeAdapter implementation that
> > you've created that can construct and manipulate the custom class that
> > you've implemented.
> 
> How can I tell Antlr to use my TreeAdapter I didn't find anything in the
> wiki.

Something like,
  ...
  MyTreeAdapter adapter = new MyTreeAdapter();
  MyParser parser = new MyParser(tokenStream);
  parser.setTreeAdaptor(adapter);
  ...

ta,
dave

-- 
http://david.holroyd.me.uk/


More information about the antlr-interest mailing list