ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/microscheme/init.scm
(Generate patch)

Comparing microscheme/init.scm (file contents):
Revision 1.27 by root, Wed Dec 2 07:43:46 2015 UTC vs.
Revision 1.28 by root, Wed Dec 2 12:16:24 2015 UTC

5;;;; Utility to ease macro creation 5;;;; Utility to ease macro creation
6(define (macro-expand form) 6(define (macro-expand form)
7 ((eval (get-closure-code (eval (car form)))) form)) 7 ((eval (get-closure-code (eval (car form)))) form))
8 8
9(define (macro-expand-all form) 9(define (macro-expand-all form)
10 (display form)
10 (if (macro? form) 11 (if (macro? form)
11 (macro-expand-all (macro-expand form)) 12 (macro-expand-all (macro-expand form))
12 form)) 13 form))
13 14
14(define *compile-hook* macro-expand-all) 15(define *compile-hook* macro-expand-all)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines