diff options
| author | aarne <unknown> | 2004-09-22 20:42:21 +0000 |
|---|---|---|
| committer | aarne <unknown> | 2004-09-22 20:42:21 +0000 |
| commit | d5b4230d6dbee8c03eedf8d181dfa2badf1a954b (patch) | |
| tree | b2d8fd926161d4d904fbf42aa25261ac90691e40 /src | |
| parent | a0116fd288640a47166b5104b46d9b6fa510a563 (diff) | |
making parsing ImperC work
Diffstat (limited to 'src')
| -rw-r--r-- | src/GF/Grammar/PrGrammar.hs | 1 | ||||
| -rw-r--r-- | src/GF/Source/LexGF.hs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/GF/Grammar/PrGrammar.hs b/src/GF/Grammar/PrGrammar.hs index c49553425..ec01cdab5 100644 --- a/src/GF/Grammar/PrGrammar.hs +++ b/src/GF/Grammar/PrGrammar.hs @@ -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 diff --git a/src/GF/Source/LexGF.hs b/src/GF/Source/LexGF.hs index 400ae4be3..81ed2ab8f 100644 --- a/src/GF/Source/LexGF.hs +++ b/src/GF/Source/LexGF.hs @@ -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 |
