lispdoc - results for macroexpand |
(macroexpand form &optional env) | Function: Repetitively call MACROEXPAND-1 until the form can no longer be expanded. Returns the final resultant form, and T if it was expanded. ENV is the lexical environment to expand in, or NIL (the default) for the null environment.
|
| Mentioned in: CLtL2 - 20.1. Run-Time Evaluation of Forms CLtL2 - 5.1.3. Special Forms CLtL2 - 7.2. Generalized Variables CLtL2 - 7.5. Establishing New Variable Bindings CLtL2 - 8. Macros CLtL2 - 8.1. Macro Definition CLtL2 - 8.2. Macro Expansion CLtL2 - 8.4. Compiler Macros CLtL2 - 8.5. Environments HyperSpec - Function MACROEXPAND, MACROEXPAND-1 PCL - beyond simple macros Successful Lisp - lesson 8 | |
(macroexpand-1 form &optional env) | Function: If form is a macro (or symbol macro), expand it once. Return two values, the expanded form and a T-or-NIL flag indicating whether the form was, in fact, a macro. ENV is the lexical environment to expand in, which defaults to the null environment.
|
| Mentioned in: CLtL2 - 5.1.3. Special Forms CLtL2 - 7.2. Generalized Variables CLtL2 - 7.5. Establishing New Variable Bindings CLtL2 - 8.1. Macro Definition CLtL2 - 8.2. Macro Expansion CLtL2 - 8.4. Compiler Macros HyperSpec - Function MACROEXPAND, MACROEXPAND-1 On Lisp - Testing Macroexpansion PCL - generating the expansion PCL - plugging the leaks PCL - removing duplication and winning big | |
*macroexpand-hook | |
| Mentioned in: HyperSpec - Variable *MACROEXPAND-HOOK | |
*macroexpand-hook* | Variable: The value of this variable must be a designator for a function that can take three arguments, a macro expander function, the macro form to be expanded, and the lexical environment to expand in. The function should return the expanded form. This function is called by MACROEXPAND-1 whenever a runtime expansion is needed. Initially this is set to FUNCALL.
|
| Mentioned in: CLtL2 - 20.1. Run-Time Evaluation of Forms CLtL2 - 8.2. Macro Expansion CLtL2 - 8.4. Compiler Macros CLtL2 - 8.5. Environments | |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |