forked from GitHub/gf-core
preparing for new ShellState
This commit is contained in:
@@ -5,9 +5,9 @@
|
|||||||
-- Stability : (stable)
|
-- Stability : (stable)
|
||||||
-- Portability : (portable)
|
-- Portability : (portable)
|
||||||
--
|
--
|
||||||
-- > CVS $Date: 2005/11/06 22:00:37 $
|
-- > CVS $Date: 2005/11/09 15:14:30 $
|
||||||
-- > CVS $Author: aarne $
|
-- > CVS $Author: aarne $
|
||||||
-- > CVS $Revision: 1.25 $
|
-- > CVS $Revision: 1.26 $
|
||||||
--
|
--
|
||||||
-- Datastructures and functions for modules, common to GF and GFC.
|
-- Datastructures and functions for modules, common to GF and GFC.
|
||||||
--
|
--
|
||||||
@@ -389,4 +389,5 @@ greatestResource gr = case allResources gr of
|
|||||||
|
|
||||||
-- | all concretes for a given abstract
|
-- | all concretes for a given abstract
|
||||||
allConcretes :: Eq i => MGrammar i f a -> i -> [i]
|
allConcretes :: Eq i => MGrammar i f a -> i -> [i]
|
||||||
allConcretes gr a = [i | (i, ModMod m) <- modules gr, mtype m == MTConcrete a]
|
allConcretes gr a =
|
||||||
|
[i | (i, ModMod m) <- modules gr, mtype m == MTConcrete a, isCompleteModule m]
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
-- Stability : (stable)
|
-- Stability : (stable)
|
||||||
-- Portability : (portable)
|
-- Portability : (portable)
|
||||||
--
|
--
|
||||||
-- > CVS $Date: 2005/11/01 20:09:04 $
|
-- > CVS $Date: 2005/11/09 15:14:30 $
|
||||||
-- > CVS $Author: bringert $
|
-- > CVS $Author: aarne $
|
||||||
-- > CVS $Revision: 1.81 $
|
-- > CVS $Revision: 1.82 $
|
||||||
--
|
--
|
||||||
-- A database for customizable GF shell commands.
|
-- A database for customizable GF shell commands.
|
||||||
--
|
--
|
||||||
@@ -305,8 +305,8 @@ customGrammarPrinter =
|
|||||||
,(strCI "cfg-skvatt", Cnv.cfg2skvatt . stateCFG)
|
,(strCI "cfg-skvatt", Cnv.cfg2skvatt . stateCFG)
|
||||||
,(strCI "simple", Prt.prt . uncurry Cnv.gfc2simple . stateGrammarLangOpts)
|
,(strCI "simple", Prt.prt . uncurry Cnv.gfc2simple . stateGrammarLangOpts)
|
||||||
,(strCI "mcfg-erasing", Prt.prt . fst . snd . uncurry Cnv.convertGFC . stateGrammarLangOpts)
|
,(strCI "mcfg-erasing", Prt.prt . fst . snd . uncurry Cnv.convertGFC . stateGrammarLangOpts)
|
||||||
,(strCI "mcfg-old", PrtOld.prt . CnvOld.mcfg . statePInfoOld)
|
-- ,(strCI "mcfg-old", PrtOld.prt . CnvOld.mcfg . statePInfoOld)
|
||||||
,(strCI "cfg-old", PrtOld.prt . CnvOld.cfg . statePInfoOld)
|
-- ,(strCI "cfg-old", PrtOld.prt . CnvOld.cfg . statePInfoOld)
|
||||||
]
|
]
|
||||||
where stateGrammarLangOpts s = (stateOptions s, stateGrammarLang s)
|
where stateGrammarLangOpts s = (stateOptions s, stateGrammarLang s)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user