refactor PGF.Expr and PGF.TypeCheck so that the evaluator always has access to the meta store

This commit is contained in:
krasimir
2010-02-22 15:50:41 +00:00
parent 415375f35c
commit 5d2b204246
5 changed files with 104 additions and 99 deletions

View File

@@ -293,7 +293,7 @@ complete pgf from typ input =
-- | Converts an expression to normal form
compute :: PGF -> Expr -> Expr
compute pgf = PGF.Data.normalForm (funs (abstract pgf)) 0 []
compute pgf = PGF.Data.normalForm (funs (abstract pgf),const Nothing) 0 []
browse :: PGF -> CId -> Maybe (String,[CId],[CId])
browse pgf id = fmap (\def -> (def,producers,consumers)) definition