summaryrefslogtreecommitdiff
path: root/src/GF/Parsing/MCFG/PInfo.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/PInfo.hs
parentc1592825c71867711a63293b588fcbc97e52bfc4 (diff)
"Committed_by_peb"
Diffstat (limited to 'src/GF/Parsing/MCFG/PInfo.hs')
-rw-r--r--src/GF/Parsing/MCFG/PInfo.hs41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/GF/Parsing/MCFG/PInfo.hs b/src/GF/Parsing/MCFG/PInfo.hs
new file mode 100644
index 000000000..68fbcc031
--- /dev/null
+++ b/src/GF/Parsing/MCFG/PInfo.hs
@@ -0,0 +1,41 @@
+---------------------------------------------------------------------
+-- |
+-- Maintainer : PL
+-- Stability : (stable)
+-- Portability : (portable)
+--
+-- > CVS $Date: 2005/04/19 10:46:08 $
+-- > CVS $Author: peb $
+-- > CVS $Revision: 1.1 $
+--
+-- MCFG parsing, parser information
+-----------------------------------------------------------------------------
+
+module GF.NewParsing.MCFG.PInfo
+ (MCFParser, MCFPInfo(..), buildMCFPInfo) where
+
+import GF.System.Tracing
+import GF.Infra.Print
+
+import GF.Formalism.Utilities
+import GF.Formalism.GCFG
+import GF.Formalism.MCFG
+import GF.Data.SortedList
+import GF.Data.Assoc
+
+----------------------------------------------------------------------
+-- type declarations
+
+-- | the list of categories = possible starting categories
+type MCFParser c n l t = MCFPInfo c n l t
+ -> [c]
+ -> Input t
+ -> MCFChart c n l
+
+type MCFChart c n l = [(n, (c, RangeRec l), [(c, RangeRec l)])]
+
+type MCFPInfo c n l t = MCFGrammar c n l t
+
+buildCFPInfo :: (Ord n, Ord c, Ord l, Ord t) => MCFGrammar c n l t -> MCFPInfo c n l t
+buildCFPInfo = id
+