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

Comparing cvsroot/microscheme/init.scm (file contents):
Revision 1.28 by root, Wed Dec 2 12:16:24 2015 UTC vs.
Revision 1.29 by root, Wed Dec 2 17:01:18 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)
11 (if (macro? form) 10 (if (macro? form)
12 (macro-expand-all (macro-expand form)) 11 (macro-expand-all (macro-expand form))
13 form)) 12 form))
14 13
15(define *compile-hook* macro-expand-all) 14(define *compile-hook* macro-expand-all)
865 864
866;(load "test.scm") 865;(load "test.scm")
867 866
868(load "test.scm") 867(load "test.scm")
869 868
870(gc-verbose #f) 869(gc-verbose #t)
871 870

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines