Related articles |
---|
[7 earlier articles] |
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: | Hans-Peter Diettrich <DrDiettrich1@aol.com> |
Newsgroups: | comp.compilers |
Date: | 1 Dec 2006 09:18:02 -0500 |
Organization: | Compilers Central |
References: | 06-09-087 06-11-097 06-11-102 06-11-112 06-11-119 06-11-129 |
Keywords: | practice |
Posted-Date: | 01 Dec 2006 09:18:02 EST |
Matthias Blume wrote:
> What features of the language that you are trying to compile would
> affect the choice of the language that one uses to write the
> compiler?
At least those features that prevent or discourage to write an compiler,
using that particular language.
A useful language should allow for things like:
[general]
- Turing completeness
- arrays, dynamic memory and pointers/references
- structured data types, or objects
- structured statements (loops, subroutines...)
- file handling (text and binary)
[binary output]
- low level (fixed size...) data types
- logical operators (shift...)
[compiler program]
- multi-module source organization
- usage of libraries
- debugger
I wouldn't suggest to write an compiler for tiny Basic in just that
language ;-)
DoDi
Return to the
comp.compilers page.
Search the
comp.compilers archives again.