"Committed_by_peb"

This commit is contained in:
peb
2005-02-09 11:46:54 +00:00
parent 56c80bf8d9
commit 71c316cfc5
55 changed files with 485 additions and 339 deletions

View File

@@ -9,7 +9,7 @@
-- > CVS $Author $
-- > CVS $Revision $
--
-- (Description of the module)
-- hack for BNFC generated files. AR 21/9/2003
-----------------------------------------------------------------------------
module ErrM (
@@ -18,4 +18,3 @@ module ErrM (
import Operations
-- hack for BNFC generated files. AR 21/9/2003

View File

@@ -9,17 +9,15 @@
-- > CVS $Author $
-- > CVS $Revision $
--
-- (Description of the module)
-- AR 8-11-2003, using Markus Forsberg's implementation of Huet's @unglue@
-----------------------------------------------------------------------------
module Glue where
module Glue (decomposeSimple, exTrie) where
import Trie2
import Operations
import List
-------- AR 8/11/2003, using Markus Forsberg's implementation of Huet's unglue
decomposeSimple :: Trie Char a -> [Char] -> Err [[Char]]
decomposeSimple t s = do
let ss = map (decompose t) $ words s

View File

@@ -1,9 +1,9 @@
----------------------------------------------------------------------
-- |
-- Module : (Module)
-- Maintainer : (Maintainer)
-- Stability : (stable)
-- Portability : (portable)
-- Module : Map
-- Maintainer : Markus Forsberg
-- Stability : Stable
-- Portability : Haskell 98
--
-- > CVS $Date $
-- > CVS $Author $
@@ -12,16 +12,6 @@
-- (Description of the module)
-----------------------------------------------------------------------------
{-
**************************************************************
* Filename : Map.hs *
* Author : Markus Forsberg *
* markus@cs.chalmers.se *
* Last Modified : 15 December, 2001 *
* Lines : 53 *
**************************************************************
-}
module Map
(
Map,

View File

@@ -1,30 +1,22 @@
----------------------------------------------------------------------
-- |
-- Module : (Module)
-- Maintainer : (Maintainer)
-- Stability : (stable)
-- Portability : (portable)
-- Module : OrdMap2
-- Maintainer : Peter Ljunglöf
-- Stability : Obsolete
-- Portability : Haskell 98
--
-- > CVS $Date $
-- > CVS $Author $
-- > CVS $Revision $
--
-- (Description of the module)
-- The class of finite maps, as described in
-- "Pure Functional Parsing", section 2.2.2
-- and an example implementation,
-- derived from appendix A.2
--
-- /OBSOLETE/! this is only used in cf\/ChartParser.hs
-----------------------------------------------------------------------------
{- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Filename: OrdMap2.hs
Author: Peter Ljunglöf
Time-stamp: <2004-05-07 14:16:03 peb>
Description: The class of finite maps, as described in
"Pure Functional Parsing", section 2.2.2
and an example implementation,
derived from appendix A.2
OBSOLETE! this is only used in cf/ChartParser.hs
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -}
module OrdMap2 (OrdMap(..), Map) where
import List (intersperse)

View File

@@ -1,30 +1,22 @@
----------------------------------------------------------------------
-- |
-- Module : (Module)
-- Maintainer : (Maintainer)
-- Stability : (stable)
-- Portability : (portable)
-- Module : OrdSet
-- Maintainer : Peter Ljunglöf
-- Stability : Obsolete
-- Portability : Haskell 98
--
-- > CVS $Date $
-- > CVS $Author $
-- > CVS $Revision $
--
-- (Description of the module)
-- The class of ordered sets, as described in
-- "Pure Functional Parsing", section 2.2.1,
-- and an example implementation
-- derived from appendix A.1
--
-- /OBSOLETE/! this is only used in cf\/ChartParser.hs
-----------------------------------------------------------------------------
{- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Filename: OrdSet.hs
Author: Peter Ljunglöf
Time-stamp: <2004-05-07 14:16:12 peb>
Description: The class of ordered sets, as described in
"Pure Functional Parsing", section 2.2.1,
and an example implementation
derived from appendix A.1
OBSOLETE! this is only used in cf/ChartParser.hs
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -}
module OrdSet (OrdSet(..), Set) where
import List (intersperse)

View File

@@ -1,15 +1,17 @@
----------------------------------------------------------------------
-- |
-- Module : (Module)
-- Maintainer : (Maintainer)
-- Stability : (stable)
-- Portability : (portable)
-- Module : Parsers
-- Maintainer : Aarne Ranta
-- Stability : Almost Obsolete
-- Portability : Haskell 98
--
-- > CVS $Date $
-- > CVS $Author $
-- > CVS $Revision $
--
-- (Description of the module)
-- some parser combinators a` la Wadler and Hutton
-- no longer used in many places in GF
-- (only used in EBNF.hs)
-----------------------------------------------------------------------------
module Parsers where
@@ -28,8 +30,6 @@ infixr 5 ..+
infixr 6 |>
infixr 3 <<<
-- some parser combinators a` la Wadler and Hutton
-- no longer used in many places in GF
type Parser a b = [a] -> [(b,[a])]

View File

@@ -1,27 +1,17 @@
----------------------------------------------------------------------
-- |
-- Module : (Module)
-- Maintainer : (Maintainer)
-- Stability : (stable)
-- Portability : (portable)
-- Module : RedBlack
-- Maintainer : Markus Forsberg
-- Stability : Stable
-- Portability : Haskell 98
--
-- > CVS $Date $
-- > CVS $Author $
-- > CVS $Revision $
--
-- (Description of the module)
-- Modified version of Osanaki's implementation.
-----------------------------------------------------------------------------
{-
**************************************************************
* Filename : RedBlack.hs *
* Author : Markus Forsberg *
* markus@cs.chalmers.se *
* Last Modified : 15 December, 2001 *
* Lines : 57 *
**************************************************************
-} -- Modified version of Osanaki's implementation.
module RedBlack (
emptyTree,
isEmpty,

View File

@@ -1,9 +1,9 @@
----------------------------------------------------------------------
-- |
-- Module : (Module)
-- Maintainer : (Maintainer)
-- Stability : (stable)
-- Portability : (portable)
-- Module : Trie
-- Maintainer : Markus Forsberg
-- Stability : Obsolete???
-- Portability : Haskell 98
--
-- > CVS $Date $
-- > CVS $Author $
@@ -12,16 +12,6 @@
-- (Description of the module)
-----------------------------------------------------------------------------
{-
**************************************************************
* Filename : Trie.hs *
* Author : Markus Forsberg *
* markus@cs.chalmers.se *
* Last Modified : 17 December, 2001 *
* Lines : 51 *
**************************************************************
-}
module Trie (
tcompile,
collapse,

View File

@@ -1,9 +1,9 @@
----------------------------------------------------------------------
-- |
-- Module : (Module)
-- Maintainer : (Maintainer)
-- Stability : (stable)
-- Portability : (portable)
-- Module : Trie2
-- Maintainer : Markus Forsberg
-- Stability : Stable
-- Portability : Haskell 98
--
-- > CVS $Date $
-- > CVS $Author $
@@ -12,12 +12,6 @@
-- (Description of the module)
-----------------------------------------------------------------------------
{-
**************************************************************
* Author : Markus Forsberg *
* markus@cs.chalmers.se *
**************************************************************
-}
module Trie2 (
tcompile,
collapse,

View File

@@ -9,15 +9,13 @@
-- > CVS $Author $
-- > CVS $Revision $
--
-- (Description of the module)
-- Gérard Huet's zipper (JFP 7 (1997)). AR 10/8/2001
-----------------------------------------------------------------------------
module Zipper where
import Operations
-- Gérard Huet's zipper (JFP 7 (1997)). AR 10/8/2001
newtype Tr a = Tr (a,[Tr a]) deriving (Show,Eq)
data Path a =