[antlr-interest] [BUG] Java generator produces useless conditionals

Marco Hunsicker devel at hunsicker.de
Fri Feb 21 23:12:02 PST 2003


Hello Terence,

TP> THanks for the fix.  I didn't bother optimizing as I knew that the 
TP> compiler would remove these "if true" tests :)

Of course. As I said, really a cosmetic issue. It's just that
generated code that is indeed readable for human beings, may well be
processed by them and I know at least one of such biests which find
these useless conditionals irritating ;) 

TP>  I'm also frightened by consequences of changing code generator ;)

I'd thought you have some unit tests at hand?

I'd like to recommend the Clover coverage tool in this regard (another
product which uses an ANTLR generated parser to process Java source
files, see http://www.thecortex.net/clover/index.html; maybe a
candidate for the links section?). They support Open Source projects,
you may a obtain a free license! Version 1.1 is due for release in the
next two weeks.

-- 
Best regards,
 Marco


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list