Re: Translating C++

From: Malcolm (malcolm_at_55bank.freeserve.co.uk)
Date: 05/10/04


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.



Relevant Pages

  • Re: prefix for yacc/bison
    ... The grammars that yacc accepts are a subset ... the parser mechanisms to their hearts content. ... means a bounded lookahead bottom-up machine. ...
    (alt.os.linux)
  • Re: prefix for yacc/bison
    ... The grammars that yacc accepts are a subset ... For instance Bison ... Erik de Castro Lopo nospam@mega-nerd.com ...
    (alt.os.linux)
  • Re: Parser Generator for C#?
    ... I have been looking for a tool similar to Lex and Yacc for C#. ... future grammars and was hoping to find a tool that would allow me to ... Lead developer of LLBLGen Pro, the productive O/R mapper for .NET ... My .NET blog: http://weblogs.asp.net/fbouma ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Parser Generator for C#?
    ... I have been looking for a tool similar to Lex and Yacc for C#. ... future grammars and was hoping to find a tool that would allow me to ... generate parsers using C#. ...
    (microsoft.public.dotnet.languages.csharp)