fixed decodeUTF8 for pgf; removed old resources from darcs

This commit is contained in:
aarne
2008-06-26 19:41:25 +00:00
parent 544fc47489
commit 9d909f32cf
1845 changed files with 4 additions and 468570 deletions

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

View File

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

View File

@@ -0,0 +1 @@
concrete ClauseCat of Clause = CatCat ** ClauseI with (Grammar = GrammarCat) ;

View File

@@ -0,0 +1 @@
concrete ClauseDan of Clause = CatDan ** ClauseI with (Grammar = GrammarDan) ;

View File

@@ -0,0 +1 @@
concrete ClauseEng of Clause = CatEng ** ClauseI with (Grammar = GrammarEng) ;

View File

@@ -0,0 +1 @@
concrete ClauseFin of Clause = CatFin ** ClauseI with (Grammar = GrammarFin) ;

View File

@@ -0,0 +1 @@
concrete ClauseFre of Clause = CatFre ** ClauseI with (Grammar = GrammarFre) ;

View File

@@ -0,0 +1 @@
concrete ClauseGer of Clause = CatGer ** ClauseI with (Grammar = GrammarGer) ;

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

View File

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

View File

@@ -0,0 +1 @@
concrete ClauseNor of Clause = CatNor ** ClauseI with (Grammar = GrammarNor) ;

View File

@@ -0,0 +1 @@
concrete ClauseRus of Clause = CatRus ** ClauseI with (Grammar = GrammarRus) ;

View File

@@ -0,0 +1 @@
concrete ClauseSpa of Clause = CatSpa ** ClauseI with (Grammar = GrammarSpa) ;

View File

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

17
lib/resource/demo/Demo.gf Normal file
View 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 ;

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 - [QuestVP,QuestSlash],
---- RelativeBul,
---- ConjunctionBul,
---- PhraseBul,
---- TextX,
---- IdiomBul,
StructuralBul - [everybody_NP,everything_NP,something_NP],
LexiconBul
** {
flags startcat = Phr ; unlexer = text ; lexer = text ;
} ;

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

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

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

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

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

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

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

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 - [QuestVP,QuestSlash],
---- RelativeIta,
---- ConjunctionIta,
---- PhraseIta,
---- TextX,
---- IdiomIta,
StructuralIta - [everybody_NP,everything_NP,something_NP],
LexiconIta
** {
flags startcat = Phr ; unlexer = text ; lexer = text ;
} ;

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

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

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

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 - [QuestVP,QuestSlash],
---- RelativeSwe,
---- ConjunctionSwe,
---- PhraseSwe,
---- TextX,
---- IdiomSwe,
StructuralSwe - [everybody_NP,everything_NP,something_NP],
LexiconSwe
** {
flags startcat = Phr ; unlexer = text ; lexer = text ;
} ;