Re: Translating C++
From: Malcolm (malcolm_at_55bank.freeserve.co.uk)
Date: 05/10/04
- Next message: Darrell Grainger: "Re: Data Structures and Algorithms Book"
- Previous message: Jeff Mott: "Data Structures and Algorithms Book"
- In reply to: Tim: "Translating C++"
- Next in thread: Robert Wessel: "Re: Translating C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 10 May 2004 22:19:22 +0100
"Tim" <tsmith@micromill.com> wrote in message
>
> I want to translate C++ into another language. What would the
> procedure be to do this? Are there any applications that can help
> do this?
>
Basically you need to write a C++ compiler, which is not an impossible task,
but very challenging.
You might be able to get away with using the GNU front end and retargetting
it on your prorietary langauge, but it is still not a trivial task.
>
> I don't really know what's involved apart from I've heard of tools
> like yacc and lexx and sid? Don't know really what they do.
>
Languages with grammars are inherently difficult to program. Utilities like
yacc allow you to specify the grammar in a special formal notation and to
automate some of the process of parser generation.
- Next message: Darrell Grainger: "Re: Data Structures and Algorithms Book"
- Previous message: Jeff Mott: "Data Structures and Algorithms Book"
- In reply to: Tim: "Translating C++"
- Next in thread: Robert Wessel: "Re: Translating C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|