[antlr-interest] TreeAdaptor design question

Putrycz, Erik Erik.Putrycz at nrc-cnrc.gc.ca
Tue Sep 4 11:33:43 PDT 2007


Why does the method create(Token) return an Object? I'm curious why an
Object and not a Tree. When you manipulate trees, it seems to cause
quite a bit of (useless?) casts everywhere...

 

Erik Putrycz, Ph.D - Research Associate

Institute for Information Technology - Software Engineering Group

National Research Council, Canada - Building M-50, 1200 Montreal Road

Ottawa, Ontario, CANADA K1A 0R6

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070904/e2961649/attachment.html 


More information about the antlr-interest mailing list