From 6e93b2c4c60d5817d5695edf61fe658317192780 Mon Sep 17 00:00:00 2001 From: peb Date: Tue, 19 Apr 2005 09:46:07 +0000 Subject: "Committed_by_peb" --- src/GF/Parsing/MCFG.hs | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/GF/Parsing/MCFG.hs (limited to 'src/GF/Parsing/MCFG.hs') diff --git a/src/GF/Parsing/MCFG.hs b/src/GF/Parsing/MCFG.hs new file mode 100644 index 000000000..949776a52 --- /dev/null +++ b/src/GF/Parsing/MCFG.hs @@ -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)]) + + + -- cgit v1.2.3