making parsing ImperC work

This commit is contained in:
aarne
2004-09-22 20:42:21 +00:00
parent 8cd24e0b91
commit 6c3c14dfcf
6 changed files with 51 additions and 31 deletions

View File

@@ -168,6 +168,7 @@ instance Print Val where
prt (VClos env e) = case e of
Meta _ -> prt_ e ++ prEnv env
_ -> prt_ e ---- ++ prEnv env ---- for debugging
prt VType = "Type"
prv1 v = case v of
VApp _ _ -> prParenth $ prt v

View File

@@ -59,7 +59,7 @@ prToken t = case t of
PT _ (TD s) -> s
PT _ (TC s) -> s
PT _ (T_LString s) -> s
_ -> show t
eitherResIdent :: (String -> Tok) -> String -> Tok
eitherResIdent tv s = if isResWord s then (TS s) else (tv s) where