diff src/explify.sml @ 41:1405d8c26790

Beginning of functor elaboration
author Adam Chlipala <adamc@hcoop.net>
date Thu, 19 Jun 2008 16:04:28 -0400
parents d16ef24de78b
children b3fbbc6cb1e5
line wrap: on
line diff
--- a/src/explify.sml	Thu Jun 19 15:15:00 2008 -0400
+++ b/src/explify.sml	Thu Jun 19 16:04:28 2008 -0400
@@ -92,6 +92,7 @@
     case sgn of
         L.SgnConst sgis => (L'.SgnConst (map explifySgi sgis), loc)
       | L.SgnVar n => (L'.SgnVar n, loc)
+      | L.SgnFun _ => raise Fail "Explify functor signature"
       | L.SgnError => raise Fail ("explifySgn: SgnError at " ^ EM.spanToString loc)
 
 fun explifyDecl (d, loc : EM.span) =
@@ -107,6 +108,7 @@
         L.StrConst ds => (L'.StrConst (map explifyDecl ds), loc)
       | L.StrVar n => (L'.StrVar n, loc)
       | L.StrProj (str, s) => (L'.StrProj (explifyStr str, s), loc)
+      | L.StrFun _ => raise Fail "Explify functor"
       | L.StrError => raise Fail ("explifyStr: StrError at " ^ EM.spanToString loc)
 
 val explify = map explifyDecl