mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 11:19:32 -06:00
started Make.hs in resource-1.4; api files for all langs
This commit is contained in:
39
lib/resource-1.4/Make.hs
Normal file
39
lib/resource-1.4/Make.hs
Normal file
@@ -0,0 +1,39 @@
|
||||
module Main where
|
||||
|
||||
import System
|
||||
|
||||
langs = [
|
||||
-- ("arabic", "Ara"),
|
||||
-- ("bulgarian","Bul"),
|
||||
-- ("catalan", "Cat"),
|
||||
("danish", "Dan"),
|
||||
("english", "Eng"),
|
||||
("finnish", "Fin"),
|
||||
("french", "Fre"),
|
||||
("german", "Ger"),
|
||||
-- ("interlingua","Ina"),
|
||||
("italian", "Ita"),
|
||||
("norwegian","Nor"),
|
||||
-- ("russian", "Rus"),
|
||||
("spanish", "Spa"),
|
||||
("swedish", "Swe")
|
||||
]
|
||||
|
||||
|
||||
main = do
|
||||
xx <- getArgs
|
||||
make xx
|
||||
|
||||
make xx = case xx of
|
||||
_ -> do
|
||||
-- mapM_ (gfc . lang) langs
|
||||
-- system $ "cp */*.gfo ../alltenses"
|
||||
mapM_ (gfc . try) langs
|
||||
system $ "cp */*.gfo ../alltenses"
|
||||
|
||||
gfc file = do
|
||||
putStrLn $ "compiling " ++ file
|
||||
system $ "gfc -s " ++ file
|
||||
|
||||
lang (lla,la) = lla ++ "/Lang" ++ la ++ ".gf"
|
||||
try (lla,la) = "api/Try" ++ la ++ ".gf"
|
||||
3
lib/resource-1.4/api/ConstructorsBul.gf
Normal file
3
lib/resource-1.4/api/ConstructorsBul.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource ConstructorsBul = Constructors with (Grammar = GrammarBul) ;
|
||||
3
lib/resource-1.4/api/ConstructorsCat.gf
Normal file
3
lib/resource-1.4/api/ConstructorsCat.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource ConstructorsCat = Constructors with (Grammar = GrammarCat) ;
|
||||
3
lib/resource-1.4/api/ConstructorsDan.gf
Normal file
3
lib/resource-1.4/api/ConstructorsDan.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource ConstructorsDan = Constructors with (Grammar = GrammarDan) ;
|
||||
3
lib/resource-1.4/api/ConstructorsFre.gf
Normal file
3
lib/resource-1.4/api/ConstructorsFre.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource ConstructorsFre = Constructors with (Grammar = GrammarFre) ;
|
||||
3
lib/resource-1.4/api/ConstructorsGer.gf
Normal file
3
lib/resource-1.4/api/ConstructorsGer.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource ConstructorsGer = Constructors with (Grammar = GrammarGer) ;
|
||||
3
lib/resource-1.4/api/ConstructorsIta.gf
Normal file
3
lib/resource-1.4/api/ConstructorsIta.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource ConstructorsIta = Constructors with (Grammar = GrammarIta) ;
|
||||
3
lib/resource-1.4/api/ConstructorsNor.gf
Normal file
3
lib/resource-1.4/api/ConstructorsNor.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource ConstructorsNor = Constructors with (Grammar = GrammarNor) ;
|
||||
3
lib/resource-1.4/api/ConstructorsRus.gf
Normal file
3
lib/resource-1.4/api/ConstructorsRus.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource ConstructorsRus = Constructors with (Grammar = GrammarRus) ;
|
||||
3
lib/resource-1.4/api/ConstructorsSpa.gf
Normal file
3
lib/resource-1.4/api/ConstructorsSpa.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource ConstructorsSpa = Constructors with (Grammar = GrammarSpa) ;
|
||||
3
lib/resource-1.4/api/ConstructorsSwe.gf
Normal file
3
lib/resource-1.4/api/ConstructorsSwe.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource ConstructorsSwe = Constructors with (Grammar = GrammarSwe) ;
|
||||
4
lib/resource-1.4/api/SyntaxBul.gf
Normal file
4
lib/resource-1.4/api/SyntaxBul.gf
Normal file
@@ -0,0 +1,4 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
instance SyntaxBul of Syntax = ConstructorsBul, CatBul, StructuralBul, NumeralBul ;
|
||||
|
||||
4
lib/resource-1.4/api/SyntaxCat.gf
Normal file
4
lib/resource-1.4/api/SyntaxCat.gf
Normal file
@@ -0,0 +1,4 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
instance SyntaxCat of Syntax = ConstructorsCat, CatCat, StructuralCat, NumeralCat ;
|
||||
|
||||
4
lib/resource-1.4/api/SyntaxDan.gf
Normal file
4
lib/resource-1.4/api/SyntaxDan.gf
Normal file
@@ -0,0 +1,4 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
instance SyntaxDan of Syntax = ConstructorsDan, CatDan, StructuralDan, NumeralDan ;
|
||||
|
||||
4
lib/resource-1.4/api/SyntaxFre.gf
Normal file
4
lib/resource-1.4/api/SyntaxFre.gf
Normal file
@@ -0,0 +1,4 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
instance SyntaxFre of Syntax = ConstructorsFre, CatFre, StructuralFre, NumeralFre ;
|
||||
|
||||
4
lib/resource-1.4/api/SyntaxGer.gf
Normal file
4
lib/resource-1.4/api/SyntaxGer.gf
Normal file
@@ -0,0 +1,4 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
instance SyntaxGer of Syntax = ConstructorsGer, CatGer, StructuralGer, NumeralGer ;
|
||||
|
||||
4
lib/resource-1.4/api/SyntaxIta.gf
Normal file
4
lib/resource-1.4/api/SyntaxIta.gf
Normal file
@@ -0,0 +1,4 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
instance SyntaxIta of Syntax = ConstructorsIta, CatIta, StructuralIta, NumeralIta ;
|
||||
|
||||
5
lib/resource-1.4/api/SyntaxNor.gf
Normal file
5
lib/resource-1.4/api/SyntaxNor.gf
Normal file
@@ -0,0 +1,5 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
instance SyntaxNor of Syntax = ConstructorsNor, CatNor, StructuralNor, NumeralNor
|
||||
;
|
||||
|
||||
4
lib/resource-1.4/api/SyntaxRus.gf
Normal file
4
lib/resource-1.4/api/SyntaxRus.gf
Normal file
@@ -0,0 +1,4 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
instance SyntaxRus of Syntax = ConstructorsRus, CatRus, StructuralRus, NumeralRus ;
|
||||
|
||||
4
lib/resource-1.4/api/SyntaxSpa.gf
Normal file
4
lib/resource-1.4/api/SyntaxSpa.gf
Normal file
@@ -0,0 +1,4 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
instance SyntaxSpa of Syntax = ConstructorsSpa, CatSpa, StructuralSpa, NumeralSpa ;
|
||||
|
||||
4
lib/resource-1.4/api/SyntaxSwe.gf
Normal file
4
lib/resource-1.4/api/SyntaxSwe.gf
Normal file
@@ -0,0 +1,4 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
instance SyntaxSwe of Syntax = ConstructorsSwe, CatSwe, StructuralSwe, NumeralSwe ;
|
||||
|
||||
13
lib/resource-1.4/api/TryBul.gf
Normal file
13
lib/resource-1.4/api/TryBul.gf
Normal file
@@ -0,0 +1,13 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource TryBul = SyntaxBul, LexiconBul, ParadigmsBul - [mkAdv] **
|
||||
open (P = ParadigmsBul), in {
|
||||
|
||||
oper
|
||||
|
||||
mkAdv = overload SyntaxBul {
|
||||
mkAdv : Str -> Adv = P.mkAdv ;
|
||||
} ;
|
||||
|
||||
|
||||
}
|
||||
13
lib/resource-1.4/api/TryCat.gf
Normal file
13
lib/resource-1.4/api/TryCat.gf
Normal file
@@ -0,0 +1,13 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource TryCat = SyntaxCat, LexiconCat, ParadigmsCat - [mkAdv] **
|
||||
open (P = ParadigmsCat), in {
|
||||
|
||||
oper
|
||||
|
||||
mkAdv = overload SyntaxCat {
|
||||
mkAdv : Str -> Adv = P.mkAdv ;
|
||||
} ;
|
||||
|
||||
|
||||
}
|
||||
3
lib/resource-1.4/api/TryDan.gf
Normal file
3
lib/resource-1.4/api/TryDan.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource TryDan = SyntaxDan, LexiconDan, ParadigmsDan - [mkAdv] ;
|
||||
@@ -1,4 +1,4 @@
|
||||
--# -path=.:alltenses-1.4:prelude
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource TryEng = SyntaxEng, LexiconEng, ParadigmsEng - [mkAdv] **
|
||||
open (P = ParadigmsEng), in {
|
||||
|
||||
3
lib/resource-1.4/api/TryFre.gf
Normal file
3
lib/resource-1.4/api/TryFre.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource TryFre = SyntaxFre, LexiconFre, ParadigmsFre - [mkAdv] ;
|
||||
3
lib/resource-1.4/api/TryGer.gf
Normal file
3
lib/resource-1.4/api/TryGer.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource TryGer = SyntaxGer, LexiconGer, ParadigmsGer - [mkAdv] ;
|
||||
3
lib/resource-1.4/api/TryIta.gf
Normal file
3
lib/resource-1.4/api/TryIta.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource TryIta = SyntaxIta, LexiconIta, ParadigmsIta - [mkAdv,in_Prep] ;
|
||||
3
lib/resource-1.4/api/TryNor.gf
Normal file
3
lib/resource-1.4/api/TryNor.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource TryNor = SyntaxNor, LexiconNor, ParadigmsNor - [mkAdv] ;
|
||||
3
lib/resource-1.4/api/TryRus.gf
Normal file
3
lib/resource-1.4/api/TryRus.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource TryRus = SyntaxRus, LexiconRus, ParadigmsRus - [mkAdv] ;
|
||||
3
lib/resource-1.4/api/TrySpa.gf
Normal file
3
lib/resource-1.4/api/TrySpa.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource TrySpa = SyntaxSpa, LexiconSpa, ParadigmsSpa - [mkAdv] ;
|
||||
3
lib/resource-1.4/api/TrySwe.gf
Normal file
3
lib/resource-1.4/api/TrySwe.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
--# -path=.:alltenses:prelude
|
||||
|
||||
resource TrySwe = SyntaxSwe, LexiconSwe, ParadigmsSwe - [mkAdv] ;
|
||||
@@ -111,6 +111,7 @@ concrete StructuralGer of Structural = CatGer **
|
||||
when_IAdv = ss "wann" ;
|
||||
when_Subj = ss "wenn" ;
|
||||
where_IAdv = ss "wo" ;
|
||||
which_IQuant = {s = \\n => (detLikeAdj n "welch").s} ;
|
||||
|
||||
---b whichPl_IDet = detLikeAdj Pl "welch" ;
|
||||
---b whichSg_IDet = detLikeAdj Sg "welch" ;
|
||||
|
||||
Reference in New Issue
Block a user