primitive pattern matching

This commit is contained in:
aarne
2007-03-27 20:54:49 +00:00
parent 7c30d211c3
commit fd518ed2a3
9 changed files with 61 additions and 29 deletions

View File

@@ -27,9 +27,10 @@ compDef d = case d of
addOper f exp
DPar p cs -> do
v <- sizeParType cs
addTypedef p $ TVal $ toInteger $ fst v
let ty = TBas p
addParsize ty $ fst v
vals <- allParVals cs
addPartype (TBas p) vals
addPartype ty vals
mapM_ (uncurry addParVal) (zip vals (map VPar [0..]))
DOpty a ty -> do
addTypedef a ty