mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-16 08:19:31 -06:00
Fixed module names and imports after giant file move.
This commit is contained in:
@@ -5,16 +5,16 @@
|
||||
-- Stability : (stable)
|
||||
-- Portability : (portable)
|
||||
--
|
||||
-- > CVS $Date: 2005/02/18 19:21:06 $
|
||||
-- > CVS $Author: peb $
|
||||
-- > CVS $Revision: 1.5 $
|
||||
-- > CVS $Date: 2005/04/21 16:21:05 $
|
||||
-- > CVS $Author: bringert $
|
||||
-- > CVS $Revision: 1.6 $
|
||||
--
|
||||
-- translate OCL, etc, files in batch mode
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
module BatchTranslate (translate) where
|
||||
module GF.API.BatchTranslate (translate) where
|
||||
|
||||
import API
|
||||
import GF.API
|
||||
import GetMyTree (file2tree)
|
||||
|
||||
translate :: FilePath -> FilePath -> IO ()
|
||||
@@ -40,4 +40,4 @@ It seems we should add open
|
||||
|
||||
ParadigmsX, ResourceExtX, PredicationX
|
||||
|
||||
-}
|
||||
-}
|
||||
|
||||
@@ -5,22 +5,22 @@
|
||||
-- Stability : (stable)
|
||||
-- Portability : (portable)
|
||||
--
|
||||
-- > CVS $Date: 2005/02/18 19:21:06 $
|
||||
-- > CVS $Author: peb $
|
||||
-- > CVS $Revision: 1.5 $
|
||||
-- > CVS $Date: 2005/04/21 16:21:06 $
|
||||
-- > CVS $Author: bringert $
|
||||
-- > CVS $Revision: 1.6 $
|
||||
--
|
||||
-- to write a GF abstract grammar into a Haskell module with translations from
|
||||
-- data objects into GF trees. Example: GSyntax for Agda.
|
||||
-- AR 11/11/1999 -- 7/12/2000 -- 18/5/2004
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
module GrammarToHaskell (grammar2haskell) where
|
||||
module GF.API.GrammarToHaskell (grammar2haskell) where
|
||||
|
||||
import qualified GFC
|
||||
import Macros
|
||||
import qualified GF.Canon.GFC as GFC
|
||||
import GF.Grammar.Macros
|
||||
|
||||
import Modules
|
||||
import Operations
|
||||
import GF.Infra.Modules
|
||||
import GF.Data.Operations
|
||||
|
||||
-- | the main function
|
||||
grammar2haskell :: GFC.CanonGrammar -> String
|
||||
|
||||
@@ -5,31 +5,31 @@
|
||||
-- Stability : (stable)
|
||||
-- Portability : (portable)
|
||||
--
|
||||
-- > CVS $Date: 2005/03/14 17:40:10 $
|
||||
-- > CVS $Author: aarne $
|
||||
-- > CVS $Revision: 1.16 $
|
||||
-- > CVS $Date: 2005/04/21 16:21:06 $
|
||||
-- > CVS $Author: bringert $
|
||||
-- > CVS $Revision: 1.17 $
|
||||
--
|
||||
-- for reading grammars and terms from strings and files
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
module IOGrammar (shellStateFromFiles,
|
||||
module GF.API.IOGrammar (shellStateFromFiles,
|
||||
getShellStateFromFiles) where
|
||||
|
||||
import Abstract
|
||||
import qualified GFC
|
||||
import PGrammar
|
||||
import TypeCheck
|
||||
import Compile
|
||||
import ShellState
|
||||
import GF.Grammar.Abstract
|
||||
import qualified GF.Canon.GFC as GFC
|
||||
import GF.Compile.PGrammar
|
||||
import GF.Grammar.TypeCheck
|
||||
import GF.Compile.Compile
|
||||
import GF.Compile.ShellState
|
||||
|
||||
import Modules
|
||||
import ReadFiles (isOldFile)
|
||||
import Option
|
||||
import Operations
|
||||
import UseIO
|
||||
import GF.Infra.Modules
|
||||
import GF.Infra.ReadFiles (isOldFile)
|
||||
import GF.Infra.Option
|
||||
import GF.Data.Operations
|
||||
import GF.Infra.UseIO
|
||||
import Arch
|
||||
|
||||
import Monad (liftM)
|
||||
import Control.Monad (liftM)
|
||||
|
||||
-- | a heuristic way of renaming constants is used
|
||||
string2absTerm :: String -> String -> Term
|
||||
|
||||
@@ -5,19 +5,19 @@
|
||||
-- Stability : (stable)
|
||||
-- Portability : (portable)
|
||||
--
|
||||
-- > CVS $Date: 2005/02/18 19:21:06 $
|
||||
-- > CVS $Author: peb $
|
||||
-- > CVS $Revision: 1.5 $
|
||||
-- > CVS $Date: 2005/04/21 16:21:07 $
|
||||
-- > CVS $Author: bringert $
|
||||
-- > CVS $Revision: 1.6 $
|
||||
--
|
||||
-- template to define your own parser (obsolete?)
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
module MyParser (myParser) where
|
||||
module GF.API.MyParser (myParser) where
|
||||
|
||||
import ShellState
|
||||
import CFIdent
|
||||
import CF
|
||||
import Operations
|
||||
import GF.Compile.ShellState
|
||||
import GF.CF.CFIdent
|
||||
import GF.CF.CF
|
||||
import GF.Data.Operations
|
||||
|
||||
-- type CFParser = [CFTok] -> ([(CFTree,[CFTok])],String)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user