demo grammars for some new languages

This commit is contained in:
aarne
2008-06-23 09:08:31 +00:00
parent 133680fe20
commit 2a2e985f0e
13 changed files with 112 additions and 17 deletions

View File

@@ -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 ;
}

View File

@@ -0,0 +1 @@
concrete ClauseBul of Clause = CatBul ** ClauseI with (Grammar = GrammarBul) ;

View File

@@ -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) ;
}

View File

@@ -0,0 +1 @@
concrete ClauseIta of Clause = CatIta ** ClauseI with (Grammar = GrammarIta) ;

View File

@@ -0,0 +1 @@
concrete ClauseSwe of Clause = CatSwe ** ClauseI with (Grammar = GrammarSwe) ;

View File

@@ -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,

View 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 ;
} ;

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View 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 ;
} ;

View 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 ;
} ;