summaryrefslogtreecommitdiff
path: root/src/GF/Parsing/ParseCFG.hs
diff options
context:
space:
mode:
authorpeb <unknown>2005-04-12 09:49:44 +0000
committerpeb <unknown>2005-04-12 09:49:44 +0000
commitfa6ba9a5318640778040e86268e9003216f3636e (patch)
treefdbafb9713893bfb978d3c18f0fc7fc778bc763e /src/GF/Parsing/ParseCFG.hs
parent5f25c828178281ed8f8b77abc0b599d740c797b0 (diff)
"Committed_by_peb"
Diffstat (limited to 'src/GF/Parsing/ParseCFG.hs')
-rw-r--r--src/GF/Parsing/ParseCFG.hs43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/GF/Parsing/ParseCFG.hs b/src/GF/Parsing/ParseCFG.hs
deleted file mode 100644
index c613ca312..000000000
--- a/src/GF/Parsing/ParseCFG.hs
+++ /dev/null
@@ -1,43 +0,0 @@
-----------------------------------------------------------------------
--- |
--- Module : ParseCFG
--- Maintainer : PL
--- Stability : (stable)
--- Portability : (portable)
---
--- > CVS $Date: 2005/03/21 22:31:51 $
--- > CVS $Author: peb $
--- > CVS $Revision: 1.2 $
---
--- Main parsing module for context-free grammars
------------------------------------------------------------------------------
-
-
-module GF.Parsing.ParseCFG (parse) where
-
-import Char (toLower)
-import GF.Parsing.Utilities
-import GF.Parsing.CFGrammar
-import qualified GF.Parsing.ParseCFG.General as PGen
-import qualified GF.Parsing.ParseCFG.Incremental as PInc
-
-
-parse :: (Ord n, Ord c, Ord t, Show t) =>
- String -> CFParser n c t
-parse = decodeParser . map toLower
-
-decodeParser ['g',s] = PGen.parse (decodeStrategy s)
-decodeParser ['i',s,f] = PInc.parse (decodeStrategy s, decodeFilter f)
-decodeParser _ = decodeParser "ibn"
-
-decodeStrategy 'b' = (True, False)
-decodeStrategy 't' = (False, True)
-
-decodeFilter 'a' = (True, True)
-decodeFilter 'b' = (True, False)
-decodeFilter 't' = (False, True)
-decodeFilter 'n' = (False, False)
-
-
-
-