summaryrefslogtreecommitdiff
path: root/src/GF/Conversion/RemoveEpsilon.hs
blob: f6e30e16df545de8de64b8892e7db14366c8539f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
----------------------------------------------------------------------
-- |
-- Maintainer  : PL
-- Stability   : (stable)
-- Portability : (portable)
--
-- > CVS $Date: 2005/04/18 14:57:29 $ 
-- > CVS $Author: peb $
-- > CVS $Revision: 1.1 $
--
-- Removing epsilon linearizations from MCF grammars
-----------------------------------------------------------------------------


module GF.Conversion.RemoveEpsilon where
--    (convertGrammar) where

import GF.System.Tracing
import GF.Infra.Print

import Monad
import List (mapAccumL)
import Maybe (mapMaybe)
import GF.Formalism.Utilities
import GF.Formalism.GCFG
import GF.Formalism.MCFG
import GF.Conversion.Types
import GF.Data.Assoc
import GF.Data.SortedList
import GF.NewParsing.GeneralChart

convertGrammar :: EGrammar -> EGrammar
convertGrammar grammar = undefined