Related articles |
---|
Customizing gcc nshah@NetEdge.COM (Nirav_Shah) (1997-01-14) |
Re: Customizing gcc cartegw@humsci.auburn.edu (Gerald Carter) (1997-01-19) |
From: | Gerald Carter <cartegw@humsci.auburn.edu> |
Newsgroups: | comp.compilers |
Date: | 19 Jan 1997 21:49:00 -0500 |
Organization: | Compilers Central |
References: | 97-01-108 |
Keywords: | C++, question, GCC |
On Tue, 14 Jan 1997, Nirav_Shah wrote:
> I am trying to develop a tool to generate C data structures given a C++
> input file. ...
> Is this possible to do by modifying GNU source code?
I cannot speak as far as modifying the GCC source code ( haven't done
that), but you could try syntax directed translation. In other
words...
1) Build the syntax tree from your parser
2) Parse the syntax tree to transform the desired structures
from C++ to C.
It is generally a pretty painless method.
Hope this helps,
Jerry
------------------------------------------------------------------------
| System / Network Admin ( 334 ) 844 - 3788 |
| School of Human Sciences cartegw@humsci.auburn.edu |
| Auburn University http://www.humsci.auburn.edu/~cartegw |
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.