mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
moved PGF.ToApi to GF.Compile.ToAPI
This commit is contained in:
@@ -36,7 +36,9 @@ main = do
|
|||||||
_ -> return ()
|
_ -> return ()
|
||||||
|
|
||||||
compileOne modu = do
|
compileOne modu = do
|
||||||
let comm = "gf -make -s -optimize-pgf -name=" ++ modu ++ " " ++ modu ++ ".gf"
|
let comm = "gf -make -s -optimize-pgf -name=" ++
|
||||||
|
modu ++ " " ++ modu ++ ".gf" ++
|
||||||
|
" +RTS -K32M"
|
||||||
putStrLn comm
|
putStrLn comm
|
||||||
system comm
|
system comm
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ concrete SentencesFin of Sentences = NumeralFin ** SentencesI -
|
|||||||
(Lexicon = LexiconFin) **
|
(Lexicon = LexiconFin) **
|
||||||
open SyntaxFin, ExtraFin, (P = ParadigmsFin), (V = VerbFin), Prelude in {
|
open SyntaxFin, ExtraFin, (P = ParadigmsFin), (V = VerbFin), Prelude in {
|
||||||
|
|
||||||
|
flags optimize = noexpand ;
|
||||||
|
|
||||||
lin
|
lin
|
||||||
Is item prop = mkCl item (V.UseComp (CompPartAP prop)) ; -- tämä pizza on herkullista
|
Is item prop = mkCl item (V.UseComp (CompPartAP prop)) ; -- tämä pizza on herkullista
|
||||||
IsMass mass prop = mkCl (mkNP a_Det mass) (V.UseComp (CompPartAP prop)) ; -- pizza on herkullista
|
IsMass mass prop = mkCl (mkNP a_Det mass) (V.UseComp (CompPartAP prop)) ; -- pizza on herkullista
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ concrete WordsFin of Words = SentencesFin **
|
|||||||
SyntaxFin, ParadigmsFin, (L = LexiconFin),
|
SyntaxFin, ParadigmsFin, (L = LexiconFin),
|
||||||
Prelude, (E = ExtraFin) in {
|
Prelude, (E = ExtraFin) in {
|
||||||
|
|
||||||
|
flags optimize = noexpand ;
|
||||||
|
|
||||||
lin
|
lin
|
||||||
|
|
||||||
-- kinds
|
-- kinds
|
||||||
|
|||||||
2
gf.cabal
2
gf.cabal
@@ -47,7 +47,6 @@ library
|
|||||||
PGF.Forest
|
PGF.Forest
|
||||||
PGF.Optimize
|
PGF.Optimize
|
||||||
PGF.Signature
|
PGF.Signature
|
||||||
PGF.ToAPI
|
|
||||||
GF.Data.TrieMap
|
GF.Data.TrieMap
|
||||||
GF.Data.Utilities
|
GF.Data.Utilities
|
||||||
GF.Data.SortedList
|
GF.Data.SortedList
|
||||||
@@ -124,6 +123,7 @@ executable gf
|
|||||||
GF.Compile.Rename
|
GF.Compile.Rename
|
||||||
GF.Compile.ReadFiles
|
GF.Compile.ReadFiles
|
||||||
GF.Compile.GrammarToPGF
|
GF.Compile.GrammarToPGF
|
||||||
|
GF.Compile.ToAPI
|
||||||
GF.Compile.TypeCheck.Abstract
|
GF.Compile.TypeCheck.Abstract
|
||||||
GF.Compile.TypeCheck.Concrete
|
GF.Compile.TypeCheck.Concrete
|
||||||
GF.Compile.TypeCheck.TC
|
GF.Compile.TypeCheck.TC
|
||||||
|
|||||||
@@ -20,11 +20,11 @@ import PGF.Macros
|
|||||||
import PGF.Data ----
|
import PGF.Data ----
|
||||||
import PGF.Morphology
|
import PGF.Morphology
|
||||||
import PGF.Printer
|
import PGF.Printer
|
||||||
import PGF.ToAPI
|
|
||||||
import PGF.Probabilistic -- (getProbsFromFile,prProbabilities,defaultProbabilities)
|
import PGF.Probabilistic -- (getProbsFromFile,prProbabilities,defaultProbabilities)
|
||||||
import PGF.Generate (generateRandomFrom) ----
|
import PGF.Generate (generateRandomFrom) ----
|
||||||
import PGF.Tree (Tree(Fun), expr2tree, tree2expr)
|
import PGF.Tree (Tree(Fun), expr2tree, tree2expr)
|
||||||
import GF.Compile.Export
|
import GF.Compile.Export
|
||||||
|
import GF.Compile.ToAPI
|
||||||
import GF.Compile.ExampleBased
|
import GF.Compile.ExampleBased
|
||||||
import GF.Infra.Option (noOptions, readOutputFormat)
|
import GF.Infra.Option (noOptions, readOutputFormat)
|
||||||
import GF.Infra.UseIO
|
import GF.Infra.UseIO
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module GF.Compile.ExampleBased (
|
|||||||
import PGF
|
import PGF
|
||||||
import PGF.Probabilistic
|
import PGF.Probabilistic
|
||||||
import PGF.Morphology
|
import PGF.Morphology
|
||||||
import PGF.ToAPI
|
import GF.Compile.ToAPI
|
||||||
|
|
||||||
import Data.List
|
import Data.List
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module PGF.ToAPI
|
module GF.Compile.ToAPI
|
||||||
(stringToAPI,exprToAPI)
|
(stringToAPI,exprToAPI)
|
||||||
where
|
where
|
||||||
|
|
||||||
@@ -126,10 +126,7 @@ module PGF(
|
|||||||
readProbabilitiesFromFile,
|
readProbabilitiesFromFile,
|
||||||
|
|
||||||
-- * Browsing
|
-- * Browsing
|
||||||
browse,
|
browse
|
||||||
-- * ToAPI
|
|
||||||
exprToAPI,
|
|
||||||
stringToAPI
|
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import PGF.CId
|
import PGF.CId
|
||||||
@@ -144,7 +141,6 @@ import PGF.Expr (Tree)
|
|||||||
import PGF.Morphology
|
import PGF.Morphology
|
||||||
import PGF.Data
|
import PGF.Data
|
||||||
import PGF.Binary
|
import PGF.Binary
|
||||||
import PGF.ToAPI
|
|
||||||
import qualified PGF.Forest as Forest
|
import qualified PGF.Forest as Forest
|
||||||
import qualified PGF.Parse as Parse
|
import qualified PGF.Parse as Parse
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user