Re: Incomplete compiler?

Bernhard Pfahringer <bernhard@cs.waikato.ac.nz>
1 May 2002 23:23:04 -0400

          From comp.compilers

Related articles
Incomplete compiler? Uwe.Uta.Altenburg@t-online.de (Uwe Altenburg) (2002-04-24)
Re: Incomplete compiler? haberg@matematik.su.se (2002-04-29)
Re: Incomplete compiler? haberg@matematik.su.se (2002-05-01)
Re: Incomplete compiler? bernhard@cs.waikato.ac.nz (Bernhard Pfahringer) (2002-05-01)
Re: Incomplete compiler? haberg@matematik.su.se (2002-05-03)
Re: Incomplete compiler? Martin.Ward@durham.ac.uk (2002-05-03)
Re: Incomplete compiler? idbaxter@semdesigns.com (Ira D. Baxter) (2002-05-03)
Re: Incomplete compiler? tfb@apocalypse.OCF.Berkeley.EDU (2002-05-04)
Re: Incomplete compiler? haberg@matematik.su.se (2002-05-04)
| List of all articles for this month |

From: Bernhard Pfahringer <bernhard@cs.waikato.ac.nz>
Newsgroups: comp.compilers
Date: 1 May 2002 23:23:04 -0400
Organization: Compilers Central
References: 02-04-147
Keywords: design, Lisp, comment
Posted-Date: 01 May 2002 23:23:03 EDT

Uwe Altenburg <Uwe.Uta.Altenburg@t-online.de> wrote:
>I would like to know, if there is a compiler (and a language) where I
>tell the compiler in the source-code how to compile the source? Let's
>say an "incomplete" or "simple" compiler that can be extended if
>needed or is this a "perpetuum mobile"?
>
>Thanks for comments
>Uwe
>[Look at the work done in the 1970s on extensible languages, where
>you could add BNF and semantics right in the middle of your program.
>It seemed like a cool idea but turned out to be useless. -John]


Actually there is a language where this capability is present and
considered essential by most advanced users:


Common Lisp with its macros and compiler-macros
  see e.g.
http://www-2.cs.cmu.edu/Groups/AI/html/hyperspec/HyperSpec/Body/mac_defmacro.html
http://www-2.cs.cmu.edu/Groups/AI/html/hyperspec/HyperSpec/Body/mac_define-compiler-macro.html


Bernhard
---------------------------------------------------------------------
Bernhard Pfahringer, Dept. of Computer Science, University of Waikato
http://www.cs.waikato.ac.nz/~bernhard +64 7 838 4041
[Well, yeah, Lisp. Do people write their own macro packages, or are
there popular ones that define dialects that programmers all use? -John]


Post a followup to this message

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