Skip to content

Commit 271991e

Browse files
committed
added missing cases for VMarkup
1 parent e59ae98 commit 271991e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/compiler/api/GF/Compile/Compute/Concrete2.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,10 @@ bubble v = snd (bubble v)
321321
in (Map.insert c (length vs,1) union, addVariants (VFV c vs') union)
322322
bubble (VAlts v vs) = lift1L2 VAlts v vs
323323
bubble (VStrs vs) = liftL VStrs vs
324+
bubble (VMarkup tag attrs vs) =
325+
let (union1,attrs') = mapAccumL descend' Map.empty attrs
326+
(union2,vs') = mapAccumL descend union1 vs
327+
in (union2, VMarkup tag attrs' vs')
324328
bubble (VSymCat d i0 vs) =
325329
let (union,vs') = mapAccumL descendC Map.empty vs
326330
in (union, addVariants (VSymCat d i0 vs') union)
@@ -832,6 +836,7 @@ ppValue q d (VPattType _) = pp "VPattType"
832836
ppValue q d (VFV i vs) = prec d 4 ("variants" <+> pp i <+> braces (fsep (punctuate ';' (map (ppValue q 0) vs))))
833837
ppValue q d (VAlts e xs) = prec d 4 ("pre" <+> braces (ppValue q 0 e <> ';' <+> fsep (punctuate ';' (map (ppAltern q) xs))))
834838
ppValue q d (VStrs _) = pp "VStrs"
839+
ppValue q d (VMarkup _ _ _) = pp "VMarkup"
835840
ppValue q d (VSymCat i r rs) = pp '<' <> pp i <> pp ',' <> pp r <> pp '>'
836841
ppValue q d (VError msg) = prec d 4 (pp "error" <+> ppTerm q 5 (K (show msg)))
837842
ppValue q d (VCRecType ass) = pp "VCRecType"

0 commit comments

Comments
 (0)