Add KNOWN-DECLARATION guarantee.
authorJoe Marshall <jmarshall@alum.mit.edu>
Tue, 9 Feb 2010 23:19:19 +0000 (15:19 -0800)
committerJoe Marshall <jmarshall@alum.mit.edu>
Tue, 9 Feb 2010 23:19:19 +0000 (15:19 -0800)
src/sf/pardec.scm
src/sf/sf.pkg

index 5b2694b8f4363d0c58a857b7c682b802b77a556a..35158a8b70d7705b2e990218c5e59edf7753d329 100644 (file)
@@ -154,6 +154,12 @@ USA.
 
 (define known-declarations
   '())
+
+(define (known-declaration? operation)
+  (or (eq? operation 'EXPAND) ; this one is special 
+      (assq operation known-declarations)))
+
+(define-guarantee known-declaration "known declaration")
 \f
 ;;;; Integration Declarations
 
index 1e05367d7fabca3a7405533189f77de58f14d63b..3c5c05beee1b1a2f87e092c2ac3b4abde4afbec7 100644 (file)
@@ -113,6 +113,7 @@ USA.
          declarations/map
          declarations/original
          declarations/parse
+         guarantee-known-declaration
          operations->external))
 
 (define-package (scode-optimizer copy)