added -nofun and -nocat options to vt

This commit is contained in:
aarne
2008-06-22 14:15:06 +00:00
parent 16fd61ce00
commit 7d1ee74958
4 changed files with 30 additions and 34 deletions

View File

@@ -34,6 +34,9 @@ lookType :: PGF -> CId -> Type
lookType pgf f =
fst $ lookMap (error $ "lookType " ++ show f) f (funs (abstract pgf))
lookValCat :: PGF -> CId -> CId
lookValCat pgf = valCat . lookType pgf
lookParser :: PGF -> CId -> Maybe ParserInfo
lookParser pgf lang = Map.lookup lang (concretes pgf) >>= parser