[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: g++ compiler
From: |
Pascal Bourguignon |
Subject: |
Re: g++ compiler |
Date: |
Sat, 08 Oct 2005 16:47:51 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Paul Pluzhnikov <ppluzhnikov-nsp@charter.net> writes:
> ganeshb@gmail.com writes:
>
>> I am planning to write a source to source (C++ to C++) translator. The
>> translator's job is to parse the C++ program augemented with some
>> annotations (not part of C++ standard) and produce a standard C++ code.
>> The annotations are written in the form of comments (/* ...*/). Will
>> g++ be ideal for this project?
>
> G++ is quite unlikely to be "ideal" for this: AFAIK it lacks the
> machinery to print (reconstruct) internal representation back as
> valid C++. Such reconstructor is entirely non-trivial.
Wrong: gccxml
> Also, depending on what the annotations are to be transformed into,
> you may have much easier time with text-processing languages,
> such as Perl.
LOL
>> How long does it take to master g++?
>
> I doubt anyone can "master" g++ in less then 2 years.
> But then what you mean by "master" may be very different from what
> I mean by that.
You don't need to enter the entrails of g++.
>> Duration of the project is 1 month.
>
> Well, if you are a genius, you might be able to complete this
> project in a month using g++. But I doubt both the antecedent
> and the consequent :(
It can be done in one week, with the right tools.
--
"A TRUE Klingon warrior does not comment his code!"