|Need to develop a compiler "source to source". email@example.com (2004-12-23)|
|Re: Need to develop a compiler "source to source". firstname.lastname@example.org (Alexey Demakov) (2004-12-25)|
|Re: Need to develop a compiler "source to source". email@example.com (2004-12-25)|
|Re: Need to develop a compiler "source to source". firstname.lastname@example.org (Nick Roberts) (2004-12-25)|
|From:||Nick Roberts <email@example.com>|
|Date:||25 Dec 2004 20:18:28 -0500|
|Posted-Date:||25 Dec 2004 20:18:28 EST|
firstname.lastname@example.org (Juoke) wrote:
> I need to develop a (complex) compiler that translate from an high-level
> source - given the (e)bnf, quite long... - to another high-level source. I
> know there are dozens of apps, but I'm asking which one would be better,
> in your opinion.
I think you should investigate the Prolog programming language.
Prolog is a declarative language which is especially well suited to
complex textual manipulations, including translations. The translation
rules can be written in a (usually) very intelligible form, so that a
very complex translation can be built up from a (large) set of
relatively simple rules.
Because it is a full programming language, and most versions can
interface to other programming languages anyway, Prolog can be more
practical than seemingly 'easy' tools, in the end, for real life
There is a Prolog resources list on the web page:
I have used (and can can recommend) SWI Prolog, which is free:
I think SWI has a great interface and excellent debugger, but you may
wish to try out some other Prologs, some of which have a GUI IDE
(e.g. Amzi, Stawberry).
Return to the
Search the comp.compilers archives again.