Related articles |
---|
[4 earlier articles] |
Re: Making my first compiler torbenm@app-1.diku.dk (2006-09-18) |
Re: Making my first compiler jeffrey.kenton@comcast.net (Jeff Kenton) (2006-09-25) |
Re: Making my first compiler firefly@diku.dk (Peter \Firefly\Lund) (2006-09-25) |
Re: Making my first compiler monnier@iro.umontreal.ca (Stefan Monnier) (2006-11-23) |
Re: Making my first compiler ValdoFerrari@libero.it (Valdo Ferrari) (2006-11-24) |
Re: Making my first compiler torbenm@app-0.diku.dk (2006-11-27) |
Re: Making my first compiler z2345678998765432y@sbcglobal.net (John) (2006-11-29) |
Re: Making my first compiler torbenm@app-3.diku.dk (2006-11-29) |
Re: Making my first compiler blume@tti-c.org (Matthias Blume) (2006-11-29) |
Re: Making my first compiler DrDiettrich1@aol.com (Hans-Peter Diettrich) (2006-12-01) |
Re: Making my first compiler blume@tti-c.org (Matthias Blume) (2006-12-01) |
Re: Making my first compiler DrDiettrich1@aol.com (Hans-Peter Diettrich) (2006-12-03) |
Re: Making my first compiler stevem@ans.com.au (Steve Murray) (2006-12-03) |
From: | John <z2345678998765432y@sbcglobal.net> |
Newsgroups: | comp.compilers |
Date: | 29 Nov 2006 00:51:48 -0500 |
Organization: | SBC http://yahoo.sbc.com |
References: | 06-09-087 06-11-097 06-11-102 06-11-112 |
Keywords: | practice |
Posted-Date: | 29 Nov 2006 00:51:48 EST |
On 27 Nov 2006 17:44:47 -0500, torbenm@app-0.diku.dk (Torben Ęgidius
Mogensen) wrote:
>Valdo Ferrari <ValdoFerrari@libero.it> writes:
>
>> Il Thu, 23 Nov 2006 20:38:42 -0500, Stefan Monnier ha scritto:
>>> My main recommendation for you would be: don't write your compiler in
>>> C. ... You'll be better off writing it in a higher-level language.
>>
>> Which language you suggest to write compilers today?
>>
>> [I'd suggest something that handles the storage management and data
>> structures, like perl or python. -John]
>
>Or, even better, SML, O'Caml, Haskell, etc.
>
>These have the following helpful features for compiler writers:
>
> - Automatic memory management.
>
> - Sum-of-products datatypes with pattern-matching.
>
> - Compact expression-style construction of nodes in syntax trees etc.
>
> - Type inference.
>
> - Polymorphic types.
>
> - Rich set of combinators for processing lists.
>
> - Powerful module or type-class systems.
Rather than just picking out a language in which to write a compiler,
it would be advisable to fully understand the features and
requirements of the programming language you are trying to compile.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.