Tree @cme/main (Download .tar.gz)
- debian
- alist.scm
- alist.txi
- alistab.scm
- ANNOUNCE
- array.scm
- array.txi
- arraymap.scm
- arraymap.txi
- batch.scm
- Bev2slib.scm
- bigloo.init
- break.scm
- byte.scm
- byte.txi
- bytenumb.scm
- bytenumb.txi
- ChangeLog
- chap.scm
- chap.txi
- charplot.scm
- chez.init
- cie1931.xyz
- cie1964.xyz
- ciesia.dat
- ciesid65.dat
- clrnamdb.scm
- cltime.scm
- coerce.scm
- coerce.txi
- collect.scm
- collectx.scm
- color.scm
- color.txi
- colornam.scm
- colornam.txi
- colorspc.scm
- comlist.scm
- comparse.scm
- comparse.txi
- configure
- COPYING
- crc.scm
- cring.scm
- cvs.scm
- cvs.txi
- daylight.scm
- daylight.txi
- db2html.scm
- db2html.txi
- dbcom.scm
- dbinterp.scm
- dbrowse.scm
- dbsyn.scm
- dbutil.scm
- dbutil.txi
- debug.scm
- defmacex.scm
- determ.scm
- determ.txi
- dft.scm
- dft.txi
- differ.scm
- differ.txi
- dirs.scm
- dirs.txi
- dwindtst.scm
- dynamic.scm
- dynwind.scm
- elk.init
- eval.scm
- factor.scm
- factor.txi
- FAQ
- fdl.texi
- fluid-let.scm
- fluidlet.scm
- format.scm
- format.texi
- formatst.scm
- gambit.init
- genwrite.scm
- getopt.scm
- getparam.scm
- getparam.txi
- glob.scm
- glob.txi
- grapheps.ps
- grapheps.scm
- grapheps.txi
- guile-2.init
- guile.init
- guile.use
- hash.scm
- hashtab.scm
- hashtab.txi
- html4each.scm
- html4each.txi
- htmlform.scm
- htmlform.txi
- http-cgi.scm
- http-cgi.txi
- indexes.texi
- iso8601.scm
- iso8601.txi
- jscheme.init
- kawa.init
- limit.scm
- limit.texi
- lineio.scm
- lineio.txi
- linterp.scm
- linterp.txi
- logical.scm
- macrotst.scm
- macscheme.init
- macwork.scm
- Makefile
- manifest.scm
- manifest.txi
- matfile.scm
- matfile.txi
- math-integer.scm
- math-integer.txi
- math-real.scm
- mbe.scm
- minimize.scm
- minimize.txi
- mitscheme.init
- mkclrnam.scm
- mkclrnam.txi
- mklibcat.scm
- mkpltcat.scm
- modular.scm
- modular.txi
- mulapply.scm
- mularg.scm
- mwdenote.scm
- mwexpand.scm
- mwsynrul.scm
- mzscheme.init
- nbs-iscc.txt
- ncbi-dna.scm
- ncbi-dna.txi
- null.scm
- obj2str.scm
- obj2str.txi
- object.scm
- object.texi
- paramlst.scm
- peanosfc.scm
- peanosfc.txi
- phil-spc.scm
- phil-spc.txi
- pnm.scm
- pnm.txi
- pp.scm
- ppfile.scm
- prec.scm
- printf.scm
- priorque.scm
- priorque.txi
- process.scm
- promise.scm
- pscheme.init
- psxtime.scm
- qp.scm
- queue.scm
- queue.txi
- r4rsyn.scm
- randinex.scm
- randinex.txi
- random.scm
- random.txi
- ratize.scm
- ratize.txi
- rdms.scm
- README
- recobj.scm
- record.scm
- repl.scm
- require.scm
- resenecolours.txt
- rmdsff.scm
- rmdsff.txi
- root.scm
- RScheme.init
- s7.init
- saturate.txt
- sc2.scm
- sc4opt.scm
- sc4sc3.scm
- scaexpp.scm
- scaglob.scm
- scainit.scm
- scamacr.scm
- scanf.scm
- scaoutp.scm
- scheme2c.init
- scheme48.init
- schmooz.scm
- schmooz.texi
- scm.init
- scmacro.scm
- scsh.init
- selfset.scm
- sierpinski.scm
- simetrix.scm
- sisc.init
- slib.1
- slib.doc
- SLIB.ico
- slib.info
- slib.nsi
- slib.sh
- slib.spec
- slib.texi
- solid.scm
- solid.txi
- sort.scm
- soundex.scm
- srfi-1.scm
- srfi-1.txi
- srfi-11.scm
- srfi-2.scm
- srfi-23.scm
- srfi-39.scm
- srfi-61.scm
- srfi-8.scm
- srfi-9.scm
- srfi.scm
- srfi.txi
- stdio.scm
- STk.init
- strcase.scm
- strport.scm
- strsrch.scm
- structure.scm
- subarray.scm
- subarray.txi
- syncase.sh
- synchk.scm
- synclo.scm
- synrul.scm
- t3.init
- Template.scm
- timecore.scm
- timezone.scm
- top-refs.scm
- top-refs.txi
- trace.scm
- transact.scm
- transact.txi
- tree.scm
- tree.txi
- trnscrpt.scm
- tsort.scm
- tsort.txi
- tzfile.scm
- umbscheme.init
- uri.scm
- uri.txi
- values.scm
- version.txi
- vet.scm
- vet.txi
- vscm.init
- withfile.scm
- wttree-test.scm
- wttree.scm
- xml-parse.scm
- xml-parse.txi
- yasyn.scm
scainit.scm @cme/main — raw · history · blame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | ;;; "scainit.scm" Syntax-case macros port to SLIB -*- Scheme -*- ;;; Copyright (C) 1992 R. Kent Dybvig ;;; ;;; Permission to copy this software, in whole or in part, to use this ;;; software for any lawful purpose, and to redistribute this software ;;; is granted subject to the restriction that all copies made of this ;;; software must include this copyright notice in full. This software ;;; is provided AS IS, with NO WARRANTY, EITHER EXPRESS OR IMPLIED, ;;; INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY ;;; OR FITNESS FOR ANY PARTICULAR PURPOSE. IN NO EVENT SHALL THE ;;; AUTHORS BE LIABLE FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES OF ANY ;;; NATURE WHATSOEVER. ;;; From: Harald Hanche-Olsen <hanche@imf.unit.no> ;;; compat.ss ;;; Robert Hieb & Kent Dybvig ;;; 92/06/18 (require 'common-list-functions) ;to pick up EVERY (define syncase:andmap every) ; In Chez Scheme "(syncase:void)" returns an object that is ignored by the ; REP loop. It is returned whenever a "nonspecified" value is specified ; by the standard. The following should pick up an appropriate value. (define syncase:void (let ((syncase:void-object (if #f #f))) (lambda () syncase:void-object))) (define syncase:eval-hook slib:eval) (define syncase:error-hook slib:error) (define syncase:new-symbol-hook (let ((c 0)) (lambda (string) (set! c (+ c 1)) (string->symbol (string-append string ":Sca" (number->string c)))))) (define syncase:put-global-definition-hook #f) (define syncase:get-global-definition-hook #f) (let ((*macros* '())) (set! syncase:put-global-definition-hook (lambda (symbol binding) (let ((pair (assq symbol *macros*))) (if pair (set-cdr! pair binding) (set! *macros* (cons (cons symbol binding) *macros*)))))) (set! syncase:get-global-definition-hook (lambda (symbol) (let ((pair (assq symbol *macros*))) (and pair (cdr pair)))))) ;;;! expand.pp requires list* (define (syncase:list* . args) (if (null? args) '() (let ((r (reverse args))) (append (reverse (cdr r)) (car r) ; Last arg '())))) ; Make sure the last arg is copied (define syntax-error syncase:error-hook) (define impl-error slib:error) (define base:eval slib:eval) ;@ (define syncase:eval base:eval) (define macro:eval base:eval) (define syncase:expand #f) (define macro:expand #f) (define (syncase:expand-install-hook expand) (set! syncase:eval (lambda (x) (base:eval (expand x)))) (set! macro:eval syncase:eval) (set! syncase:expand expand) (set! macro:expand syncase:expand)) ;;; We Need This for bootstrapping purposes: ;@ (define (syncase:load <pathname>) (slib:eval-load <pathname> syncase:eval)) (define macro:load syncase:load) ;@ (define syncase:sanity-check #f) ;;; LOADING THE SYSTEM ITSELF: (slib:load (in-vicinity (program-vicinity) "scaoutp")) (slib:load (in-vicinity (program-vicinity) "scaglob")) (slib:load (in-vicinity (program-vicinity) "scaexpp")) (let ((scmhere (lambda (file) (in-vicinity (library-vicinity) file)))) (syncase:expand-install-hook expand-syntax) (syncase:load (scmhere "scamacr")) (set! syncase:sanity-check (lambda () (syncase:load (scmhere "sca-exp")) (syncase:expand-install-hook expand-syntax) (syncase:load (scmhere "sca-macr"))))) (provide 'syntax-case) (provide 'macro) |