diff options
| author | aarne <unknown> | 2005-02-10 09:43:33 +0000 |
|---|---|---|
| committer | aarne <unknown> | 2005-02-10 09:43:33 +0000 |
| commit | d676355271f360861b8462c4b788202ddd605b6d (patch) | |
| tree | f2735c1123373f1ee8f9ccf2f0d9d24f01b1165c /src/GF/Compile/GrammarToCanon.hs | |
| parent | 9afbd25b64607e68fe6275fb6b743159001ca984 (diff) | |
gfc generation to incomplete modules
Diffstat (limited to 'src/GF/Compile/GrammarToCanon.hs')
| -rw-r--r-- | src/GF/Compile/GrammarToCanon.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GF/Compile/GrammarToCanon.hs b/src/GF/Compile/GrammarToCanon.hs index 08542ec16..2b3e31250 100644 --- a/src/GF/Compile/GrammarToCanon.hs +++ b/src/GF/Compile/GrammarToCanon.hs @@ -52,7 +52,7 @@ redModInfo (c,info) = do let isIncompl = not $ isCompleteModule m (e,os) <- if isIncompl then return ([],[]) else redExtOpen m ---- flags <- mapM redFlag $ flags m - (a,mt) <- case mtype m of + (a,mt0) <- case mtype m of MTConcrete a -> do a' <- redIdent a return (a', MTConcrete a') @@ -62,8 +62,9 @@ redModInfo (c,info) = do MTInstance _ -> return (c',MTResource) --- c' not needed MTTransfer x y -> return (c',MTTransfer (om x) (om y)) --- c' not needed - ---- this generates empty GFC. Better: none + --- this generates empty GFC reosurce for interface and incomplete let js = if isIncompl then NT else jments m + mt = mt0 ---- if isIncompl then MTResource else mt0 defss <- mapM (redInfo a) $ tree2list $ js defs <- return $ sorted2tree $ concat defss -- sorted, but reduced |
