summaryrefslogtreecommitdiffstats
path: root/mwsynrul.scm
diff options
context:
space:
mode:
authorJames LewisMoss <dres@debian.org>1999-12-06 19:32:57 -0500
committerBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:28 -0800
commitc394920caedf3dac1981bb6b10eeb47fd6e4bb21 (patch)
treef21194653a3554f747dde3df908df993c48db5a0 /mwsynrul.scm
parent926b1b647ac830660933a5e63eb52d4a2552e264 (diff)
parentbd9733926076885e3417b74de76e4c9c7bc56254 (diff)
downloadslib-c394920caedf3dac1981bb6b10eeb47fd6e4bb21.tar.gz
slib-c394920caedf3dac1981bb6b10eeb47fd6e4bb21.zip
Import Debian changes 2c7-1debian/2c7-1
slib (2c7-1) unstable; urgency=low * New upstream. * Add slibconfig back in. slib (2c6-2) unstable; urgency=low * Remove the slib$(VERSION).info file. Cut the diff back down to size. slib (2c6-1) unstable; urgency=low * New upstream. * Move docs to /usr/share. Up standards version. add /usr/doc symlink. Move info files. Remove undocumented link. slib (2c5-6) unstable; urgency=low * Lowercase two vars in yasyn.scm (Fixes bug #37222) slib (2c5-5) unstable; urgency=low * Fix it so string-index isn't defined (now there is a strsrch:string-index) (Fixes #38812) slib (2c5-4) unstable; urgency=low * Don't run slibconfig in postinst. (Fixes bug #38253, #37733, #37715, #37746, #37809, #37917, #38123, #38462) slib (2c5-3) unstable; urgency=low * Run slibconfig in postinst. It was commented out there, but I don't see any old bug reports on why it was commented out, so let's try again. :) (Fixes bug #37221) slib (2c5-2) unstable; urgency=low * Link mklibcat.scm to mklibcat. Fixes a problem with using slib with guile. slib (2c5-1) unstable; urgency=low * New upstream. slib (2c3-4) unstable; urgency=low * New maintainer.
Diffstat (limited to 'mwsynrul.scm')
-rw-r--r--mwsynrul.scm20
1 files changed, 10 insertions, 10 deletions
diff --git a/mwsynrul.scm b/mwsynrul.scm
index 1784441..bc5d7de 100644
--- a/mwsynrul.scm
+++ b/mwsynrul.scm
@@ -136,7 +136,7 @@
(loop P '() 0 k))
(define (mw:compile-template T vars env)
-
+
(define (loop T inserted referenced rank escaped? k)
(cond ((symbol? T)
(let ((x (mw:pattern-variable T vars)))
@@ -185,7 +185,7 @@
(lambda (T inserted referenced)
(k (vector T) inserted referenced))))
(else (k T inserted referenced))))
-
+
(define (loop1 T inserted referenced rank escaped? k)
(loop (car T)
inserted
@@ -208,7 +208,7 @@
T2)
inserted
referenced))))))
-
+
(loop T
'()
'()
@@ -227,7 +227,7 @@
(list (mw:make-patternvar (string->symbol "") 0)))
(define (mw:match F P env-def env-use)
-
+
(define (match F P answer rank)
(cond ((null? P)
(and (null? F) answer))
@@ -248,7 +248,7 @@
(and (vector? F)
(match (vector->list F) (vector-ref P 0) answer rank)))
(else (and (equal? F P) answer))))
-
+
(define (match1 F P answer rank)
(cond ((not (list? F)) #f)
((null? F)
@@ -268,11 +268,11 @@
(mw:ellipsis-pattern-vars P))
answer)
#f)))))
-
+
(match F P mw:empty-pattern-variable-environment 0))
(define (mw:rewrite T alist)
-
+
(define (rewrite T alist rank)
(cond ((null? T) '())
((pair? T)
@@ -288,7 +288,7 @@
((vector? T)
(list->vector (rewrite (vector-ref T 0) alist rank)))
(else T)))
-
+
(define (rewrite1 T alist rank)
(let* ((T1 (mw:ellipsis-template T))
(vars (mw:ellipsis-template-vars T))
@@ -296,7 +296,7 @@
vars)))
(map (lambda (alist) (rewrite T1 alist rank))
(make-columns vars rows alist))))
-
+
(define (make-columns vars rows alist)
(define (loop rows)
(if (null? (car rows))
@@ -313,7 +313,7 @@
(mw:error "Use of macro is not consistent with definition"
vars
rows)))
-
+
(rewrite T alist 0))
; Given a use of a macro, the syntactic environment of the use,