reintroduce the compiler API

This commit is contained in:
Krasimir Angelov
2024-01-18 20:58:10 +01:00
parent 282c6fc50f
commit a82095d117
138 changed files with 84 additions and 342 deletions

View File

@@ -55,9 +55,9 @@ flag network-uri
description: Get Network.URI from the network-uri package
default: True
executable gf
main-is: gf-main.hs
library
default-language: Haskell2010
hs-source-dirs: api
build-depends: pgf2 >= 4.0.0,
base >= 4.6 && <5,
array,
@@ -70,20 +70,28 @@ executable gf
ghc-prim,
filepath, directory>=1.2, time,
process, haskeline, parallel>=3, json
ghc-options: -threaded
exposed-modules:
GF.Interactive
GF.Compiler
GF.Grammar
GF.Term
GF.Compile
GF.CompileInParallel
GF.Data.ErrM
GF.Infra.CheckM
GF.Infra.Option
GF.Infra.UseIO
GF.Infra.BuildInfo
other-modules:
GF
GF.Support
GF.Text.Pretty
GF.Text.Lexing
GF.Grammar.Canonical
GF.Main GF.Compiler GF.Interactive
GF.CompileOne GF.Compile.GetGrammar
GF.Compile GF.CompileInParallel GF.CompileOne GF.Compile.GetGrammar
GF.Grammar
GF.Data.Operations GF.Infra.Option GF.Infra.UseIO
GF.Data.Operations
GF.Command.Abstract
GF.Command.CommandInfo
@@ -124,7 +132,6 @@ executable gf
GF.Compile.TypeCheck.TC
GF.Compile.Update
GF.Data.BacktrackM
GF.Data.ErrM
GF.Data.Graph
GF.Data.Graphviz
GF.Data.Relation
@@ -148,8 +155,6 @@ executable gf
GF.Grammar.ShowTerm
GF.Grammar.Unify
GF.Grammar.Values
GF.Infra.BuildInfo
GF.Infra.CheckM
GF.Infra.Concurrency
GF.Infra.Dependencies
GF.Infra.GetOpt
@@ -226,6 +231,14 @@ executable gf
else
other-modules: GF.System.NoSignal
executable gf
main-is: gf-main.hs
other-modules:
Paths_gf
default-language: Haskell2010
build-depends: base >= 4.6 && <5, directory>=1.2, gf
ghc-options: -threaded
test-suite gf-tests
type: exitcode-stdio-1.0
main-is: run.hs
@@ -238,87 +251,3 @@ test-suite gf-tests
process >= 1.4.3 && < 1.7
build-tool-depends: gf:gf
default-language: Haskell2010
executable gf-scribe
main-is: gf-scribe.hs
default-language: Haskell2010
build-depends: pgf2 >= 4.0.0,
base >= 4.6 && <5,
array,
containers,
bytestring,
utf8-string,
random,
pretty,
mtl,
ghc-prim,
filepath, directory>=1.2, time,
http-slim,
process, haskeline, parallel>=3, json
if os(windows)
build-depends:
Win32 >= 2.3.1.1 && < 2.7
else
build-depends:
terminfo >=0.4.0 && < 0.5,
unix >= 2.7.2 && < 2.8
ghc-options: -threaded
other-modules:
GF.Scribe
Data.Binary
Data.Binary.Builder
Data.Binary.Get
Data.Binary.IEEE754
Data.Binary.Put
GF.Compile.Update
GF.Compile.Compute.Concrete
GF.Compile.CheckGrammar
GF.Compile.GenerateBC
GF.Compile.GeneratePMCFG
GF.Compile.GetGrammar
GF.Compile.GrammarToPGF
GF.Compile.OptimizePGF
GF.Compile.ReadFiles
GF.Compile.Rename
GF.Compile.SubExOpt
GF.Compile.Tags
GF.Compile.TypeCheck.Abstract
GF.Compile.TypeCheck.Concrete
GF.Compile.TypeCheck.ConcreteNew
GF.Compile.TypeCheck.Primitives
GF.Compile.TypeCheck.TC
GF.Compile
GF.CompileOne
GF.Data.ErrM
GF.Data.Operations
GF.Data.Relation
GF.Data.Str
GF.Data.Utilities
GF.Grammar
GF.Grammar.Lexer
GF.Grammar.Parser
GF.Grammar.BNFC
GF.Grammar.CFG
GF.Grammar.EBNF
GF.Grammar.Grammar
GF.Grammar.Lockfield
GF.Grammar.Lookup
GF.Grammar.Macros
GF.Grammar.Predef
GF.Grammar.Printer
GF.Grammar.Values
GF.Grammar.Binary
GF.Grammar.PatternMatch
GF.Grammar.Unify
GF.Infra.CheckM
GF.Infra.GetOpt
GF.Infra.Ident
GF.Infra.Location
GF.Infra.Option
GF.Infra.UseIO
GF.System.Catch
GF.System.Console
GF.System.Directory
GF.Text.Pretty
GF.Text.Coding
Paths_gf