mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
add Cabal description for GF
This commit is contained in:
166
GF.cabal
Normal file
166
GF.cabal
Normal file
@@ -0,0 +1,166 @@
|
|||||||
|
name: gf
|
||||||
|
version: 3.0
|
||||||
|
cabal-version: >= 1.2
|
||||||
|
build-type: Simple
|
||||||
|
license: GPL
|
||||||
|
license-file: LICENSE
|
||||||
|
synopsis: Grammatical Framework
|
||||||
|
|
||||||
|
|
||||||
|
library
|
||||||
|
build-depends: base,
|
||||||
|
array,
|
||||||
|
containers,
|
||||||
|
bytestring,
|
||||||
|
random
|
||||||
|
ghc-options: -O2
|
||||||
|
hs-source-dirs: src-3.0
|
||||||
|
extensions:
|
||||||
|
exposed-modules:
|
||||||
|
GF.GFCC.API
|
||||||
|
other-modules:
|
||||||
|
GF.GFCC.Raw.AbsGFCCRaw
|
||||||
|
GF.GFCC.DataGFCC
|
||||||
|
GF.GFCC.CId
|
||||||
|
GF.GFCC.Raw.ParGFCCRaw
|
||||||
|
GF.GFCC.Macros
|
||||||
|
GF.GFCC.Generate
|
||||||
|
GF.GFCC.Linearize
|
||||||
|
GF.Command.LexGFShell
|
||||||
|
GF.Command.AbsGFShell
|
||||||
|
GF.Command.PrintGFShell
|
||||||
|
GF.Data.RedBlackSet
|
||||||
|
GF.Data.GeneralDeduction
|
||||||
|
GF.Infra.CompactPrint
|
||||||
|
GF.Text.UTF8
|
||||||
|
GF.Data.Utilities
|
||||||
|
GF.Data.SortedList
|
||||||
|
GF.Data.Assoc
|
||||||
|
GF.Infra.PrintClass
|
||||||
|
GF.Formalism.Utilities
|
||||||
|
GF.Parsing.FCFG.Range
|
||||||
|
GF.Formalism.FCFG
|
||||||
|
GF.Parsing.FCFG.PInfo
|
||||||
|
GF.Parsing.FCFG.Active
|
||||||
|
GF.GFCC.Raw.ConvertGFCC
|
||||||
|
GF.Data.ErrM
|
||||||
|
GF.Command.ParGFShell
|
||||||
|
GF.Command.PPrTree
|
||||||
|
GF.Parsing.FCFG
|
||||||
|
|
||||||
|
|
||||||
|
executable gf3
|
||||||
|
build-depends: base,
|
||||||
|
array,
|
||||||
|
containers,
|
||||||
|
bytestring,
|
||||||
|
filepath,
|
||||||
|
directory,
|
||||||
|
random,
|
||||||
|
old-time,
|
||||||
|
process
|
||||||
|
if os(windows)
|
||||||
|
build-depends: Win32
|
||||||
|
else
|
||||||
|
build-depends: posix
|
||||||
|
ghc-options: -O2
|
||||||
|
hs-source-dirs: src-3.0
|
||||||
|
extensions:
|
||||||
|
main-is: GF.hs
|
||||||
|
other-modules:
|
||||||
|
GF.Source.ErrM
|
||||||
|
GF.Grammar.ReservedWords
|
||||||
|
GF.Data.BacktrackM
|
||||||
|
GF.Source.SharedString
|
||||||
|
GF.Source.LexGF
|
||||||
|
GF.Source.AbsGF
|
||||||
|
GF.Source.PrintGF
|
||||||
|
GF.JavaScript.AbsJS
|
||||||
|
GF.JavaScript.PrintJS
|
||||||
|
GF.GFCC.Raw.AbsGFCCRaw
|
||||||
|
GF.Command.LexGFShell
|
||||||
|
GF.Command.AbsGFShell
|
||||||
|
GF.Command.PrintGFShell
|
||||||
|
GF.Data.RedBlackSet
|
||||||
|
GF.Data.GeneralDeduction
|
||||||
|
GF.Infra.CompactPrint
|
||||||
|
GF.Text.UTF8
|
||||||
|
GF.Data.Utilities
|
||||||
|
GF.Data.SortedList
|
||||||
|
GF.Data.Assoc
|
||||||
|
GF.Infra.PrintClass
|
||||||
|
GF.GFCC.CId
|
||||||
|
GF.GFCC.Raw.ParGFCCRaw
|
||||||
|
GF.GFCC.Raw.PrintGFCCRaw
|
||||||
|
GF.Formalism.Utilities
|
||||||
|
GF.Parsing.FCFG.Range
|
||||||
|
GF.Formalism.FCFG
|
||||||
|
GF.Parsing.FCFG.PInfo
|
||||||
|
GF.GFCC.DataGFCC
|
||||||
|
GF.Parsing.FCFG.Active
|
||||||
|
GF.GFCC.Raw.ConvertGFCC
|
||||||
|
GF.GFCC.Macros
|
||||||
|
GF.GFCC.Generate
|
||||||
|
GF.GFCC.Linearize
|
||||||
|
GF.Conversion.SimpleToFCFG
|
||||||
|
GF.Data.ErrM
|
||||||
|
GF.Parsing.FCFG
|
||||||
|
GF.Command.ParGFShell
|
||||||
|
GF.Command.PPrTree
|
||||||
|
GF.GFCC.API
|
||||||
|
GF.GFCC.CheckGFCC
|
||||||
|
GF.Source.ParGF
|
||||||
|
GF.Data.Operations
|
||||||
|
GF.GFCC.GFCCtoHaskell
|
||||||
|
GF.GFCC.ShowLinearize
|
||||||
|
GF.GFCC.OptimizeGFCC
|
||||||
|
GF.Infra.Ident
|
||||||
|
GF.Grammar.Predef
|
||||||
|
GF.Data.Str
|
||||||
|
GF.Data.Zipper
|
||||||
|
GF.Today
|
||||||
|
GF.Infra.Option
|
||||||
|
GF.Infra.UseIO
|
||||||
|
GF.GFCC.GFCCtoJS
|
||||||
|
GF.GFCC.PrintGFCC
|
||||||
|
GF.Command.Commands
|
||||||
|
GF.Command.Interpreter
|
||||||
|
GF.Infra.Modules
|
||||||
|
GF.Grammar.Grammar
|
||||||
|
GF.Source.GrammarToSource
|
||||||
|
GF.Grammar.Values
|
||||||
|
GF.Grammar.PrGrammar
|
||||||
|
GF.Grammar.Macros
|
||||||
|
GF.Grammar.Lockfield
|
||||||
|
GF.Grammar.Refresh
|
||||||
|
GF.Grammar.MMacros
|
||||||
|
GF.Grammar.Abstract
|
||||||
|
GF.Grammar.Lookup
|
||||||
|
GF.Compile.RemoveLiT
|
||||||
|
GF.Grammar.LookAbs
|
||||||
|
GF.Compile.TC
|
||||||
|
GF.Grammar.Unify
|
||||||
|
GF.Compile.TypeCheck
|
||||||
|
GF.Compile.Update
|
||||||
|
GF.Compile.OptimizeGF
|
||||||
|
GF.Infra.CheckM
|
||||||
|
GF.Grammar.AppPredefined
|
||||||
|
GF.Grammar.PatternMatch
|
||||||
|
GF.Compile.CheckGrammar
|
||||||
|
GF.Compile.BackOpt
|
||||||
|
GF.Compile.Extend
|
||||||
|
GF.Compile.Rename
|
||||||
|
GF.Compile.ReadFiles
|
||||||
|
GF.Compile.GrammarToGFCC
|
||||||
|
GF.Compile.Compute
|
||||||
|
GF.Compile.Optimize
|
||||||
|
GF.Compile.ModDeps
|
||||||
|
GF.Compile.Rebuild
|
||||||
|
GF.Source.SourceToGrammar
|
||||||
|
GF.Compile.GetGrammar
|
||||||
|
GF.Compile
|
||||||
|
GF.Command.Importing
|
||||||
|
GFC
|
||||||
|
GF.System.NoReadline
|
||||||
|
GF.System.Readline
|
||||||
|
GFI
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
Name: gf-embed
|
|
||||||
Version: 2.8
|
|
||||||
Cabal-version: >= 1.2
|
|
||||||
Build-type: Simple
|
|
||||||
License: GPL
|
|
||||||
License-file: ../LICENSE
|
|
||||||
Synopsis: Grammatical Framework embedded API.
|
|
||||||
|
|
||||||
Flag split-base
|
|
||||||
|
|
||||||
Library
|
|
||||||
Build-depends: mtl, haskell98
|
|
||||||
if flag(split-base)
|
|
||||||
Build-depends: base >= 3.0, array, containers, directory, random
|
|
||||||
else
|
|
||||||
Build-depends: base < 3.0
|
|
||||||
Ghc-options: -O2
|
|
||||||
Extensions:
|
|
||||||
Exposed-Modules:
|
|
||||||
GF.GFCC.API
|
|
||||||
-- needed by code generated by -haskell
|
|
||||||
GF.GFCC.DataGFCC
|
|
||||||
GF.GFCC.CId
|
|
||||||
Other-modules:
|
|
||||||
GF.Conversion.SimpleToFCFG
|
|
||||||
GF.Data.Assoc
|
|
||||||
GF.Data.Utilities
|
|
||||||
GF.Data.SortedList
|
|
||||||
GF.Data.BacktrackM
|
|
||||||
GF.Data.ErrM
|
|
||||||
GF.Data.GeneralDeduction
|
|
||||||
GF.Data.RedBlackSet
|
|
||||||
GF.Text.UTF8
|
|
||||||
GF.Infra.CompactPrint
|
|
||||||
GF.Infra.PrintClass
|
|
||||||
GF.Formalism.FCFG
|
|
||||||
GF.Formalism.Utilities
|
|
||||||
GF.Parsing.FCFG
|
|
||||||
GF.Parsing.FCFG.PInfo
|
|
||||||
GF.Parsing.FCFG.Range
|
|
||||||
GF.Parsing.FCFG.Active
|
|
||||||
GF.Command.PPrTree
|
|
||||||
GF.Command.AbsGFShell
|
|
||||||
GF.Command.PrintGFShell
|
|
||||||
GF.Command.ParGFShell
|
|
||||||
GF.Command.LexGFShell
|
|
||||||
GF.GFCC.Macros
|
|
||||||
GF.GFCC.Generate
|
|
||||||
GF.GFCC.Linearize
|
|
||||||
GF.GFCC.Raw.AbsGFCCRaw
|
|
||||||
GF.GFCC.Raw.ParGFCCRaw
|
|
||||||
GF.GFCC.Raw.ConvertGFCC
|
|
||||||
@@ -4,7 +4,7 @@ module GF.Command.PrintGFShell where
|
|||||||
-- pretty-printer generated by the BNF converter
|
-- pretty-printer generated by the BNF converter
|
||||||
|
|
||||||
import GF.Command.AbsGFShell
|
import GF.Command.AbsGFShell
|
||||||
import Char
|
import Data.Char
|
||||||
|
|
||||||
-- the top-level printing method
|
-- the top-level printing method
|
||||||
printTree :: Print a => a -> String
|
printTree :: Print a => a -> String
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ import Data.Char (toUpper)
|
|||||||
import Data.List (nub)
|
import Data.List (nub)
|
||||||
import qualified Data.ByteString.Char8 as BS
|
import qualified Data.ByteString.Char8 as BS
|
||||||
import Control.Monad (foldM)
|
import Control.Monad (foldM)
|
||||||
import System (system)
|
import System.Cmd (system)
|
||||||
|
|
||||||
getSourceModule :: Options -> FilePath -> IOE SourceModule
|
getSourceModule :: Options -> FilePath -> IOE SourceModule
|
||||||
getSourceModule opts file0 = do
|
getSourceModule opts file0 = do
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ import Data.Char
|
|||||||
import Data.List
|
import Data.List
|
||||||
import qualified Data.ByteString.Char8 as BS
|
import qualified Data.ByteString.Char8 as BS
|
||||||
import qualified Data.Map as Map
|
import qualified Data.Map as Map
|
||||||
import System
|
|
||||||
import System.Time
|
import System.Time
|
||||||
import System.Directory
|
import System.Directory
|
||||||
import System.FilePath
|
import System.FilePath
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ module GF.JavaScript.PrintJS (printTree, Doc, Print(..)) where
|
|||||||
-- pretty-printer generated by the BNF converter
|
-- pretty-printer generated by the BNF converter
|
||||||
|
|
||||||
import GF.JavaScript.AbsJS
|
import GF.JavaScript.AbsJS
|
||||||
import Char
|
import Data.Char
|
||||||
|
|
||||||
-- the top-level printing method
|
-- the top-level printing method
|
||||||
printTree :: Print a => a -> String
|
printTree :: Print a => a -> String
|
||||||
|
|||||||
Reference in New Issue
Block a user