mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-17 16:59:34 -06:00
options for no-pmcfg compilation in lib/src/Make.hs (for library developers, rather than users); adding Thai to some demo and documentation
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
--# -path=.:alltenses
|
||||
|
||||
abstract MiniGrammar = Lexicon, Grammar [
|
||||
|
||||
-- the "mini" resource of GF book, chapter 9
|
||||
@@ -130,9 +128,9 @@ fun
|
||||
this_Det, these_Det : Det ;
|
||||
that_Det, those_Det : Det ;
|
||||
i_NP, youSg_NP, he_NP, she_NP, we_NP, youPl_NP, they_NP : NP ;
|
||||
SubjS : S -> Subj -> S -> S ; -- she walks because we run
|
||||
-- SubjS : S -> Subj -> S -> S ; -- she walks because we run
|
||||
CompAdv : Adv -> VP ; -- be here
|
||||
SlashV2 : NP -> V2 -> ClSlash ; -- she loves
|
||||
-- SlashV2 : NP -> V2 -> ClSlash ; -- she loves
|
||||
SlashPrep : Cl -> Prep -> ClSlash ; -- she walks with
|
||||
AdvCN : CN -> Prep -> NP -> CN ; -- man in the city
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
--# -path=.:alltenses
|
||||
--# -path=.:full:alltenses
|
||||
|
||||
concrete MiniGrammarEng of MiniGrammar = LexiconEng, GrammarEng [
|
||||
|
||||
@@ -49,6 +49,7 @@ concrete MiniGrammarEng of MiniGrammar = LexiconEng, GrammarEng [
|
||||
TTAnt, -- Tense -> Ant -> Temp ;
|
||||
PPos, PNeg, -- Pol,
|
||||
TPres, TPast, TFut, TCond, -- Tense,
|
||||
STense, SCond, SFut, SPast, SPres, -- scand tense
|
||||
ASimul, AAnter,
|
||||
|
||||
and_Conj, or_Conj, -- Conj,
|
||||
@@ -122,7 +123,7 @@ lin
|
||||
ComplV2 v np = mkVP v np ;
|
||||
ModCN ap cn = lin CN (mkCN <lin AP ap : AP> <lin CN cn : CN>) ;
|
||||
CompAP ap = mkVP (lin AP ap) ;
|
||||
ConjS co x y = mkS co x y ;
|
||||
ConjS co x y = mkS (lin Conj co) (lin S x) (lin S y) ;
|
||||
ConjAP co x y = mkAP co x y ;
|
||||
ConjNP co x y = mkNP co x y ;
|
||||
a_Det = mkDet a_Quant ;
|
||||
@@ -139,9 +140,8 @@ lin
|
||||
youPl_NP = S.youPl_NP ;
|
||||
they_NP = S.they_NP ;
|
||||
-- SubjS s subj s = mkS s (mkAdv subj s) ;
|
||||
CompAdv adv = mkVP adv ;
|
||||
CompAdv adv = mkVP (lin Adv adv) ;
|
||||
-- SlashV2 np v2 = mkClSlash np v2 ;
|
||||
SlashPrep cl p = mkClSlash cl p ;
|
||||
AdvCN cn p pp = mkCN <lin CN cn : CN> (mkAdv p pp) ;
|
||||
|
||||
SlashPrep cl p = mkClSlash (lin Cl cl) <p : Prep> ;
|
||||
AdvCN cn p pp = mkCN <lin CN cn : CN> (mkAdv <p : Prep> <pp : NP>) ;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
src = "Eng"
|
||||
langs = ["Afr","Bul","Cat","Dan","Dut","Fin","Fre","Ger","Ita",
|
||||
"Nep","Nor","Pes","Pol","Pnb","Ron","Rus","Spa","Swe","Urd"]
|
||||
langs = [
|
||||
"Afr", "Bul", "Cat","Dan","Dut",
|
||||
"Fin","Fre","Ger","Ita", -- "Lav",
|
||||
"Nep","Nor","Pes","Pol","Pnb",
|
||||
--- "Ron",
|
||||
"Rus","Spa","Swe","Tha",
|
||||
"Urd"
|
||||
]
|
||||
|
||||
file lng = "MiniGrammar" ++ lng ++ ".gf"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user