summaryrefslogtreecommitdiff
path: root/src/GF/Parsing/MCFG.hs
diff options
context:
space:
mode:
authorpeb <unknown>2005-04-19 09:46:07 +0000
committerpeb <unknown>2005-04-19 09:46:07 +0000
commit6e93b2c4c60d5817d5695edf61fe658317192780 (patch)
treea149fdc56f601db02bd9cd90ff662b383426298c /src/GF/Parsing/MCFG.hs
parentc1592825c71867711a63293b588fcbc97e52bfc4 (diff)
"Committed_by_peb"
Diffstat (limited to 'src/GF/Parsing/MCFG.hs')
-rw-r--r--src/GF/Parsing/MCFG.hs35
1 files changed, 35 insertions, 0 deletions
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)])
+
+
+