Re: Choosing a language for compiler design

torbenm@diku.dk (Torben AEgidius Mogensen)
18 Oct 1996 00:03:38 -0400

          From comp.compilers

Related articles
Choosing a language for compiler design pjmlp@students.si.fct.unl.pt (1996-10-16)
Re: Choosing a language for compiler design sestoft@ellemose.dina.kvl.dk (1996-10-18)
Re: Choosing a language for compiler design torbenm@diku.dk (1996-10-18)
Re: Choosing a language for compiler design ukcwitd@cambridge.simoco.com (Tim Wilson 6093) (1996-10-18)
Re: Choosing a language for compiler design icedancer@ibm.net (1996-10-18)
Re: Choosing a language for compiler design bmd@cs.kuleuven.ac.be (Bart Demoen) (1996-10-20)
Re: Choosing a language for compiler design jsa@alexandria.organon.com (1996-10-20)
Re: Choosing a language for compiler design jsa@alexandria.organon.com (1996-10-20)
Re: Choosing a language for compiler design joshua@intrinsa.com (Joshua Levy) (1996-10-20)
[4 later articles]
| List of all articles for this month |
From: torbenm@diku.dk (Torben AEgidius Mogensen)
Newsgroups: comp.compilers
Date: 18 Oct 1996 00:03:38 -0400
Organization: Department of Computer Science, U of Copenhagen
References: 96-10-075
Keywords: tools

pjmlp@students.si.fct.unl.pt (Paulo Jose Matos Lopes Pinto - Aluno Eng. Informatica) writes:


> Now that I have an Yacc/Lex files for Oberon, I face the problem of
> choosing a language for its implementation.


My suggestion is SML (Standard ML):


For:
  It has a good type system with polymorphism (similar to Ada generics).
  It has a good module system.
  It has exceptions.
  Data structures are easily handled, using pattern matching and
  garbage collection.


Against:
  It's not widely accepted by some people.
  It hasn't as many tools as C++.


>[Depends what your goals are. If it's maximum portability, write it in C.
>If you want to get it working quickly, write it in Lisp. -John]


SML has most of the advantages of Lisp, plus good type and module
systems. Versions of Lex and Yacc exist for SML (either for SML of New
Jersey or for Moscow ML). We use Moscow ML for our undergraduate
compiler class at the University of Copenhagen.


Torben Mogensen (torbenm@diku.dk)
--


Post a followup to this message

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