diff options
| author | peb <unknown> | 2005-08-08 08:01:10 +0000 |
|---|---|---|
| committer | peb <unknown> | 2005-08-08 08:01:10 +0000 |
| commit | 1351c101337e46a89c066f0830ed6f06fc96cf7a (patch) | |
| tree | c2a07b6182345a72cf8cea2125972630044fdf46 /src/GF/Parsing | |
| parent | b03a738c4433f40c1eca2691fe09ea31d71475fe (diff) | |
"Committed_by_peb"
Diffstat (limited to 'src/GF/Parsing')
| -rw-r--r-- | src/GF/Parsing/MCFG/Active.hs | 16 | ||||
| -rw-r--r-- | src/GF/Parsing/MCFG/Active2.hs | 12 | ||||
| -rw-r--r-- | src/GF/Parsing/MCFG/Incremental.hs | 12 | ||||
| -rw-r--r-- | src/GF/Parsing/MCFG/Incremental2.hs | 12 | ||||
| -rw-r--r-- | src/GF/Parsing/MCFG/Naive.hs | 12 | ||||
| -rw-r--r-- | src/GF/Parsing/MCFG/Range.hs | 12 | ||||
| -rw-r--r-- | src/GF/Parsing/MCFG/ViaCFG.hs | 21 |
7 files changed, 86 insertions, 11 deletions
diff --git a/src/GF/Parsing/MCFG/Active.hs b/src/GF/Parsing/MCFG/Active.hs index cb1440e24..a422f7e10 100644 --- a/src/GF/Parsing/MCFG/Active.hs +++ b/src/GF/Parsing/MCFG/Active.hs @@ -1,3 +1,15 @@ +---------------------------------------------------------------------- +-- | +-- Maintainer : PL +-- Stability : (stable) +-- Portability : (portable) +-- +-- > CVS $Date: 2005/08/08 09:01:25 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.5 $ +-- +-- MCFG parsing, the active algorithm +----------------------------------------------------------------------------- module GF.Parsing.MCFG.Active (parse, parseR) where @@ -20,7 +32,7 @@ import GF.Infra.Print ---------------------------------------------------------------------- -- * parsing ---parse :: (Ord n, Ord c, Ord l, Ord t) => String -> MCFParser c n l t +parse :: (Ord n, Ord c, Ord l, Ord t) => String -> MCFParser c n l t parse strategy pinfo starts toks = trace2 "MCFG.Active - strategy" (if isBU strategy then "BU" else if isTD strategy then "TD" else "None") $ @@ -28,7 +40,7 @@ parse strategy pinfo starts toks = Final (Abs cat rhs fun) found rrecs <- chartLookup chart Fin ] where chart = process strategy pinfo starts toks ---parse :: (Ord n, Ord c, Ord l, Ord t) => String -> MCFParser c n l t +-- parseR :: (Ord n, Ord c, Ord l, Ord t) => String -> MCFParser c n l t parseR strategy pinfo starts = trace2 "MCFG.Active Range - strategy" (if isBU strategy then "BU" else if isTD strategy then "TD" else "None") $ diff --git a/src/GF/Parsing/MCFG/Active2.hs b/src/GF/Parsing/MCFG/Active2.hs index a37c7c15d..f702c83b3 100644 --- a/src/GF/Parsing/MCFG/Active2.hs +++ b/src/GF/Parsing/MCFG/Active2.hs @@ -1,3 +1,15 @@ +---------------------------------------------------------------------- +-- | +-- Maintainer : PL +-- Stability : (stable) +-- Portability : (portable) +-- +-- > CVS $Date: 2005/08/08 09:01:25 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.2 $ +-- +-- MCFG parsing, the active algorithm (alternative version) +----------------------------------------------------------------------------- module GF.Parsing.MCFG.Active2 (parse) where diff --git a/src/GF/Parsing/MCFG/Incremental.hs b/src/GF/Parsing/MCFG/Incremental.hs index eafca578d..64a6c759e 100644 --- a/src/GF/Parsing/MCFG/Incremental.hs +++ b/src/GF/Parsing/MCFG/Incremental.hs @@ -1,3 +1,15 @@ +---------------------------------------------------------------------- +-- | +-- Maintainer : PL +-- Stability : (stable) +-- Portability : (portable) +-- +-- > CVS $Date: 2005/08/08 09:01:25 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.4 $ +-- +-- MCFG parsing, the incremental algorithm +----------------------------------------------------------------------------- module GF.Parsing.MCFG.Incremental (parse, parseR) where diff --git a/src/GF/Parsing/MCFG/Incremental2.hs b/src/GF/Parsing/MCFG/Incremental2.hs index 9d95f0fb0..880909758 100644 --- a/src/GF/Parsing/MCFG/Incremental2.hs +++ b/src/GF/Parsing/MCFG/Incremental2.hs @@ -1,3 +1,15 @@ +---------------------------------------------------------------------- +-- | +-- Maintainer : PL +-- Stability : (stable) +-- Portability : (portable) +-- +-- > CVS $Date: 2005/08/08 09:01:25 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.3 $ +-- +-- MCFG parsing, the incremental algorithm (alternative version) +----------------------------------------------------------------------------- module GF.Parsing.MCFG.Incremental2 (parse) where diff --git a/src/GF/Parsing/MCFG/Naive.hs b/src/GF/Parsing/MCFG/Naive.hs index 932261d2b..8697f9c4c 100644 --- a/src/GF/Parsing/MCFG/Naive.hs +++ b/src/GF/Parsing/MCFG/Naive.hs @@ -1,3 +1,15 @@ +---------------------------------------------------------------------- +-- | +-- Maintainer : PL +-- Stability : (stable) +-- Portability : (portable) +-- +-- > CVS $Date: 2005/08/08 09:01:25 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.5 $ +-- +-- MCFG parsing, the naive algorithm +----------------------------------------------------------------------------- module GF.Parsing.MCFG.Naive (parse, parseR) where diff --git a/src/GF/Parsing/MCFG/Range.hs b/src/GF/Parsing/MCFG/Range.hs index 7e5cc859a..91671fa00 100644 --- a/src/GF/Parsing/MCFG/Range.hs +++ b/src/GF/Parsing/MCFG/Range.hs @@ -1,3 +1,15 @@ +--------------------------------------------------------------------- +-- | +-- Maintainer : PL +-- Stability : (stable) +-- Portability : (portable) +-- +-- > CVS $Date: 2005/08/08 09:01:25 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.5 $ +-- +-- Definitions of ranges, and operations on ranges +----------------------------------------------------------------------------- module GF.Parsing.MCFG.Range ( Range(..), makeRange, concatRange, rangeEdge, edgeRange, minRange, maxRange, diff --git a/src/GF/Parsing/MCFG/ViaCFG.hs b/src/GF/Parsing/MCFG/ViaCFG.hs index 00fff83e0..9204ea9f1 100644 --- a/src/GF/Parsing/MCFG/ViaCFG.hs +++ b/src/GF/Parsing/MCFG/ViaCFG.hs @@ -1,12 +1,15 @@ -{-- Module -------------------------------------------------------------------- - Filename: ApproxParse.hs - Author: Håkan Burden - Time-stamp: <2005-04-18, 14:56> - - Description: An agenda-driven implementation of the active algorithm 4.3.4, - parsing through context-free approximation as described in - Ljunglöf (2004) -------------------------------------------------------------------------------} +---------------------------------------------------------------------- +-- | +-- Maintainer : PL +-- Stability : (stable) +-- Portability : (portable) +-- +-- > CVS $Date: 2005/08/08 09:01:25 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.4 $ +-- +-- MCFG parsing, through context-free approximation +----------------------------------------------------------------------------- module GF.Parsing.MCFG.ViaCFG where |
