eval-when special form
authorRed Daly <reddaly@gmail.com>
Fri, 20 Jul 2007 20:35:32 +0000 (20:35 +0000)
committerRed Daly <reddaly@gmail.com>
Fri, 20 Jul 2007 20:35:32 +0000 (20:35 +0000)
commita98e58eea2e3516e5c9f2f5b2d38f96ea0f7c03f
tree6899f0abe8a60dcdb5631c8c3c0a199da91a45ce
parent9da682ca74e58c7a40c0a5db0399b10ad6eb29ac
eval-when special form

Added the EVAL-WHEN special form to the Parenscript language.  It
works similarly to the EVAL-WHEN form in Lisp.  It has the following
form:

(eval-when body-forms-language? (situation*) body-forms*)

SITUATION is either :compile-toplevel or :execute.

BODY-FORMS-LANGUAGE is optional and either :parenscript or :lisp.  It
defaults to :lisp when :COMPILE-TOPLEVEL is specified and :parenscript
when :EXECUTE is specified.

Parenscript's EVAL-WHEN is relevant when loading toplevel forms,
either from Parenscript files or from within Lisp.
src/compilation-interface.lisp
src/macrology.lisp
src/parser.lisp