mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-15 06:02:55 -06:00
GF/src is now for 2.9, and the new sources are in src-3.0 - keep it this way until the release of GF 3
This commit is contained in:
34
src-3.0/GF/OldParsing/ConvertGFCtoMCFG.hs
Normal file
34
src-3.0/GF/OldParsing/ConvertGFCtoMCFG.hs
Normal file
@@ -0,0 +1,34 @@
|
||||
----------------------------------------------------------------------
|
||||
-- |
|
||||
-- Module : ConvertGFCtoMCFG
|
||||
-- Maintainer : PL
|
||||
-- Stability : (stable)
|
||||
-- Portability : (portable)
|
||||
--
|
||||
-- > CVS $Date: 2005/04/21 16:22:44 $
|
||||
-- > CVS $Author: bringert $
|
||||
-- > CVS $Revision: 1.2 $
|
||||
--
|
||||
-- All different conversions from GFC to MCFG
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
module GF.OldParsing.ConvertGFCtoMCFG
|
||||
(convertGrammar) where
|
||||
|
||||
import GF.Canon.GFC (CanonGrammar)
|
||||
import GF.OldParsing.GrammarTypes
|
||||
import GF.Infra.Ident (Ident(..))
|
||||
import GF.Infra.Option
|
||||
import GF.System.Tracing
|
||||
|
||||
import qualified GF.OldParsing.ConvertGFCtoMCFG.Old as Old
|
||||
import qualified GF.OldParsing.ConvertGFCtoMCFG.Nondet as Nondet
|
||||
import qualified GF.OldParsing.ConvertGFCtoMCFG.Strict as Strict
|
||||
import qualified GF.OldParsing.ConvertGFCtoMCFG.Coercions as Coerce
|
||||
|
||||
convertGrammar :: String -> (CanonGrammar, Ident) -> MCFGrammar
|
||||
convertGrammar "nondet" = Coerce.addCoercions . Nondet.convertGrammar
|
||||
convertGrammar "strict" = Strict.convertGrammar
|
||||
convertGrammar "old" = Old.convertGrammar
|
||||
|
||||
Reference in New Issue
Block a user