Re: Writing Compilers in Functional Languages

<YRassokhin@luxoft.com>
5 May 2005 10:10:01 -0400

          From comp.compilers

Related articles
[6 earlier articles]
Re: Writing Compilers in Functional Languages tarvydas@allstream.net (Paul Tarvydas) (2005-04-28)
Re: Writing Compilers in Functional Languages neelk@cs.cmu.edu (Neelakantan Krishnaswami) (2005-04-28)
Re: Writing Compilers in Functional Languages awwaiid@thelackthereof.org (Brock) (2005-04-28)
Re: Writing Compilers in Functional Languages torbenm@diku.dk (2005-04-30)
Re: Writing Compilers in Functional Languages neelk@cs.cmu.edu (Neelakantan Krishnaswami) (2005-05-02)
Re: Writing Compilers in Functional Languages alcremi@pobox.com (Alain Cremieux) (2005-05-03)
Re: Writing Compilers in Functional Languages YRassokhin@luxoft.com (2005-05-05)
Re: Writing Compilers in Functional Languages ali@olympe.ch (Ali Al-Shabibi) (2005-05-13)
| List of all articles for this month |
From: <YRassokhin@luxoft.com>
Newsgroups: comp.compilers
Date: 5 May 2005 10:10:01 -0400
Organization: Compilers Central
References: 05-04-068 05-04-084 05-04-098 05-05-015
Keywords: functional
Posted-Date: 05 May 2005 10:10:00 EDT

Hello,


IMHO, functional language is a better tool for compiler implementation
then procedural/OO one. So, I am agree with the author of the thread.
I've tried to make compilers using both general-purposed functional
languages and specialised compile compilers, based on functional
languages, and finally I have chosen GENTLE compiler compiler
(http://gentle.compilertools.net).


It provides compiler developer with metalanguage that allows easily
express concrete/abstract syntax, tokenization, token coordinates in
source code, parsing, global lists and tables, internal
representation(s), type checking, callgraph operations, any
optimizations, etc cetera - for up to code generation. Besides, C
subroutines (error messages, command line key processing ...) can be
easily used together with source code written in GENTLE, though this
metalanguage is of a very high level of abstraction. The thing is, it
allows to express these aspects in a more human-readable way, then
other tools of the kind.



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.