Mercurial > urweb
comparison src/explify.sml @ 718:f152f215a02c
style declarations
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 12 Apr 2009 10:08:11 -0400 |
parents | d8217b4cb617 |
children | acb8537f58f0 |
comparison
equal
deleted
inserted
replaced
717:e28637743279 | 718:f152f215a02c |
---|---|
185 | L.DSequence (nt, x, n) => SOME (L'.DSequence (nt, x, n), loc) | 185 | L.DSequence (nt, x, n) => SOME (L'.DSequence (nt, x, n), loc) |
186 | L.DClass (x, n, k, c) => SOME (L'.DCon (x, n, | 186 | L.DClass (x, n, k, c) => SOME (L'.DCon (x, n, |
187 (L'.KArrow (explifyKind k, (L'.KType, loc)), loc), explifyCon c), loc) | 187 (L'.KArrow (explifyKind k, (L'.KType, loc)), loc), explifyCon c), loc) |
188 | L.DDatabase s => SOME (L'.DDatabase s, loc) | 188 | L.DDatabase s => SOME (L'.DDatabase s, loc) |
189 | L.DCookie (nt, x, n, c) => SOME (L'.DCookie (nt, x, n, explifyCon c), loc) | 189 | L.DCookie (nt, x, n, c) => SOME (L'.DCookie (nt, x, n, explifyCon c), loc) |
190 | L.DStyle (nt, x, n, c) => SOME (L'.DStyle (nt, x, n, explifyCon c), loc) | |
190 | 191 |
191 and explifyStr (str, loc) = | 192 and explifyStr (str, loc) = |
192 case str of | 193 case str of |
193 L.StrConst ds => (L'.StrConst (List.mapPartial explifyDecl ds), loc) | 194 L.StrConst ds => (L'.StrConst (List.mapPartial explifyDecl ds), loc) |
194 | L.StrVar n => (L'.StrVar n, loc) | 195 | L.StrVar n => (L'.StrVar n, loc) |