Re: Choosing a language for compiler design

Tim Wilson 6093 <ukcwitd@cambridge.simoco.com>
18 Oct 1996 00:05:37 -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)
Re: Choosing a language for compiler design pbrisset@apoge.eis.enac.dgac.fr (Pascal Brisset) (1996-10-24)
[3 later articles]
| List of all articles for this month |
From: Tim Wilson 6093 <ukcwitd@cambridge.simoco.com>
Newsgroups: comp.compilers
Date: 18 Oct 1996 00:05:37 -0400
Organization: Simoco Telecommunications Limited
References: 96-10-075
Keywords: design, 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.
> I have versions of Yacc/Lex for C, C++, Turbo Pascal and Ada.


... and byacc can output Perl too.


I'm nearing the end of a compiler project using Perl 5 (and flex and
byacc). I suggest you add Perl 5 to your list of candidates:


  -- Perl :
    For:
        Automatic storage management; safe pointers
        Good data structure support: lists, strings, hash tables (ie
                symbol tables) and objects (with inheritance).
        Modular.
        Quick development cycle.


    Against:
        You have to code (run-time) type checking yourself.
        Fair stability: in round figures, I find one bug in perl per 10000 SLOC.
        Compilation-time penalty every time you run your program.
        Execution slower than fully-compiled code.


In our project, short development time was the highest priority, and I
have no regrets about choosing Perl 5.


Tim
--
Tim Wilson, Simoco Telecommunications Ltd, Cambridge, UK
--


Post a followup to this message

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