mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-24 02:12:50 -06:00
a simpler and better Demo file set for resource grammars
This commit is contained in:
@@ -10,7 +10,7 @@ import System.Exit
|
|||||||
-- Make commands for compiling and testing resource grammars.
|
-- Make commands for compiling and testing resource grammars.
|
||||||
-- usage: runghc Make ((present? OPT?) | (clone FILE))? LANGS?
|
-- usage: runghc Make ((present? OPT?) | (clone FILE))? LANGS?
|
||||||
-- where
|
-- where
|
||||||
-- - OPT = (lang | api | math | pgf | test | demo | parse | clean)
|
-- - OPT = (lang | api | math | pgf | test | parse | clean | clone)
|
||||||
-- - LANGS has the form e.g. langs=Eng,Fin,Rus
|
-- - LANGS has the form e.g. langs=Eng,Fin,Rus
|
||||||
-- - clone with a flag file=FILENAME clones the file to the specified languages,
|
-- - clone with a flag file=FILENAME clones the file to the specified languages,
|
||||||
-- by replacing the 3-letter language name of the original in both
|
-- by replacing the 3-letter language name of the original in both
|
||||||
@@ -67,7 +67,7 @@ langsMinimal = langs `only` ["Ara","Eng","Bul","Rus"]
|
|||||||
langsTest = langsLang `except` ["Ara","Bul","Cat","Hin","Rus","Spa","Tha"]
|
langsTest = langsLang `except` ["Ara","Bul","Cat","Hin","Rus","Spa","Tha"]
|
||||||
|
|
||||||
-- languages for which to run demo test
|
-- languages for which to run demo test
|
||||||
langsDemo = langsLang `except` ["Ara","Hin","Ina","Tha"]
|
langsDemo = langsLang `except` ["Ara","Hin","Ina","Lat","Tha"]
|
||||||
|
|
||||||
-- languages for which to compile parsing grammars
|
-- languages for which to compile parsing grammars
|
||||||
langsParse = langs `only` ["Eng"]
|
langsParse = langs `only` ["Eng"]
|
||||||
@@ -115,9 +115,10 @@ make xx = do
|
|||||||
ifxx "test" $ do
|
ifxx "test" $ do
|
||||||
let ls = optl langsTest
|
let ls = optl langsTest
|
||||||
gf (treeb "Lang" ls) $ unwords [dir ++ "/Lang" ++ la ++ ".gfo" | (_,la) <- ls]
|
gf (treeb "Lang" ls) $ unwords [dir ++ "/Lang" ++ la ++ ".gfo" | (_,la) <- ls]
|
||||||
ifxx "demo" $ do
|
-- use 'make demo'
|
||||||
let ls = optl langsDemo
|
-- ifxx "demo" $ do
|
||||||
gf (demos "Demo" ls) $ unwords ["demo/Demo" ++ la ++ ".gf" | (_,la) <- ls]
|
-- let ls = optl langsDemo
|
||||||
|
-- gf (demos "Demo" ls) $ unwords ["demo/Demo" ++ la ++ ".gf" | (_,la) <- ls]
|
||||||
ifxx "parse" $ do
|
ifxx "parse" $ do
|
||||||
mapM_ (gfc pres [] . parse) (optl langsParse)
|
mapM_ (gfc pres [] . parse) (optl langsParse)
|
||||||
copy "parse/*.gfo parse/oald/*.gfo" dir
|
copy "parse/*.gfo parse/oald/*.gfo" dir
|
||||||
|
|||||||
@@ -41,7 +41,16 @@ test:
|
|||||||
$(RUNMAKE) test
|
$(RUNMAKE) test
|
||||||
|
|
||||||
demo:
|
demo:
|
||||||
$(RUNMAKE) demo
|
gf -make -name=Demo1 demo/DemoDan.gf demo/DemoDut.gf demo/DemoEng.gf
|
||||||
|
gf -make -name=Demo2 demo/DemoFin.gf +RTS -K48M
|
||||||
|
gf -make -name=Demo3 demo/DemoFre.gf demo/DemoGer.gf demo/DemoIta.gf demo/DemoNor.gf demo/DemoPol.gf +RTS -K48M
|
||||||
|
gf -make -name=Demo4 -parser=off demo/DemoRon.gf +RTS -K48M
|
||||||
|
gf -make -name=Demo5 demo/DemoRus.gf demo/DemoSpa.gf demo/DemoSwe.gf
|
||||||
|
gf -make Demo1.pgf Demo2.pgf Demo3.pgf Demo4.pgf Demo5.pgf
|
||||||
|
rm Demo?.pgf
|
||||||
|
|
||||||
|
demoex:
|
||||||
|
echo "gr -number=100 -cat=S | l -treebank | ps -to_html | wf -file=resdemo.html" | gf Demo.pgf
|
||||||
|
|
||||||
parse:
|
parse:
|
||||||
$(RUNMAKE) parse
|
$(RUNMAKE) parse
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
|
|
||||||
PredVS : NP -> VS -> S -> Cl ;
|
|
||||||
PredVVV2A : NP -> VV -> V2A -> NP -> AP -> Cl ;
|
|
||||||
RelCNAdvPrep : CN -> NP -> V -> Adv -> Prep -> CN ;
|
|
||||||
|
|
||||||
PredVS np vs s = PredVP np (ComplVS vs s) ;
|
|
||||||
|
|
||||||
PredVVV2A np vv v2 np2 ap = PredVP np (ComplVV vv (ComplSlash (SlashV2A v2 ap) np2)) ;
|
|
||||||
|
|
||||||
RelCNAdvPrep cn np v adv prep = RelCN cn (UseRCl TPast ASimul PPos
|
|
||||||
(RelSlash IdRP (SlashPrep (PredVP np (AdvVP (UseV v) adv)) prep))) ;
|
|
||||||
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
abstract Clause = Cat ** {
|
|
||||||
|
|
||||||
fun
|
|
||||||
PredV : NP -> V -> Cl ;
|
|
||||||
PredV2 : NP -> V2 -> NP -> Cl ;
|
|
||||||
PredAP : NP -> AP -> Cl ;
|
|
||||||
PredAdv : NP -> Adv -> Cl ;
|
|
||||||
|
|
||||||
UseCl : Temp -> Pol -> Cl -> S ;
|
|
||||||
|
|
||||||
QuestV : IP -> V -> QCl ;
|
|
||||||
QuestV2 : IP -> V2 -> NP -> QCl ;
|
|
||||||
-- QuestV2Slash : IP -> NP -> V2 -> QCl ;
|
|
||||||
|
|
||||||
UseQCl : Temp -> Pol -> QCl -> QS ;
|
|
||||||
|
|
||||||
ImpV : V -> Imp ;
|
|
||||||
-- ImpV2 : V2 -> NP -> Imp ;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
concrete ClauseAra of Clause = CatAra ** ClauseI
|
|
||||||
with (Grammar = GrammarAra) ;
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
concrete ClauseBul of Clause = CatBul ** ClauseI with (Grammar = GrammarBul) ;
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
concrete ClauseCat of Clause = CatCat ** ClauseI with (Grammar = GrammarCat) ;
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
concrete ClauseDan of Clause = CatDan ** ClauseI with (Grammar = GrammarDan) ;
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
concrete ClauseEng of Clause = CatEng ** ClauseI with (Grammar = GrammarEng) ;
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
concrete ClauseFin of Clause = CatFin ** ClauseI with (Grammar = GrammarFin) ;
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
concrete ClauseFre of Clause = CatFre ** ClauseI with (Grammar = GrammarFre) ;
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
concrete ClauseGer of Clause = CatGer ** ClauseI with (Grammar = GrammarGer) ;
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
incomplete concrete ClauseI of Clause = Cat ** open Grammar in {
|
|
||||||
|
|
||||||
lin
|
|
||||||
PredV np v = PredVP np (UseV v) ;
|
|
||||||
PredV2 s v o = PredVP s (ComplSlash (SlashV2a v) o) ;
|
|
||||||
PredAP s a = PredVP s (UseComp (CompAP a)) ;
|
|
||||||
PredAdv s a = PredVP s (UseComp (CompAdv a)) ;
|
|
||||||
|
|
||||||
UseCl = Grammar.UseCl ;
|
|
||||||
|
|
||||||
QuestV np v = QuestVP np (UseV v) ;
|
|
||||||
QuestV2 s v o = QuestVP s (ComplSlash (SlashV2a v) o) ;
|
|
||||||
-- QuestV2Slash ip s v = QuestSlash ip (SlashVP s (SlashV2a v)) ;
|
|
||||||
|
|
||||||
UseQCl = Grammar.UseQCl ;
|
|
||||||
|
|
||||||
ImpV v = ImpVP (UseV v) ;
|
|
||||||
-- ImpV2 v o = ImpVP (ComplSlash (SlashV2a v) o) ;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
concrete ClauseIta of Clause = CatIta ** ClauseI with (Grammar = GrammarIta) ;
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
concrete ClauseNor of Clause = CatNor ** ClauseI with (Grammar = GrammarNor) ;
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
concrete ClauseRus of Clause = CatRus ** ClauseI with (Grammar = GrammarRus) ;
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
concrete ClauseSpa of Clause = CatSpa ** ClauseI with (Grammar = GrammarSpa) ;
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
concrete ClauseSwe of Clause = CatSwe ** ClauseI with (Grammar = GrammarSwe) ;
|
|
||||||
@@ -1,21 +1,30 @@
|
|||||||
abstract Demo =
|
abstract Demo =
|
||||||
Noun - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
Lang - [
|
||||||
-- Verb,
|
PredetNP, PPartNP, AdvNP, RelNP, DetNP, DetQuantOrd,
|
||||||
Clause, --
|
NumDigits, AdNum, OrdDigits, OrdNumeral, OrdSuperl, MassNP,
|
||||||
Adjective - [SentAP,ReflA2],
|
ComplN2, ComplN3, UseN2, Use2N3, Use3N3, AdjCN, RelCN,
|
||||||
Adverb,
|
AdvCN, SentCN, ApposCN,
|
||||||
Numeral,
|
PassV2, CompAdv,
|
||||||
-- Sentence,
|
-- CompNP,
|
||||||
Question - [QuestVP,QuestSlash],
|
SlashV2V, SlashV2VNP, ---
|
||||||
---- Relative,
|
ComparA, ComplA2, ReflA2, UseA2, UseComparA, CAdvAP, AdjOrd, SentAP, AdAP,
|
||||||
---- Conjunction,
|
PredSCVP, AdvSlash, SlashPrep, SlashVS,
|
||||||
Phrase,
|
EmbedS, EmbedQS, EmbedVP, UseSlash, AdvS, RelS,
|
||||||
---- Text,
|
CompIP,
|
||||||
---- Idiom,
|
PConjConj, VocNP, UttVP,
|
||||||
Structural - [everybody_NP,everything_NP,something_NP],
|
FunRP,
|
||||||
Lexicon, Tense ** {
|
nothing_NP, nobody_NP, please_Voc, otherwise_PConj, therefore_PConj, but_PConj,
|
||||||
|
language_title_Utt, whatPl_IP, whoPl_IP, if_then_Conj, either7or_DConj,
|
||||||
|
both7and_DConj, much_Det, that_Subj, no_Quant,
|
||||||
|
ImpersCl, GenericCl, CleftNP, CleftAdv, ProgrVP, ImpPl1, ImpP3,
|
||||||
|
-- ExistNP, ---
|
||||||
|
ConsNP, ConsAdv, ConsS, ConsRS, ConsAP
|
||||||
|
]
|
||||||
|
** {
|
||||||
|
|
||||||
flags startcat = S ;
|
fun
|
||||||
|
AdjN : AP -> N -> CN ;
|
||||||
|
AdAdj : AdA -> A -> AP ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoAra of Demo =
|
concrete DemoAra of Demo = LangAra **
|
||||||
NounAra - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,
|
open LangAra in {
|
||||||
ApposCN,MassNP,DetNP,ComplN3,Use2N3,Use3N3,AdvNP],
|
|
||||||
-- VerbAra,
|
|
||||||
ClauseAra, --
|
|
||||||
AdjectiveAra - [SentAP,ComplA2,UseA2,DemoA2],
|
|
||||||
AdverbAra,
|
|
||||||
NumeralAra,
|
|
||||||
---- SentenceAra,
|
|
||||||
QuestionAra - [QuestVP,QuestSlash],
|
|
||||||
---- RelativeAra,
|
|
||||||
---- ConjunctionAra,
|
|
||||||
---- PhraseAra,
|
|
||||||
---- TextX,
|
|
||||||
---- IdiomAra,
|
|
||||||
StructuralAra - [everybody_NP,everything_NP,something_NP],
|
|
||||||
LexiconAra
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
} ;
|
}
|
||||||
|
|||||||
@@ -1,16 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoBul of Demo =
|
concrete DemoBul of Demo = LangBul **
|
||||||
NounBul,
|
open LangBul in {
|
||||||
ClauseBul,
|
|
||||||
AdjectiveBul,
|
|
||||||
AdverbBul,
|
|
||||||
NumeralBul,
|
|
||||||
QuestionBul,
|
|
||||||
StructuralBul,
|
|
||||||
LexiconBul
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags language = bg; unlexer = text ; lexer = text ;
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
} ;
|
}
|
||||||
|
|||||||
@@ -1,16 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoCat of Demo =
|
concrete DemoCat of Demo = LangCat **
|
||||||
NounCat,
|
open LangCat in {
|
||||||
ClauseCat,
|
|
||||||
AdjectiveCat,
|
|
||||||
AdverbCat,
|
|
||||||
NumeralCat,
|
|
||||||
QuestionCat,
|
|
||||||
StructuralCat,
|
|
||||||
LexiconCat
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags language = ca; unlexer = text ; lexer = text ;
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
} ;
|
}
|
||||||
|
|||||||
@@ -1,16 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoDan of Demo =
|
concrete DemoDan of Demo = LangDan **
|
||||||
NounDan,
|
open LangDan in {
|
||||||
ClauseDan,
|
|
||||||
AdjectiveDan,
|
|
||||||
AdverbDan,
|
|
||||||
NumeralDan,
|
|
||||||
QuestionDan,
|
|
||||||
StructuralDan,
|
|
||||||
LexiconDan, TenseX
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags language = da; unlexer = text ; lexer = text ;
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
} ;
|
}
|
||||||
|
|||||||
10
lib/src/demo/DemoDut.gf
Normal file
10
lib/src/demo/DemoDut.gf
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
--# -path=.:alltenses
|
||||||
|
|
||||||
|
concrete DemoDut of Demo = LangDut **
|
||||||
|
open LangDut in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,16 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoEng of Demo =
|
concrete DemoEng of Demo = LangEng **
|
||||||
NounEng,
|
open LangEng in {
|
||||||
ClauseEng,
|
|
||||||
AdjectiveEng,
|
|
||||||
AdverbEng,
|
|
||||||
NumeralEng,
|
|
||||||
QuestionEng,
|
|
||||||
StructuralEng,
|
|
||||||
LexiconEng
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags language = en; unlexer = text ; lexer = text ;
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
} ;
|
}
|
||||||
|
|||||||
@@ -1,16 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoFin of Demo =
|
concrete DemoFin of Demo = LangFin **
|
||||||
NounFin,
|
open LangFin in {
|
||||||
ClauseFin,
|
|
||||||
AdjectiveFin,
|
|
||||||
AdverbFin,
|
|
||||||
NumeralFin,
|
|
||||||
QuestionFin,
|
|
||||||
StructuralFin,
|
|
||||||
LexiconFin
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags language = fi; unlexer = text ; lexer = text ;
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
} ;
|
}
|
||||||
|
|||||||
@@ -1,16 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoFre of Demo =
|
concrete DemoFre of Demo = LangFre **
|
||||||
NounFre,
|
open LangFre in {
|
||||||
ClauseFre,
|
|
||||||
AdjectiveFre,
|
|
||||||
AdverbFre,
|
|
||||||
NumeralFre,
|
|
||||||
QuestionFre,
|
|
||||||
StructuralFre,
|
|
||||||
LexiconFre
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags language = fr; unlexer = text ; lexer = text ;
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
} ;
|
}
|
||||||
|
|||||||
@@ -1,16 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoGer of Demo =
|
concrete DemoGer of Demo = LangGer **
|
||||||
NounGer,
|
open LangGer in {
|
||||||
ClauseGer,
|
|
||||||
AdjectiveGer,
|
|
||||||
AdverbGer,
|
|
||||||
NumeralGer,
|
|
||||||
QuestionGer,
|
|
||||||
StructuralGer,
|
|
||||||
LexiconGer
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags language = de; unlexer = text ; lexer = text ;
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
} ;
|
}
|
||||||
|
|||||||
@@ -1,24 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoHin of Demo =
|
concrete DemoHin of Demo = LangHin **
|
||||||
NounHin - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,
|
open LangHin in {
|
||||||
ApposCN,MassNP,DetNP,ComplN3,Use2N3,Use3N3,AdvNP],
|
|
||||||
-- VerbHin,
|
|
||||||
ClauseHin, --
|
|
||||||
AdjectiveHin - [SentAP,ComplA2,UseA2,DemoA2],
|
|
||||||
AdverbHin,
|
|
||||||
NumeralHin,
|
|
||||||
---- SentenceHin,
|
|
||||||
QuestionHin - [QuestVP,QuestSlash],
|
|
||||||
---- RelativeHin,
|
|
||||||
---- ConjunctionHin,
|
|
||||||
---- PhraseHin,
|
|
||||||
---- TextX,
|
|
||||||
---- IdiomHin,
|
|
||||||
StructuralHin - [everybody_NP,everything_NP,something_NP],
|
|
||||||
LexiconHin
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
} ;
|
}
|
||||||
|
|||||||
@@ -1,24 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoIna of Demo =
|
concrete DemoIna of Demo = LangIna **
|
||||||
NounIna - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,
|
open LangIna in {
|
||||||
ApposCN,MassNP,DetNP,ComplN3,Use2N3,Use3N3,AdvNP],
|
|
||||||
-- VerbIna,
|
|
||||||
ClauseIna, --
|
|
||||||
AdjectiveIna - [SentAP,ComplA2,UseA2,DemoA2],
|
|
||||||
AdverbIna,
|
|
||||||
NumeralIna,
|
|
||||||
---- SentenceIna,
|
|
||||||
QuestionIna - [QuestVP,QuestSlash],
|
|
||||||
---- RelativeIna,
|
|
||||||
---- ConjunctionIna,
|
|
||||||
---- PhraseIna,
|
|
||||||
---- TextX,
|
|
||||||
---- IdiomIna,
|
|
||||||
StructuralIna - [everybody_NP,everything_NP,something_NP],
|
|
||||||
LexiconIna
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
} ;
|
}
|
||||||
|
|||||||
@@ -1,16 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoIta of Demo =
|
concrete DemoIta of Demo = LangIta **
|
||||||
NounIta,
|
open LangIta in {
|
||||||
ClauseIta,
|
|
||||||
AdjectiveIta,
|
|
||||||
AdverbIta,
|
|
||||||
NumeralIta,
|
|
||||||
QuestionIta,
|
|
||||||
StructuralIta,
|
|
||||||
LexiconIta
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags language = it; unlexer = text ; lexer = text ;
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
} ;
|
}
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
--# -path=.:alltenses
|
|
||||||
|
|
||||||
incomplete concrete DemoJ of Demo =
|
|
||||||
Noun - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,
|
|
||||||
ApposCN,MassNP,DetNP,ComplN3,Use2N3,Use3N3,AdvNP],
|
|
||||||
-- Verb,
|
|
||||||
Clause, --
|
|
||||||
Adjective - [SentAP,ComplA2,UseA2,DemoA2],
|
|
||||||
Adverb,
|
|
||||||
Numeral,
|
|
||||||
---- Sentence,
|
|
||||||
Question - [QuestVP,QuestSlash],
|
|
||||||
---- Relative,
|
|
||||||
---- Conjunction,
|
|
||||||
---- Phrase,
|
|
||||||
---- TextX,
|
|
||||||
---- Idiom,
|
|
||||||
Structural - [everybody_NP,everything_NP,something_NP],
|
|
||||||
Lexicon
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
|
||||||
|
|
||||||
} ;
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
--# -path=.:alltenses
|
|
||||||
|
|
||||||
concrete DemoJEng of Demo = DemoJ with
|
|
||||||
(Noun = NounEng),
|
|
||||||
(Clause = ClauseEng), --
|
|
||||||
(Adjective = AdjectiveEng),
|
|
||||||
(Adverb = AdverbEng),
|
|
||||||
(Numeral = NumeralEng),
|
|
||||||
---- Sentence,
|
|
||||||
(Question )- [QuestVP,QuestSlash],
|
|
||||||
---- Relative,
|
|
||||||
---- Conjunction,
|
|
||||||
---- Phrase,
|
|
||||||
---- TextX,
|
|
||||||
---- Idiom,
|
|
||||||
Structural - [everybody_NP,everything_NP,something_NP],
|
|
||||||
Lexicon
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
|
||||||
|
|
||||||
} ;
|
|
||||||
10
lib/src/demo/DemoLat.gf
Normal file
10
lib/src/demo/DemoLat.gf
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
--# -path=.:alltenses
|
||||||
|
|
||||||
|
concrete DemoLat of Demo = LangLat **
|
||||||
|
open LangLat in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,16 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoNor of Demo =
|
concrete DemoNor of Demo = LangNor **
|
||||||
NounNor,
|
open LangNor in {
|
||||||
ClauseNor,
|
|
||||||
AdjectiveNor,
|
|
||||||
AdverbNor,
|
|
||||||
NumeralNor,
|
|
||||||
QuestionNor,
|
|
||||||
StructuralNor,
|
|
||||||
LexiconNor, TenseX
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags language = no; unlexer = text ; lexer = text ;
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
} ;
|
}
|
||||||
|
|||||||
10
lib/src/demo/DemoPol.gf
Normal file
10
lib/src/demo/DemoPol.gf
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
--# -path=.:alltenses
|
||||||
|
|
||||||
|
concrete DemoPol of Demo = LangPol **
|
||||||
|
open LangPol in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
|
}
|
||||||
10
lib/src/demo/DemoRon.gf
Normal file
10
lib/src/demo/DemoRon.gf
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
--# -path=.:alltenses
|
||||||
|
|
||||||
|
concrete DemoRon of Demo = LangRon **
|
||||||
|
open LangRon in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,16 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoRus of Demo =
|
concrete DemoRus of Demo = LangRus **
|
||||||
NounRus,
|
open LangRus in {
|
||||||
ClauseRus,
|
|
||||||
AdjectiveRus,
|
|
||||||
AdverbRus,
|
|
||||||
NumeralRus,
|
|
||||||
QuestionRus,
|
|
||||||
StructuralRus,
|
|
||||||
LexiconRus
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags language = ru; unlexer = text ; lexer = text ;
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
} ;
|
}
|
||||||
|
|||||||
@@ -1,16 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoSpa of Demo =
|
concrete DemoSpa of Demo = LangSpa **
|
||||||
NounSpa,
|
open LangSpa in {
|
||||||
ClauseSpa,
|
|
||||||
AdjectiveSpa,
|
|
||||||
AdverbSpa,
|
|
||||||
NumeralSpa,
|
|
||||||
QuestionSpa,
|
|
||||||
StructuralSpa,
|
|
||||||
LexiconSpa
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags language = es; unlexer = text ; lexer = text ;
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
} ;
|
}
|
||||||
|
|||||||
@@ -1,16 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoSwe of Demo =
|
concrete DemoSwe of Demo = LangSwe **
|
||||||
NounSwe,
|
open LangSwe in {
|
||||||
ClauseSwe,
|
|
||||||
AdjectiveSwe,
|
|
||||||
AdverbSwe,
|
|
||||||
NumeralSwe,
|
|
||||||
QuestionSwe,
|
|
||||||
StructuralSwe,
|
|
||||||
LexiconSwe, TenseX
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags language = sv; unlexer = text ; lexer = text ;
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
} ;
|
}
|
||||||
|
|||||||
@@ -1,24 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoTha of Demo =
|
concrete DemoTha of Demo = LangTha **
|
||||||
NounTha - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,
|
open LangTha in {
|
||||||
ApposCN,MassNP,DetNP,ComplN3,Use2N3,Use3N3,AdvNP],
|
|
||||||
-- VerbTha,
|
|
||||||
ClauseTha, --
|
|
||||||
AdjectiveTha - [SentAP,ComplA2,UseA2,DemoA2],
|
|
||||||
AdverbTha,
|
|
||||||
NumeralTha,
|
|
||||||
---- SentenceTha,
|
|
||||||
QuestionTha - [QuestVP,QuestSlash],
|
|
||||||
---- RelativeTha,
|
|
||||||
---- ConjunctionTha,
|
|
||||||
---- PhraseTha,
|
|
||||||
---- TextX,
|
|
||||||
---- IdiomTha,
|
|
||||||
StructuralTha - [everybody_NP,everything_NP,something_NP],
|
|
||||||
LexiconTha
|
|
||||||
** {
|
|
||||||
|
|
||||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
} ;
|
}
|
||||||
|
|||||||
10
lib/src/demo/DemoTur.gf
Normal file
10
lib/src/demo/DemoTur.gf
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
--# -path=.:alltenses
|
||||||
|
|
||||||
|
concrete DemoTur of Demo = LangTur **
|
||||||
|
open LangTur in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
AdjN ap n = AdjCN ap (UseN n) ;
|
||||||
|
AdAdj ad a = AdAP ad (PositA a) ;
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user