mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
demo grammars for some new languages
This commit is contained in:
@@ -6,4 +6,16 @@ fun
|
|||||||
PredAP : NP -> AP -> Cl ;
|
PredAP : NP -> AP -> Cl ;
|
||||||
PredAdv : NP -> Adv -> Cl ;
|
PredAdv : NP -> Adv -> Cl ;
|
||||||
|
|
||||||
|
UseCl : Tense -> Ant -> Pol -> Cl -> S ;
|
||||||
|
|
||||||
|
QuestV : IP -> V -> QCl ;
|
||||||
|
QuestV2 : IP -> V2 -> NP -> QCl ;
|
||||||
|
QuestV2Slash : IP -> NP -> V2 -> QCl ;
|
||||||
|
|
||||||
|
UseQCl : Tense -> Ant -> Pol -> QCl -> QS ;
|
||||||
|
|
||||||
|
ImpV : V -> Imp ;
|
||||||
|
ImpV2 : V2 -> NP -> Imp ;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
1
lib/resource-1.4/demo/ClauseBul.gf
Normal file
1
lib/resource-1.4/demo/ClauseBul.gf
Normal file
@@ -0,0 +1 @@
|
|||||||
|
concrete ClauseBul of Clause = CatBul ** ClauseI with (Grammar = GrammarBul) ;
|
||||||
@@ -6,4 +6,15 @@ lin
|
|||||||
PredAP s a = PredVP s (UseComp (CompAP a)) ;
|
PredAP s a = PredVP s (UseComp (CompAP a)) ;
|
||||||
PredAdv s a = PredVP s (UseComp (CompAdv 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
lib/resource-1.4/demo/ClauseIta.gf
Normal file
1
lib/resource-1.4/demo/ClauseIta.gf
Normal file
@@ -0,0 +1 @@
|
|||||||
|
concrete ClauseIta of Clause = CatIta ** ClauseI with (Grammar = GrammarIta) ;
|
||||||
1
lib/resource-1.4/demo/ClauseSwe.gf
Normal file
1
lib/resource-1.4/demo/ClauseSwe.gf
Normal file
@@ -0,0 +1 @@
|
|||||||
|
concrete ClauseSwe of Clause = CatSwe ** ClauseI with (Grammar = GrammarSwe) ;
|
||||||
@@ -1,15 +1,15 @@
|
|||||||
abstract Demo =
|
abstract Demo =
|
||||||
Noun- [AdvCN],
|
Noun - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||||
-- Verb,
|
-- Verb,
|
||||||
Clause, --
|
Clause, --
|
||||||
Adjective,
|
Adjective - [SentAP],
|
||||||
Adverb,
|
Adverb,
|
||||||
Numeral,
|
Numeral,
|
||||||
---- Sentence,
|
-- Sentence,
|
||||||
---- Question,
|
Question - [QuestVP,QuestSlash],
|
||||||
---- Relative,
|
---- Relative,
|
||||||
---- Conjunction,
|
---- Conjunction,
|
||||||
---- Phrase,
|
Phrase,
|
||||||
---- Text,
|
---- Text,
|
||||||
---- Idiom,
|
---- Idiom,
|
||||||
Structural,
|
Structural,
|
||||||
|
|||||||
23
lib/resource-1.4/demo/DemoBul.gf
Normal file
23
lib/resource-1.4/demo/DemoBul.gf
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
--# -path=.:alltenses
|
||||||
|
|
||||||
|
concrete DemoBul of Demo =
|
||||||
|
NounBul - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||||
|
-- VerbBul,
|
||||||
|
ClauseBul, --
|
||||||
|
AdjectiveBul - [SentAP],
|
||||||
|
AdverbBul,
|
||||||
|
NumeralBul,
|
||||||
|
---- SentenceBul,
|
||||||
|
---- QuestionBul,
|
||||||
|
---- RelativeBul,
|
||||||
|
---- ConjunctionBul,
|
||||||
|
---- PhraseBul,
|
||||||
|
---- TextX - [Tense,TPres,TPast,TFut,TCond],
|
||||||
|
---- IdiomBul,
|
||||||
|
StructuralBul,
|
||||||
|
LexiconBul
|
||||||
|
** {
|
||||||
|
|
||||||
|
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||||
|
|
||||||
|
} ;
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoEng of Demo =
|
concrete DemoEng of Demo =
|
||||||
NounEng - [AdvCN],
|
NounEng - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||||
-- VerbEng,
|
-- VerbEng,
|
||||||
ClauseEng, --
|
ClauseEng, --
|
||||||
AdjectiveEng,
|
AdjectiveEng - [SentAP],
|
||||||
AdverbEng,
|
AdverbEng,
|
||||||
NumeralEng,
|
NumeralEng,
|
||||||
---- SentenceEng,
|
---- SentenceEng,
|
||||||
---- QuestionEng,
|
QuestionEng - [QuestVP,QuestSlash],
|
||||||
---- RelativeEng,
|
---- RelativeEng,
|
||||||
---- ConjunctionEng,
|
---- ConjunctionEng,
|
||||||
---- PhraseEng,
|
---- PhraseEng,
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoFin of Demo =
|
concrete DemoFin of Demo =
|
||||||
NounFin - [AdvCN],
|
NounFin - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||||
-- VerbFin,
|
-- VerbFin,
|
||||||
ClauseFin, --
|
ClauseFin, --
|
||||||
AdjectiveFin,
|
AdjectiveFin - [SentAP],
|
||||||
AdverbFin,
|
AdverbFin,
|
||||||
NumeralFin,
|
NumeralFin,
|
||||||
---- SentenceFin,
|
---- SentenceFin,
|
||||||
---- QuestionFin,
|
QuestionFin - [QuestVP,QuestSlash],
|
||||||
---- RelativeFin,
|
---- RelativeFin,
|
||||||
---- ConjunctionFin,
|
---- ConjunctionFin,
|
||||||
---- PhraseFin,
|
PhraseFin,
|
||||||
---- TextX,
|
---- TextX,
|
||||||
---- IdiomFin,
|
---- IdiomFin,
|
||||||
StructuralFin,
|
StructuralFin,
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoFre of Demo =
|
concrete DemoFre of Demo =
|
||||||
NounFre - [AdvCN],
|
NounFre - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||||
-- VerbFre,
|
-- VerbFre,
|
||||||
ClauseFre, --
|
ClauseFre, --
|
||||||
AdjectiveFre,
|
AdjectiveFre - [SentAP],
|
||||||
AdverbFre,
|
AdverbFre,
|
||||||
NumeralFre,
|
NumeralFre,
|
||||||
---- SentenceFre,
|
---- SentenceFre,
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete DemoGer of Demo =
|
concrete DemoGer of Demo =
|
||||||
NounGer - [AdvCN],
|
NounGer - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||||
-- VerbGer,
|
-- VerbGer,
|
||||||
ClauseGer, --
|
ClauseGer, --
|
||||||
AdjectiveGer,
|
AdjectiveGer - [SentAP],
|
||||||
AdverbGer,
|
AdverbGer,
|
||||||
NumeralGer,
|
NumeralGer,
|
||||||
-- SentenceGer,
|
-- SentenceGer,
|
||||||
-- QuestionGer,
|
QuestionGer - [QuestVP,QuestSlash],
|
||||||
-- RelativeGer,
|
-- RelativeGer,
|
||||||
-- ConjunctionGer,
|
-- ConjunctionGer,
|
||||||
-- PhraseGer,
|
-- PhraseGer,
|
||||||
|
|||||||
23
lib/resource-1.4/demo/DemoIta.gf
Normal file
23
lib/resource-1.4/demo/DemoIta.gf
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
--# -path=.:alltenses
|
||||||
|
|
||||||
|
concrete DemoIta of Demo =
|
||||||
|
NounIta - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||||
|
-- VerbIta,
|
||||||
|
ClauseIta, --
|
||||||
|
AdjectiveIta - [SentAP],
|
||||||
|
AdverbIta,
|
||||||
|
NumeralIta,
|
||||||
|
---- SentenceIta,
|
||||||
|
---- QuestionIta,
|
||||||
|
---- RelativeIta,
|
||||||
|
---- ConjunctionIta,
|
||||||
|
---- PhraseIta,
|
||||||
|
---- TextX - [Tense,TPres,TPast,TFut,TCond],
|
||||||
|
---- IdiomIta,
|
||||||
|
StructuralIta,
|
||||||
|
LexiconIta
|
||||||
|
** {
|
||||||
|
|
||||||
|
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||||
|
|
||||||
|
} ;
|
||||||
23
lib/resource-1.4/demo/DemoSwe.gf
Normal file
23
lib/resource-1.4/demo/DemoSwe.gf
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
--# -path=.:alltenses
|
||||||
|
|
||||||
|
concrete DemoSwe of Demo =
|
||||||
|
NounSwe - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||||
|
-- VerbSwe,
|
||||||
|
ClauseSwe, --
|
||||||
|
AdjectiveSwe - [SentAP],
|
||||||
|
AdverbSwe,
|
||||||
|
NumeralSwe,
|
||||||
|
---- SentenceSwe,
|
||||||
|
---- QuestionSwe,
|
||||||
|
---- RelativeSwe,
|
||||||
|
---- ConjunctionSwe,
|
||||||
|
---- PhraseSwe,
|
||||||
|
---- TextX - [Tense,TPres,TPast,TFut,TCond],
|
||||||
|
---- IdiomSwe,
|
||||||
|
StructuralSwe,
|
||||||
|
LexiconSwe
|
||||||
|
** {
|
||||||
|
|
||||||
|
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||||
|
|
||||||
|
} ;
|
||||||
Reference in New Issue
Block a user