Re: Pointers to "why C behaves like that ?"

Lars T Hansen <lth@acm.org>
11 Dec 2002 22:33:54 -0500

          From comp.compilers

Related articles
[63 earlier articles]
Re: Pointers to "why C behaves like that ?" vugluskr@unicorn.math.spbu.ru (Roman Shaposhnick) (2002-12-07)
Re: Pointers to "why C behaves like that ?" vugluskr@unicorn.math.spbu.ru (Roman Shaposhnick) (2002-12-07)
Re: Pointers to "why C behaves like that ?" lex@cc.gatech.edu (Lex Spoon) (2002-12-11)
Re: Pointers to "why C behaves like that ?" joachim_d@gmx.de (Joachim Durchholz) (2002-12-11)
Re: Pointers to "why C behaves like that ?" marcov@toad.stack.nl (Marco van de Voort) (2002-12-11)
Re: Pointers to "why C behaves like that ?" marcov@toad.stack.nl (Marco van de Voort) (2002-12-11)
Re: Pointers to "why C behaves like that ?" lth@acm.org (Lars T Hansen) (2002-12-11)
Re: Pointers to "why C behaves like that ?" torbenm@diku.dk (2003-01-17)
Re: Pointers to "why C behaves like that ?" ralph@inputplus.co.uk (2003-03-17)
Re: Pointers to "why C behaves like that ?" skeeterdabeeterbunny@ameritech.net (skeeter da beeter bunny) (2003-03-22)
| List of all articles for this month |
From: Lars T Hansen <lth@acm.org>
Newsgroups: comp.compilers
Date: 11 Dec 2002 22:33:54 -0500
Organization: Compilers Central
References: 02-11-059 02-11-083 02-11-100 02-11-109 02-11-135 02-11-142 02-11-175
Keywords: parse, analysis
Posted-Date: 11 Dec 2002 22:33:54 EST

Roman Shaposhnick <vugluskr@unicorn.math.spbu.ru> wrote:


> It seems that having a way to ask compiler for an AST would benefit
> a lot of people, trying to do something like you've mentioned. The
> question, however is -- where can one get such a tool for languages
> like C and C++.


LCC is quite nice for C, I used this for a tool called FFIGen. See
http://www.ccs.neu.edu/home/lth/ffigen/. (There is a newer version
somewhere on the net, but Google professes ignorance.)


For C++ it is a little more grim; an older tool is Sage++ from Indiana
University, see http://www.extreme.indiana.edu/sage. It works OK but
in practice it had a hard time with more complicated aspects of the
language. (This is six years ago, things may have changed.) A more
recent version, built on better tools I think, is the Program Database
Toolkit from University of Oregon,
http://www.cs.uoregon.edu/research/paracomp/proj/pdtoolkit/.


--lars


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.