diff options
| author | peb <unknown> | 2005-02-18 18:21:06 +0000 |
|---|---|---|
| committer | peb <unknown> | 2005-02-18 18:21:06 +0000 |
| commit | 9568d7a844ba6a1872a8e8f6ef002860057e62ab (patch) | |
| tree | 9e25c6ed62e48101a2782d5fb8dcba68462dc613 /src/GF/Compile | |
| parent | 1c4f025320900897ae3acdab6982f7d595b98dd1 (diff) | |
"Committed_by_peb"
Diffstat (limited to 'src/GF/Compile')
| -rw-r--r-- | src/GF/Compile/BackOpt.hs | 10 | ||||
| -rw-r--r-- | src/GF/Compile/CheckGrammar.hs | 12 | ||||
| -rw-r--r-- | src/GF/Compile/Compile.hs | 13 | ||||
| -rw-r--r-- | src/GF/Compile/Extend.hs | 13 | ||||
| -rw-r--r-- | src/GF/Compile/GetGrammar.hs | 14 | ||||
| -rw-r--r-- | src/GF/Compile/GrammarToCanon.hs | 14 | ||||
| -rw-r--r-- | src/GF/Compile/MkResource.hs | 12 | ||||
| -rw-r--r-- | src/GF/Compile/MkUnion.hs | 10 | ||||
| -rw-r--r-- | src/GF/Compile/ModDeps.hs | 18 | ||||
| -rw-r--r-- | src/GF/Compile/NewRename.hs | 14 | ||||
| -rw-r--r-- | src/GF/Compile/Optimize.hs | 12 | ||||
| -rw-r--r-- | src/GF/Compile/PGrammar.hs | 15 | ||||
| -rw-r--r-- | src/GF/Compile/PrOld.hs | 13 | ||||
| -rw-r--r-- | src/GF/Compile/Rebuild.hs | 12 | ||||
| -rw-r--r-- | src/GF/Compile/RemoveLiT.hs | 12 | ||||
| -rw-r--r-- | src/GF/Compile/Rename.hs | 17 | ||||
| -rw-r--r-- | src/GF/Compile/ShellState.hs | 10 | ||||
| -rw-r--r-- | src/GF/Compile/Update.hs | 17 |
18 files changed, 130 insertions, 108 deletions
diff --git a/src/GF/Compile/BackOpt.hs b/src/GF/Compile/BackOpt.hs index 64068e93b..ed8d2b177 100644 --- a/src/GF/Compile/BackOpt.hs +++ b/src/GF/Compile/BackOpt.hs @@ -1,13 +1,13 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : Aarne Ranta +-- Module : BackOpt +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:08 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.5 $ -- -- Optimizations on GF source code: sharing, parametrization, value sets. -- diff --git a/src/GF/Compile/CheckGrammar.hs b/src/GF/Compile/CheckGrammar.hs index f4f1ccd40..7e6f3f117 100644 --- a/src/GF/Compile/CheckGrammar.hs +++ b/src/GF/Compile/CheckGrammar.hs @@ -1,13 +1,13 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : CheckGrammar +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:08 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.20 $ -- -- AR 4\/12\/1999 -- 1\/4\/2000 -- 8\/9\/2001 -- 15\/5\/2002 -- 27\/11\/2002 -- 18\/6\/2003 -- @@ -20,7 +20,7 @@ -- - tables are type-annotated ----------------------------------------------------------------------------- -module CheckGrammar where +module CheckGrammar (showCheckModule, justCheckLTerm) where import Grammar import Ident diff --git a/src/GF/Compile/Compile.hs b/src/GF/Compile/Compile.hs index f555de440..3cbd680d8 100644 --- a/src/GF/Compile/Compile.hs +++ b/src/GF/Compile/Compile.hs @@ -1,18 +1,19 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : Compile +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:08 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.33 $ -- -- The top-level compilation chain from source file to gfc\/gfr. ----------------------------------------------------------------------------- -module Compile where +module Compile (compileModule, compileEnvShSt, compileOne + ) where import Grammar import Ident diff --git a/src/GF/Compile/Extend.hs b/src/GF/Compile/Extend.hs index af6ff0c43..d7ec35684 100644 --- a/src/GF/Compile/Extend.hs +++ b/src/GF/Compile/Extend.hs @@ -1,13 +1,13 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : Extend +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:08 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.15 $ -- -- AR 14\/5\/2003 -- 11\/11 -- @@ -15,7 +15,8 @@ -- extends a module symbol table by indirections to the module it extends ----------------------------------------------------------------------------- -module Extend where +module Extend (extendModule, extendMod + ) where import Grammar import Ident diff --git a/src/GF/Compile/GetGrammar.hs b/src/GF/Compile/GetGrammar.hs index 415cea55e..7537ec88e 100644 --- a/src/GF/Compile/GetGrammar.hs +++ b/src/GF/Compile/GetGrammar.hs @@ -1,18 +1,20 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : GetGrammar +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:08 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.14 $ -- -- this module builds the internal GF grammar that is sent to the type checker ----------------------------------------------------------------------------- -module GetGrammar where +module GetGrammar (getSourceModule, getOldGrammar, getCFGrammar, getEBNFGrammar, + err2err + ) where import Operations import qualified ErrM as E ---- diff --git a/src/GF/Compile/GrammarToCanon.hs b/src/GF/Compile/GrammarToCanon.hs index 2b3e31250..ca3235a66 100644 --- a/src/GF/Compile/GrammarToCanon.hs +++ b/src/GF/Compile/GrammarToCanon.hs @@ -1,18 +1,20 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : GrammarToCanon +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:08 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.16 $ -- -- Code generator from optimized GF source code to GFC. ----------------------------------------------------------------------------- -module GrammarToCanon where +module GrammarToCanon (showGFC, + redModInfo, redQIdent + ) where import Operations import Zipper diff --git a/src/GF/Compile/MkResource.hs b/src/GF/Compile/MkResource.hs index 5237fb9d8..9e8baf9ef 100644 --- a/src/GF/Compile/MkResource.hs +++ b/src/GF/Compile/MkResource.hs @@ -1,18 +1,18 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : MkResource +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:08 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.11 $ -- -- Compile a gfc module into a "reuse" gfr resource, interface, or instance. ----------------------------------------------------------------------------- -module MkResource where +module MkResource (makeReuse) where import Grammar import Ident diff --git a/src/GF/Compile/MkUnion.hs b/src/GF/Compile/MkUnion.hs index 6aefdbc75..83a1db627 100644 --- a/src/GF/Compile/MkUnion.hs +++ b/src/GF/Compile/MkUnion.hs @@ -1,13 +1,13 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : MkUnion +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:09 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.6 $ -- -- building union of modules. -- AR 1\/3\/2004 --- OBSOLETE 15\/9\/2004 with multiple inheritance diff --git a/src/GF/Compile/ModDeps.hs b/src/GF/Compile/ModDeps.hs index bc47e23a5..eaf5d7daf 100644 --- a/src/GF/Compile/ModDeps.hs +++ b/src/GF/Compile/ModDeps.hs @@ -1,20 +1,24 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : ModDeps +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:09 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.11 $ -- -- Check correctness of module dependencies. Incomplete. -- --- AR 13/5/2003 +-- AR 13\/5\/2003 ----------------------------------------------------------------------------- -module ModDeps where +module ModDeps (mkSourceGrammar, + moduleDeps, + openInterfaces, + requiredCanModules + ) where import Grammar import Ident diff --git a/src/GF/Compile/NewRename.hs b/src/GF/Compile/NewRename.hs index 60d079915..e55d37594 100644 --- a/src/GF/Compile/NewRename.hs +++ b/src/GF/Compile/NewRename.hs @@ -1,15 +1,15 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : NewRename +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:09 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.4 $ -- --- AR 14/5/2003 +-- AR 14\/5\/2003 -- -- The top-level function 'renameGrammar' does several things: -- @@ -23,7 +23,7 @@ -- Hence we can proceed by @fold@ing "from left to right". ----------------------------------------------------------------------------- -module Rename where +module Rename (renameSourceTerm, renameModule) where import Grammar import Values diff --git a/src/GF/Compile/Optimize.hs b/src/GF/Compile/Optimize.hs index 1b0d5e464..b342a5b3f 100644 --- a/src/GF/Compile/Optimize.hs +++ b/src/GF/Compile/Optimize.hs @@ -1,18 +1,18 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : Optimize +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:09 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.13 $ -- -- Top-level partial evaluation for GF source modules. ----------------------------------------------------------------------------- -module Optimize where +module Optimize (optimizeModule) where import Grammar import Ident diff --git a/src/GF/Compile/PGrammar.hs b/src/GF/Compile/PGrammar.hs index 02259d30c..4381f4b2e 100644 --- a/src/GF/Compile/PGrammar.hs +++ b/src/GF/Compile/PGrammar.hs @@ -1,18 +1,21 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : PGrammar +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:09 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.6 $ -- -- (Description of the module) ----------------------------------------------------------------------------- -module PGrammar where +module PGrammar (pTerm, pTrm, pTrms, + pMeta, pzIdent, + string2ident + ) where ---import LexGF import ParGF diff --git a/src/GF/Compile/PrOld.hs b/src/GF/Compile/PrOld.hs index cba3eb536..8c0132fe7 100644 --- a/src/GF/Compile/PrOld.hs +++ b/src/GF/Compile/PrOld.hs @@ -1,13 +1,13 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : PrOld +-- Maintainer : GF -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:09 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.7 $ -- -- a hack to print gf2 into gf1 readable files -- Works only for canonical grammars, printed into GFC. Otherwise we would have @@ -15,7 +15,7 @@ -- --- printnames are not preserved, nor are lindefs ----------------------------------------------------------------------------- -module PrOld where +module PrOld (printGrammarOld, stripTerm) where import PrGrammar import CanonToGrammar @@ -59,6 +59,7 @@ stripInfo (c,i) = case i of stripContext co = [(x, stripTerm t) | (x,t) <- co] +stripTerm :: Term -> Term stripTerm t = case t of Q _ c -> Vr c QC _ c -> Vr c diff --git a/src/GF/Compile/Rebuild.hs b/src/GF/Compile/Rebuild.hs index c40df28ff..1dee8624c 100644 --- a/src/GF/Compile/Rebuild.hs +++ b/src/GF/Compile/Rebuild.hs @@ -1,18 +1,18 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : Rebuild +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:09 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.9 $ -- -- Rebuild a source module from incomplete and its with-instance. ----------------------------------------------------------------------------- -module Rebuild where +module Rebuild (rebuildModule) where import Grammar import ModDeps diff --git a/src/GF/Compile/RemoveLiT.hs b/src/GF/Compile/RemoveLiT.hs index 1c10bd9ab..55a9693c9 100644 --- a/src/GF/Compile/RemoveLiT.hs +++ b/src/GF/Compile/RemoveLiT.hs @@ -1,19 +1,19 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : RemoveLiT +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:09 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.5 $ -- -- remove obsolete (Lin C) expressions before doing anything else. AR 21/6/2003 -- -- What the program does is replace the occurrences of Lin C with the actual -- definition T given in lincat C = T ; with {s : Str} if no lincat is found. --- The procedule is uncertain, if T contains another Lin. +-- The procedure is uncertain, if T contains another Lin. ----------------------------------------------------------------------------- module RemoveLiT (removeLiT) where diff --git a/src/GF/Compile/Rename.hs b/src/GF/Compile/Rename.hs index 3f9533791..a8c73cdbe 100644 --- a/src/GF/Compile/Rename.hs +++ b/src/GF/Compile/Rename.hs @@ -1,15 +1,15 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : Rename +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:09 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.17 $ -- --- AR 14/5/2003 +-- AR 14\/5\/2003 -- The top-level function 'renameGrammar' does several things: -- -- - extends each module symbol table by indirections to extended module @@ -22,7 +22,10 @@ -- Hence we can proceed by @fold@ing "from left to right". ----------------------------------------------------------------------------- -module Rename where +module Rename (renameGrammar, + renameSourceTerm, + renameModule + ) where import Grammar import Values diff --git a/src/GF/Compile/ShellState.hs b/src/GF/Compile/ShellState.hs index 8db6aa789..1586674ca 100644 --- a/src/GF/Compile/ShellState.hs +++ b/src/GF/Compile/ShellState.hs @@ -1,13 +1,13 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : ShellState +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:09 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.35 $ -- -- (Description of the module) ----------------------------------------------------------------------------- diff --git a/src/GF/Compile/Update.hs b/src/GF/Compile/Update.hs index 289e516b8..14c62ef42 100644 --- a/src/GF/Compile/Update.hs +++ b/src/GF/Compile/Update.hs @@ -1,18 +1,23 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : Update +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:09 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.6 $ -- -- (Description of the module) ----------------------------------------------------------------------------- -module Update where +module Update (updateRes, buildAnyTree, combineAnyInfos, unifyAnyInfo, + -- * these auxiliaries should be somewhere else + -- since they don't use the info types + groupInfos, sortInfos, combineInfos, unifyInfos, + tryInsert, unifAbsDefs, unifConstrs + ) where import Ident import Grammar |
