mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-14 07:19:31 -06:00
demo grammars for some new languages
This commit is contained in:
@@ -6,4 +6,16 @@ fun
|
||||
PredAP : NP -> AP -> 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)) ;
|
||||
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 =
|
||||
Noun- [AdvCN],
|
||||
Noun - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||
-- Verb,
|
||||
Clause, --
|
||||
Adjective,
|
||||
Adjective - [SentAP],
|
||||
Adverb,
|
||||
Numeral,
|
||||
---- Sentence,
|
||||
---- Question,
|
||||
-- Sentence,
|
||||
Question - [QuestVP,QuestSlash],
|
||||
---- Relative,
|
||||
---- Conjunction,
|
||||
---- Phrase,
|
||||
Phrase,
|
||||
---- Text,
|
||||
---- Idiom,
|
||||
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
|
||||
|
||||
concrete DemoEng of Demo =
|
||||
NounEng - [AdvCN],
|
||||
NounEng - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||
-- VerbEng,
|
||||
ClauseEng, --
|
||||
AdjectiveEng,
|
||||
AdjectiveEng - [SentAP],
|
||||
AdverbEng,
|
||||
NumeralEng,
|
||||
---- SentenceEng,
|
||||
---- QuestionEng,
|
||||
QuestionEng - [QuestVP,QuestSlash],
|
||||
---- RelativeEng,
|
||||
---- ConjunctionEng,
|
||||
---- PhraseEng,
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
--# -path=.:alltenses
|
||||
|
||||
concrete DemoFin of Demo =
|
||||
NounFin - [AdvCN],
|
||||
NounFin - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||
-- VerbFin,
|
||||
ClauseFin, --
|
||||
AdjectiveFin,
|
||||
AdjectiveFin - [SentAP],
|
||||
AdverbFin,
|
||||
NumeralFin,
|
||||
---- SentenceFin,
|
||||
---- QuestionFin,
|
||||
QuestionFin - [QuestVP,QuestSlash],
|
||||
---- RelativeFin,
|
||||
---- ConjunctionFin,
|
||||
---- PhraseFin,
|
||||
PhraseFin,
|
||||
---- TextX,
|
||||
---- IdiomFin,
|
||||
StructuralFin,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
--# -path=.:alltenses
|
||||
|
||||
concrete DemoFre of Demo =
|
||||
NounFre - [AdvCN],
|
||||
NounFre - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||
-- VerbFre,
|
||||
ClauseFre, --
|
||||
AdjectiveFre,
|
||||
AdjectiveFre - [SentAP],
|
||||
AdverbFre,
|
||||
NumeralFre,
|
||||
---- SentenceFre,
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
--# -path=.:alltenses
|
||||
|
||||
concrete DemoGer of Demo =
|
||||
NounGer - [AdvCN],
|
||||
NounGer - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||
-- VerbGer,
|
||||
ClauseGer, --
|
||||
AdjectiveGer,
|
||||
AdjectiveGer - [SentAP],
|
||||
AdverbGer,
|
||||
NumeralGer,
|
||||
-- SentenceGer,
|
||||
-- QuestionGer,
|
||||
QuestionGer - [QuestVP,QuestSlash],
|
||||
-- RelativeGer,
|
||||
-- ConjunctionGer,
|
||||
-- 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