[antlr-interest] stuff I don't like about ANTLR 2.x
Terence Parr
parrt at cs.usfca.edu
Sun Mar 14 12:39:13 PST 2004
On Mar 13, 2004, at 8:27 PM, Braden McDaniel wrote:
> I use ANTLR to generate C++. For some time, my major complaint about
> the
> C++ part of ANTLR has been that the support library seems to be poorly
> factored. For instance, I don't use ANTLR's AST support. But because of
> the rather monolithic nature of the support library, there seems to be
> no way to keep from pulling in all the support library's AST machinery
> when linking.
The issue could be that C++ / C header files are a poor mechanism in
general for factoring stuff due to very coarse granularity of
dependencies. Can you suggest some factoring tips?
[Side note from an anti-C++ bigot: I can't believe people don't
complain about the complete lack of portability of C++. Never once
have I heard people say that the Java code won't compile somewhere
(course the build process is a different story perhaps<wink>). It is
truly astounding that nearly 20 years after the first lecture I heard
on C++, we still don't have a portable language. Stroustroup (SP?) is
coming to USF to speak soon...I'll try to leave my heavier projectiles
at home.] ;) :D Just my opinion folks ;)
> That's my number one beef. The other thing I ran into is that it was
> *way* too difficult to convince ANTLR to generate the parser in an
> unnamed namespace. The C++ code generator is more or less hard-wired to
> generate code that will be available to multiple translation units; but
> I don't want that. Fortunately, I was able to trick ANTLR into doing
> what I want.
Hooray!
> Considering those are my major complaints, it seems I've been pretty
> happy with ANTLR. :-)
Yeah! Thanks, Braden...
Ter
--
Professor Comp. Sci., University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!
Cofounder, http://www.peerscope.com pure link sharing
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list