[antlr-interest] Custom TreeAdapter and GUnit - Mission Impossible?
Tilman Bender
tbender at stud.hs-heilbronn.de
Tue Jun 9 06:09:06 PDT 2009
Hey everyone,
I try to use custom TreeNodes and a custom TreeAdaptor so I can
annotate my AST with information for typechecking. (Thanks for your
example in the new Book, Terr!)
Unfortunately this breaks the GUnit-Tests for my TreeWalker, because I
cannot tell GUnit what custom Adaptor to use for testing . I tried to
set the adaptor in the @init-Block of my main-parsing method, but taht
does not seems to have the desired effect. Does GUnit create a new
instance of the Parser for each rule it tests?
I have read about this problem here: http://markmail.org/message/k6nzsuphzusezy5v
Unfortunately this does not seem to be fixed yet. Does anyone know a
good workaround for this so I can use my custom TreeNodes without
losing my tests?
Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tbender at stud.hs-heilbronn.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090609/66efe89c/attachment.html
More information about the antlr-interest
mailing list