- Timestamp:
- 09/18/20 15:10:06 (5 months ago)
- Location:
- release/5/expand-full/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
release/5/expand-full/trunk/expand-full.egg
r38961 r39042 3 3 4 4 ((synopsis "Full macro expansion") 5 (version "2.1. 0")5 (version "2.1.1") 6 6 (category misc) 7 7 (author "[[kon lovett]]") … … 12 12 (extension expand-full 13 13 (types-file) 14 (csc-options "-O 3" "-d1" "-strict-types" "-no-procedure-checks") ) ) )14 (csc-options "-O4" "-d0" "-strict-types" "-no-procedure-checks") ) ) ) -
release/5/expand-full/trunk/expand-full.scm
r39010 r39042 25 25 (import (chicken syntax)) 26 26 (import (only (chicken platform) feature?)) 27 #; ;NOTE since could be used in a compiled context cannot require a "non-existing" module28 (import (only (chicken csi) toplevel-command))29 27 (import (only (chicken pretty-print) pretty-print)) 30 28 (import (only (srfi 1) proper-list?)) … … 41 39 (define (across func form) 42 40 (cond 43 ((vector? form) (vector-map (lambda (_ x) (func x)) form)) 44 ((pair? form) (safe-list-map func form)) 45 (else form)) ) 41 ((vector? form) 42 (vector-map (lambda (_ x) (func x)) form)) 43 ((pair? form) 44 (print "across " form) 45 (if (or (eq? 'quote (car form)) (eq? '##core#quote (car form))) 46 form 47 (safe-list-map func form))) 48 (else 49 form)) ) 46 50 47 51 (define (down stpr form expanded) … … 77 81 78 82 (when (feature? 'csi) 79 (chicken.csi#toplevel-command 'x* 83 ;; Load csi library at runtime here in Chicken 5 only after we confirm 84 ;; csi is running. Otherwise chicken.csi load fails. 85 (import (only (chicken csi) toplevel-command)) 86 (toplevel-command 'x* 80 87 ;FIXME need apropos like csi argument handler 81 88 (lambda () (ppexpand* (read)))
Note: See TracChangeset
for help on using the changeset viewer.