Re: Making my first compiler

torbenm@app-0.diku.dk (=?iso-8859-1?q?Torben_=C6gidius_Mogensen?=)
27 Nov 2006 17:44:47 -0500

          From comp.compilers

Related articles
[3 earlier articles]
Re: Making my first compiler idknow@gmail.com (idknow@gmail.com) (2006-09-18)
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)
[1 later articles]
| List of all articles for this month |

From: torbenm@app-0.diku.dk (=?iso-8859-1?q?Torben_=C6gidius_Mogensen?=)
Newsgroups: comp.compilers
Date: 27 Nov 2006 17:44:47 -0500
Organization: Department of Computer Science, University of Copenhagen
References: 06-09-087 06-11-097 06-11-102
Keywords: practice

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.


Torben



Post a followup to this message

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