mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-06 17:52:51 -06:00
fixed decodeUTF8 for pgf; removed old resources from darcs
This commit is contained in:
21
lib/resource/demo/Clause.gf
Normal file
21
lib/resource/demo/Clause.gf
Normal file
@@ -0,0 +1,21 @@
|
||||
abstract Clause = Cat ** {
|
||||
|
||||
fun
|
||||
PredV : NP -> V -> Cl ;
|
||||
PredV2 : NP -> V2 -> NP -> Cl ;
|
||||
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/demo/ClauseBul.gf
Normal file
1
lib/resource/demo/ClauseBul.gf
Normal file
@@ -0,0 +1 @@
|
||||
concrete ClauseBul of Clause = CatBul ** ClauseI with (Grammar = GrammarBul) ;
|
||||
1
lib/resource/demo/ClauseCat.gf
Normal file
1
lib/resource/demo/ClauseCat.gf
Normal file
@@ -0,0 +1 @@
|
||||
concrete ClauseCat of Clause = CatCat ** ClauseI with (Grammar = GrammarCat) ;
|
||||
1
lib/resource/demo/ClauseDan.gf
Normal file
1
lib/resource/demo/ClauseDan.gf
Normal file
@@ -0,0 +1 @@
|
||||
concrete ClauseDan of Clause = CatDan ** ClauseI with (Grammar = GrammarDan) ;
|
||||
1
lib/resource/demo/ClauseEng.gf
Normal file
1
lib/resource/demo/ClauseEng.gf
Normal file
@@ -0,0 +1 @@
|
||||
concrete ClauseEng of Clause = CatEng ** ClauseI with (Grammar = GrammarEng) ;
|
||||
1
lib/resource/demo/ClauseFin.gf
Normal file
1
lib/resource/demo/ClauseFin.gf
Normal file
@@ -0,0 +1 @@
|
||||
concrete ClauseFin of Clause = CatFin ** ClauseI with (Grammar = GrammarFin) ;
|
||||
1
lib/resource/demo/ClauseFre.gf
Normal file
1
lib/resource/demo/ClauseFre.gf
Normal file
@@ -0,0 +1 @@
|
||||
concrete ClauseFre of Clause = CatFre ** ClauseI with (Grammar = GrammarFre) ;
|
||||
1
lib/resource/demo/ClauseGer.gf
Normal file
1
lib/resource/demo/ClauseGer.gf
Normal file
@@ -0,0 +1 @@
|
||||
concrete ClauseGer of Clause = CatGer ** ClauseI with (Grammar = GrammarGer) ;
|
||||
20
lib/resource/demo/ClauseI.gf
Normal file
20
lib/resource/demo/ClauseI.gf
Normal file
@@ -0,0 +1,20 @@
|
||||
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
lib/resource/demo/ClauseIta.gf
Normal file
1
lib/resource/demo/ClauseIta.gf
Normal file
@@ -0,0 +1 @@
|
||||
concrete ClauseIta of Clause = CatIta ** ClauseI with (Grammar = GrammarIta) ;
|
||||
1
lib/resource/demo/ClauseNor.gf
Normal file
1
lib/resource/demo/ClauseNor.gf
Normal file
@@ -0,0 +1 @@
|
||||
concrete ClauseNor of Clause = CatNor ** ClauseI with (Grammar = GrammarNor) ;
|
||||
1
lib/resource/demo/ClauseRus.gf
Normal file
1
lib/resource/demo/ClauseRus.gf
Normal file
@@ -0,0 +1 @@
|
||||
concrete ClauseRus of Clause = CatRus ** ClauseI with (Grammar = GrammarRus) ;
|
||||
1
lib/resource/demo/ClauseSpa.gf
Normal file
1
lib/resource/demo/ClauseSpa.gf
Normal file
@@ -0,0 +1 @@
|
||||
concrete ClauseSpa of Clause = CatSpa ** ClauseI with (Grammar = GrammarSpa) ;
|
||||
1
lib/resource/demo/ClauseSwe.gf
Normal file
1
lib/resource/demo/ClauseSwe.gf
Normal file
@@ -0,0 +1 @@
|
||||
concrete ClauseSwe of Clause = CatSwe ** ClauseI with (Grammar = GrammarSwe) ;
|
||||
17
lib/resource/demo/Demo.gf
Normal file
17
lib/resource/demo/Demo.gf
Normal file
@@ -0,0 +1,17 @@
|
||||
abstract Demo =
|
||||
Noun - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||
-- Verb,
|
||||
Clause, --
|
||||
Adjective - [SentAP],
|
||||
Adverb,
|
||||
Numeral,
|
||||
-- Sentence,
|
||||
Question - [QuestVP,QuestSlash],
|
||||
---- Relative,
|
||||
---- Conjunction,
|
||||
Phrase,
|
||||
---- Text,
|
||||
---- Idiom,
|
||||
Structural - [everybody_NP,everything_NP,something_NP],
|
||||
Lexicon ;
|
||||
|
||||
23
lib/resource/demo/DemoBul.gf
Normal file
23
lib/resource/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 - [QuestVP,QuestSlash],
|
||||
---- RelativeBul,
|
||||
---- ConjunctionBul,
|
||||
---- PhraseBul,
|
||||
---- TextX,
|
||||
---- IdiomBul,
|
||||
StructuralBul - [everybody_NP,everything_NP,something_NP],
|
||||
LexiconBul
|
||||
** {
|
||||
|
||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||
|
||||
} ;
|
||||
23
lib/resource/demo/DemoCat.gf
Normal file
23
lib/resource/demo/DemoCat.gf
Normal file
@@ -0,0 +1,23 @@
|
||||
--# -path=.:alltenses
|
||||
|
||||
concrete DemoCat of Demo =
|
||||
NounCat - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||
-- VerbCat,
|
||||
ClauseCat, --
|
||||
AdjectiveCat - [SentAP],
|
||||
AdverbCat,
|
||||
NumeralCat,
|
||||
---- SentenceCat,
|
||||
QuestionCat - [QuestVP,QuestSlash],
|
||||
---- RelativeCat,
|
||||
---- ConjunctionCat,
|
||||
---- PhraseCat,
|
||||
---- TextX,
|
||||
---- IdiomCat,
|
||||
StructuralCat - [everybody_NP,everything_NP,something_NP],
|
||||
LexiconCat
|
||||
** {
|
||||
|
||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||
|
||||
} ;
|
||||
23
lib/resource/demo/DemoDan.gf
Normal file
23
lib/resource/demo/DemoDan.gf
Normal file
@@ -0,0 +1,23 @@
|
||||
--# -path=.:alltenses
|
||||
|
||||
concrete DemoDan of Demo =
|
||||
NounDan - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||
-- VerbDan,
|
||||
ClauseDan, --
|
||||
AdjectiveDan - [SentAP],
|
||||
AdverbDan,
|
||||
NumeralDan,
|
||||
---- SentenceDan,
|
||||
QuestionDan - [QuestVP,QuestSlash],
|
||||
---- RelativeDan,
|
||||
---- ConjunctionDan,
|
||||
---- PhraseDan,
|
||||
---- TextX,
|
||||
---- IdiomDan,
|
||||
StructuralDan - [everybody_NP,everything_NP,something_NP],
|
||||
LexiconDan
|
||||
** {
|
||||
|
||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||
|
||||
} ;
|
||||
23
lib/resource/demo/DemoEng.gf
Normal file
23
lib/resource/demo/DemoEng.gf
Normal file
@@ -0,0 +1,23 @@
|
||||
--# -path=.:alltenses
|
||||
|
||||
concrete DemoEng of Demo =
|
||||
NounEng - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||
-- VerbEng,
|
||||
ClauseEng, --
|
||||
AdjectiveEng - [SentAP],
|
||||
AdverbEng,
|
||||
NumeralEng,
|
||||
---- SentenceEng,
|
||||
QuestionEng - [QuestVP,QuestSlash],
|
||||
---- RelativeEng,
|
||||
---- ConjunctionEng,
|
||||
---- PhraseEng,
|
||||
---- TextX,
|
||||
---- IdiomEng,
|
||||
StructuralEng - [everybody_NP,everything_NP,something_NP],
|
||||
LexiconEng
|
||||
** {
|
||||
|
||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||
|
||||
} ;
|
||||
23
lib/resource/demo/DemoFin.gf
Normal file
23
lib/resource/demo/DemoFin.gf
Normal file
@@ -0,0 +1,23 @@
|
||||
--# -path=.:alltenses
|
||||
|
||||
concrete DemoFin of Demo =
|
||||
NounFin - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||
-- VerbFin,
|
||||
ClauseFin, --
|
||||
AdjectiveFin - [SentAP],
|
||||
AdverbFin,
|
||||
NumeralFin,
|
||||
---- SentenceFin,
|
||||
QuestionFin - [QuestVP,QuestSlash],
|
||||
---- RelativeFin,
|
||||
---- ConjunctionFin,
|
||||
---- PhraseFin,
|
||||
---- TextX,
|
||||
---- IdiomFin,
|
||||
StructuralFin - [everybody_NP,everything_NP,something_NP],
|
||||
LexiconFin
|
||||
** {
|
||||
|
||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||
|
||||
} ;
|
||||
23
lib/resource/demo/DemoFre.gf
Normal file
23
lib/resource/demo/DemoFre.gf
Normal file
@@ -0,0 +1,23 @@
|
||||
--# -path=.:alltenses
|
||||
|
||||
concrete DemoFre of Demo =
|
||||
NounFre - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||
-- VerbFre,
|
||||
ClauseFre, --
|
||||
AdjectiveFre - [SentAP],
|
||||
AdverbFre,
|
||||
NumeralFre,
|
||||
---- SentenceFre,
|
||||
QuestionFre - [QuestVP,QuestSlash],
|
||||
---- RelativeFre,
|
||||
---- ConjunctionFre,
|
||||
---- PhraseFre,
|
||||
---- TextX,
|
||||
---- IdiomFre,
|
||||
StructuralFre - [everybody_NP,everything_NP,something_NP],
|
||||
LexiconFre
|
||||
** {
|
||||
|
||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||
|
||||
} ;
|
||||
23
lib/resource/demo/DemoGer.gf
Normal file
23
lib/resource/demo/DemoGer.gf
Normal file
@@ -0,0 +1,23 @@
|
||||
--# -path=.:alltenses
|
||||
|
||||
concrete DemoGer of Demo =
|
||||
NounGer - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||
-- VerbGer,
|
||||
ClauseGer, --
|
||||
AdjectiveGer - [SentAP],
|
||||
AdverbGer,
|
||||
NumeralGer,
|
||||
---- SentenceGer,
|
||||
QuestionGer - [QuestVP,QuestSlash],
|
||||
---- RelativeGer,
|
||||
---- ConjunctionGer,
|
||||
---- PhraseGer,
|
||||
---- TextX,
|
||||
---- IdiomGer,
|
||||
StructuralGer - [everybody_NP,everything_NP,something_NP],
|
||||
LexiconGer
|
||||
** {
|
||||
|
||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||
|
||||
} ;
|
||||
23
lib/resource/demo/DemoI.gf
Normal file
23
lib/resource/demo/DemoI.gf
Normal file
@@ -0,0 +1,23 @@
|
||||
--# -path=.:alltenses
|
||||
|
||||
concrete DemoEng of Demo =
|
||||
NounEng - [AdvCN],
|
||||
-- VerbEng,
|
||||
ClauseEng, --
|
||||
AdjectiveEng,
|
||||
AdverbEng,
|
||||
NumeralEng,
|
||||
SentenceEng,
|
||||
QuestionEng,
|
||||
RelativeEng,
|
||||
ConjunctionEng,
|
||||
PhraseEng,
|
||||
TextX,
|
||||
StructuralEng,
|
||||
IdiomEng,
|
||||
LexiconEng
|
||||
** {
|
||||
|
||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||
|
||||
} ;
|
||||
23
lib/resource/demo/DemoIta.gf
Normal file
23
lib/resource/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 - [QuestVP,QuestSlash],
|
||||
---- RelativeIta,
|
||||
---- ConjunctionIta,
|
||||
---- PhraseIta,
|
||||
---- TextX,
|
||||
---- IdiomIta,
|
||||
StructuralIta - [everybody_NP,everything_NP,something_NP],
|
||||
LexiconIta
|
||||
** {
|
||||
|
||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||
|
||||
} ;
|
||||
23
lib/resource/demo/DemoNor.gf
Normal file
23
lib/resource/demo/DemoNor.gf
Normal file
@@ -0,0 +1,23 @@
|
||||
--# -path=.:alltenses
|
||||
|
||||
concrete DemoNor of Demo =
|
||||
NounNor - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||
-- VerbNor,
|
||||
ClauseNor, --
|
||||
AdjectiveNor - [SentAP],
|
||||
AdverbNor,
|
||||
NumeralNor,
|
||||
---- SentenceNor,
|
||||
QuestionNor - [QuestVP,QuestSlash],
|
||||
---- RelativeNor,
|
||||
---- ConjunctionNor,
|
||||
---- PhraseNor,
|
||||
---- TextX,
|
||||
---- IdiomNor,
|
||||
StructuralNor - [everybody_NP,everything_NP,something_NP],
|
||||
LexiconNor
|
||||
** {
|
||||
|
||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||
|
||||
} ;
|
||||
23
lib/resource/demo/DemoRus.gf
Normal file
23
lib/resource/demo/DemoRus.gf
Normal file
@@ -0,0 +1,23 @@
|
||||
--# -path=.:alltenses
|
||||
|
||||
concrete DemoRus of Demo =
|
||||
NounRus - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||
-- VerbRus,
|
||||
ClauseRus, --
|
||||
AdjectiveRus - [SentAP],
|
||||
AdverbRus,
|
||||
NumeralRus,
|
||||
---- SentenceRus,
|
||||
QuestionRus - [QuestVP,QuestSlash],
|
||||
---- RelativeRus,
|
||||
---- ConjunctionRus,
|
||||
---- PhraseRus,
|
||||
---- TextX,
|
||||
---- IdiomRus,
|
||||
StructuralRus - [everybody_NP,everything_NP,something_NP],
|
||||
LexiconRus
|
||||
** {
|
||||
|
||||
flags startcat = Phr ; unlexer = text ; lexer = text ; coding = utf8 ;
|
||||
|
||||
} ;
|
||||
23
lib/resource/demo/DemoSpa.gf
Normal file
23
lib/resource/demo/DemoSpa.gf
Normal file
@@ -0,0 +1,23 @@
|
||||
--# -path=.:alltenses
|
||||
|
||||
concrete DemoSpa of Demo =
|
||||
NounSpa - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
|
||||
-- VerbSpa,
|
||||
ClauseSpa, --
|
||||
AdjectiveSpa - [SentAP],
|
||||
AdverbSpa,
|
||||
NumeralSpa,
|
||||
---- SentenceSpa,
|
||||
QuestionSpa - [QuestVP,QuestSlash],
|
||||
---- RelativeSpa,
|
||||
---- ConjunctionSpa,
|
||||
---- PhraseSpa,
|
||||
---- TextX,
|
||||
---- IdiomSpa,
|
||||
StructuralSpa - [everybody_NP,everything_NP,something_NP],
|
||||
LexiconSpa
|
||||
** {
|
||||
|
||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||
|
||||
} ;
|
||||
23
lib/resource/demo/DemoSwe.gf
Normal file
23
lib/resource/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 - [QuestVP,QuestSlash],
|
||||
---- RelativeSwe,
|
||||
---- ConjunctionSwe,
|
||||
---- PhraseSwe,
|
||||
---- TextX,
|
||||
---- IdiomSwe,
|
||||
StructuralSwe - [everybody_NP,everything_NP,something_NP],
|
||||
LexiconSwe
|
||||
** {
|
||||
|
||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||
|
||||
} ;
|
||||
Reference in New Issue
Block a user