Re: C Compiler in C++

Bart.Vanhauwaert@nowhere.be
17 May 2002 00:24:04 -0400

          From comp.compilers

Related articles
[4 earlier articles]
Re: C Compiler in C++ thp@cs.ucr.edu (2002-05-12)
Re: C Compiler in C++ rbates@southwind.net (Rodney M. Bates) (2002-05-13)
Re: C Compiler in C++ lex@cc.gatech.edu (Lex Spoon) (2002-05-13)
Re: C Compiler in C++ alexc@world.std.com (2002-05-17)
Re: C Compiler in C++ alexc@world.std.com (2002-05-17)
Re: C Compiler in C++ journeyman@compilerguru.com (2002-05-17)
Re: C Compiler in C++ Bart.Vanhauwaert@nowhere.be (2002-05-17)
Re: C Compiler in C++ joachim_d@gmx.de (Joachim Durchholz) (2002-05-23)
Re: C Compiler in C++ lars@bearnip.com (Lars Duening) (2002-06-07)
| List of all articles for this month |
From: Bart.Vanhauwaert@nowhere.be
Newsgroups: comp.compilers
Date: 17 May 2002 00:24:04 -0400
Organization: Compilers Central
References: 02-05-039
Keywords: C, OOP
Posted-Date: 17 May 2002 00:24:04 EDT

Nemanja Stanarevic <stanarevic@hotmail.com> wrote:
> Does anyone know of a good way (or generally accepted way) of
> representing the parse tree for C declarations using a similar class
> hierarchy?


I've solved (the hard) part of this problem in my C++ -> xml convertor.
(I think I solved them at least :))


http://www.irule.be/bvh/c++/cppp/


It's currently not yet ready for release (for example rules to weed
out syntactically correct but semantically useless parse trees are not
yet implemented). However, I felt confident enough to move on to other
parts of the convertor. I can send a snapshot of the code (under the
GNU public license) if you like. The project is written in C++.


(Check out the samples to see what my resulting parse trees look like)


cu bart


--
http://www.irule.be/bvh/


Post a followup to this message

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