Greetings!
Have you looked at the mechanism of the BNF Converter?
see http://www.cse.chalmers.se/research/group/Language-technology/BNFC/
yes it is based around YACC-like lalr parser generators
but i like its mechanic for tree generation
i have only used it for generating Haskell
it claims to produce Java (and C and C++ and ...)
hope this is not tooooo off base
thankx
-jbb
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev