|
|
Embedding Hygiene-Compatible Macros in an Unhygienic Macro System
|
|
|
|
|
نویسنده
|
Costanza Pascal ,D’Hondt Theo
|
منبع
|
journal of universal computer science - 2010 - دوره : 16 - شماره : 2 - صفحه:271 -295
|
چکیده
|
It is known that the essential ingredients of a lisp-style unhygienic macro system can be expressed in terms of advanced hygienic macro systems. we show that the reverse is also true: we present a model of a core unhygienic macro system, on top of which a hygiene-compatible macro system can be built, without changing the internals of the core macro system and without using a code walker. to achieve this, the internal representation of source code as lisp s-expressions does not need to be changed. the major discovery is the fact that symbol macros can be used in conjunction with local macro environments to bootstrap a hygiene-compatible macro system. we also discuss a proof-of-concept implementation in common lisp and give historical notes.
|
کلیدواژه
|
common Lisp ,hygiene-compatible macro systems ,scheme
|
آدرس
|
Vrije Universiteit Brussel, Belgium, Vrije Universiteit Brussel, Belgium
|
پست الکترونیکی
|
theo.d’hondt@vub.ac.be
|
|
|
|
|
|
|
|
|
|
|
|
Authors
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|