1
0
forked from GitHub/gf-core

"Committed_by_peb"

This commit is contained in:
peb
2005-04-19 09:46:07 +00:00
parent c1592825c7
commit 6e93b2c4c6
6 changed files with 566 additions and 45 deletions

35
src/GF/Parsing/MCFG.hs Normal file
View File

@@ -0,0 +1,35 @@
----------------------------------------------------------------------
-- |
-- Maintainer : PL
-- Stability : (stable)
-- Portability : (portable)
--
-- > CVS $Date: 2005/04/19 10:46:07 $
-- > CVS $Author: peb $
-- > CVS $Revision: 1.1 $
--
-- MCFG parsing
-----------------------------------------------------------------------------
module GF.NewParsing.MCFG where
import GF.Formalism.Utilities
import GF.Formalism.GCFG
import GF.Formalism.MCFG
import qualified GF.NewParsing.MCFG.Naive as Naive
import qualified GF.NewParsing.MCFG.Range as Range (makeRange)
----------------------------------------------------------------------
-- parsing
--parseMCF :: (Ord n, Ord c, Ord t) => String -> CFParser c n t
parseMCF "n" = Naive.parse
-- default parser:
parseMCF _ = parseMCF "n"
makeFinalEdge cat lbl bnds = (cat, [(lbl, Range.makeRange bnds)])