summaryrefslogtreecommitdiff
path: root/old-lib/resource/demo
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2009-06-22 15:39:08 +0000
committeraarne <aarne@chalmers.se>2009-06-22 15:39:08 +0000
commite89fdae2fa1626348d8025824a7469252fa85e42 (patch)
treec7d46bbd0494043b4bd6f917a25a7687517d0547 /old-lib/resource/demo
parent3049b59b35b25381a7c6787444165c200d66e08b (diff)
next-lib renamed to lib, lib to old-lib
Diffstat (limited to 'old-lib/resource/demo')
-rw-r--r--old-lib/resource/demo/Clause.gf22
-rw-r--r--old-lib/resource/demo/ClauseBul.gf1
-rw-r--r--old-lib/resource/demo/ClauseCat.gf1
-rw-r--r--old-lib/resource/demo/ClauseDan.gf1
-rw-r--r--old-lib/resource/demo/ClauseEng.gf1
-rw-r--r--old-lib/resource/demo/ClauseFin.gf1
-rw-r--r--old-lib/resource/demo/ClauseFre.gf1
-rw-r--r--old-lib/resource/demo/ClauseGer.gf1
-rw-r--r--old-lib/resource/demo/ClauseI.gf23
-rw-r--r--old-lib/resource/demo/ClauseIta.gf1
-rw-r--r--old-lib/resource/demo/ClauseNor.gf1
-rw-r--r--old-lib/resource/demo/ClauseRus.gf1
-rw-r--r--old-lib/resource/demo/ClauseSpa.gf1
-rw-r--r--old-lib/resource/demo/ClauseSwe.gf1
-rw-r--r--old-lib/resource/demo/Demo.gf21
-rw-r--r--old-lib/resource/demo/DemoBul.gf16
-rw-r--r--old-lib/resource/demo/DemoCat.gf16
-rw-r--r--old-lib/resource/demo/DemoDan.gf16
-rw-r--r--old-lib/resource/demo/DemoEng.gf16
-rw-r--r--old-lib/resource/demo/DemoFin.gf16
-rw-r--r--old-lib/resource/demo/DemoFre.gf16
-rw-r--r--old-lib/resource/demo/DemoGer.gf16
-rw-r--r--old-lib/resource/demo/DemoIta.gf16
-rw-r--r--old-lib/resource/demo/DemoNor.gf16
-rw-r--r--old-lib/resource/demo/DemoRus.gf16
-rw-r--r--old-lib/resource/demo/DemoSpa.gf16
-rw-r--r--old-lib/resource/demo/DemoSwe.gf16
27 files changed, 270 insertions, 0 deletions
diff --git a/old-lib/resource/demo/Clause.gf b/old-lib/resource/demo/Clause.gf
new file mode 100644
index 000000000..4145d335a
--- /dev/null
+++ b/old-lib/resource/demo/Clause.gf
@@ -0,0 +1,22 @@
+abstract Clause = Cat ** {
+
+fun
+ PredV : NP -> V -> Cl ;
+ PredV2 : NP -> V2 -> NP -> Cl ;
+ PredAP : NP -> AP -> Cl ;
+ PredAdv : NP -> Adv -> Cl ;
+ PredNP : NP -> NP -> 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 ;
+
+
+}
diff --git a/old-lib/resource/demo/ClauseBul.gf b/old-lib/resource/demo/ClauseBul.gf
new file mode 100644
index 000000000..9f35b1ca1
--- /dev/null
+++ b/old-lib/resource/demo/ClauseBul.gf
@@ -0,0 +1 @@
+concrete ClauseBul of Clause = CatBul ** ClauseI with (Grammar = GrammarBul) ;
diff --git a/old-lib/resource/demo/ClauseCat.gf b/old-lib/resource/demo/ClauseCat.gf
new file mode 100644
index 000000000..11ab972db
--- /dev/null
+++ b/old-lib/resource/demo/ClauseCat.gf
@@ -0,0 +1 @@
+concrete ClauseCat of Clause = CatCat ** ClauseI with (Grammar = GrammarCat) ;
diff --git a/old-lib/resource/demo/ClauseDan.gf b/old-lib/resource/demo/ClauseDan.gf
new file mode 100644
index 000000000..9297b86c3
--- /dev/null
+++ b/old-lib/resource/demo/ClauseDan.gf
@@ -0,0 +1 @@
+concrete ClauseDan of Clause = CatDan ** ClauseI with (Grammar = GrammarDan) ;
diff --git a/old-lib/resource/demo/ClauseEng.gf b/old-lib/resource/demo/ClauseEng.gf
new file mode 100644
index 000000000..5f98c97ae
--- /dev/null
+++ b/old-lib/resource/demo/ClauseEng.gf
@@ -0,0 +1 @@
+concrete ClauseEng of Clause = CatEng ** ClauseI with (Grammar = GrammarEng) ;
diff --git a/old-lib/resource/demo/ClauseFin.gf b/old-lib/resource/demo/ClauseFin.gf
new file mode 100644
index 000000000..d62e9667a
--- /dev/null
+++ b/old-lib/resource/demo/ClauseFin.gf
@@ -0,0 +1 @@
+concrete ClauseFin of Clause = CatFin ** ClauseI with (Grammar = GrammarFin) ;
diff --git a/old-lib/resource/demo/ClauseFre.gf b/old-lib/resource/demo/ClauseFre.gf
new file mode 100644
index 000000000..06cc2b5ab
--- /dev/null
+++ b/old-lib/resource/demo/ClauseFre.gf
@@ -0,0 +1 @@
+concrete ClauseFre of Clause = CatFre ** ClauseI with (Grammar = GrammarFre) ;
diff --git a/old-lib/resource/demo/ClauseGer.gf b/old-lib/resource/demo/ClauseGer.gf
new file mode 100644
index 000000000..47982626c
--- /dev/null
+++ b/old-lib/resource/demo/ClauseGer.gf
@@ -0,0 +1 @@
+concrete ClauseGer of Clause = CatGer ** ClauseI with (Grammar = GrammarGer) ;
diff --git a/old-lib/resource/demo/ClauseI.gf b/old-lib/resource/demo/ClauseI.gf
new file mode 100644
index 000000000..12fa28995
--- /dev/null
+++ b/old-lib/resource/demo/ClauseI.gf
@@ -0,0 +1,23 @@
+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)) ;
+ PredNP s n = PredVP s (UseComp (CompNP n)) ;
+
+ 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) ;
+
+
+
+}
diff --git a/old-lib/resource/demo/ClauseIta.gf b/old-lib/resource/demo/ClauseIta.gf
new file mode 100644
index 000000000..8602d5878
--- /dev/null
+++ b/old-lib/resource/demo/ClauseIta.gf
@@ -0,0 +1 @@
+concrete ClauseIta of Clause = CatIta ** ClauseI with (Grammar = GrammarIta) ;
diff --git a/old-lib/resource/demo/ClauseNor.gf b/old-lib/resource/demo/ClauseNor.gf
new file mode 100644
index 000000000..26d71f76a
--- /dev/null
+++ b/old-lib/resource/demo/ClauseNor.gf
@@ -0,0 +1 @@
+concrete ClauseNor of Clause = CatNor ** ClauseI with (Grammar = GrammarNor) ;
diff --git a/old-lib/resource/demo/ClauseRus.gf b/old-lib/resource/demo/ClauseRus.gf
new file mode 100644
index 000000000..380b38e15
--- /dev/null
+++ b/old-lib/resource/demo/ClauseRus.gf
@@ -0,0 +1 @@
+concrete ClauseRus of Clause = CatRus ** ClauseI with (Grammar = GrammarRus) ;
diff --git a/old-lib/resource/demo/ClauseSpa.gf b/old-lib/resource/demo/ClauseSpa.gf
new file mode 100644
index 000000000..4723fa77f
--- /dev/null
+++ b/old-lib/resource/demo/ClauseSpa.gf
@@ -0,0 +1 @@
+concrete ClauseSpa of Clause = CatSpa ** ClauseI with (Grammar = GrammarSpa) ;
diff --git a/old-lib/resource/demo/ClauseSwe.gf b/old-lib/resource/demo/ClauseSwe.gf
new file mode 100644
index 000000000..c082d814f
--- /dev/null
+++ b/old-lib/resource/demo/ClauseSwe.gf
@@ -0,0 +1 @@
+concrete ClauseSwe of Clause = CatSwe ** ClauseI with (Grammar = GrammarSwe) ;
diff --git a/old-lib/resource/demo/Demo.gf b/old-lib/resource/demo/Demo.gf
new file mode 100644
index 000000000..2fcb5a3fc
--- /dev/null
+++ b/old-lib/resource/demo/Demo.gf
@@ -0,0 +1,21 @@
+abstract Demo =
+ Noun - [AdvCN,PredetNP,PPartNP,RelNP,RelCN,SentCN,ApposCN,MassNP,DetNP],
+-- Verb,
+ Clause, --
+ Adjective - [SentAP,ReflA2],
+ Adverb,
+ Numeral,
+-- Sentence,
+ Question - [QuestVP,QuestSlash],
+---- Relative,
+---- Conjunction,
+ Phrase,
+---- Text,
+---- Idiom,
+ Structural - [everybody_NP,everything_NP,something_NP],
+ Lexicon ** {
+
+flags startcat = S ;
+
+}
+
diff --git a/old-lib/resource/demo/DemoBul.gf b/old-lib/resource/demo/DemoBul.gf
new file mode 100644
index 000000000..48219799c
--- /dev/null
+++ b/old-lib/resource/demo/DemoBul.gf
@@ -0,0 +1,16 @@
+--# -path=.:alltenses
+
+concrete DemoBul of Demo =
+ NounBul,
+ ClauseBul,
+ AdjectiveBul,
+ AdverbBul,
+ NumeralBul,
+ QuestionBul,
+ StructuralBul,
+ LexiconBul
+ ** {
+
+flags language = bg; unlexer = text ; lexer = text ;
+
+} ;
diff --git a/old-lib/resource/demo/DemoCat.gf b/old-lib/resource/demo/DemoCat.gf
new file mode 100644
index 000000000..c0c6e5bef
--- /dev/null
+++ b/old-lib/resource/demo/DemoCat.gf
@@ -0,0 +1,16 @@
+--# -path=.:alltenses
+
+concrete DemoCat of Demo =
+ NounCat,
+ ClauseCat,
+ AdjectiveCat,
+ AdverbCat,
+ NumeralCat,
+ QuestionCat,
+ StructuralCat,
+ LexiconCat
+ ** {
+
+flags language = ca; unlexer = text ; lexer = text ;
+
+} ;
diff --git a/old-lib/resource/demo/DemoDan.gf b/old-lib/resource/demo/DemoDan.gf
new file mode 100644
index 000000000..62e89c515
--- /dev/null
+++ b/old-lib/resource/demo/DemoDan.gf
@@ -0,0 +1,16 @@
+--# -path=.:alltenses
+
+concrete DemoDan of Demo =
+ NounDan,
+ ClauseDan,
+ AdjectiveDan,
+ AdverbDan,
+ NumeralDan,
+ QuestionDan,
+ StructuralDan,
+ LexiconDan
+ ** {
+
+flags language = da; unlexer = text ; lexer = text ;
+
+} ;
diff --git a/old-lib/resource/demo/DemoEng.gf b/old-lib/resource/demo/DemoEng.gf
new file mode 100644
index 000000000..a738832fc
--- /dev/null
+++ b/old-lib/resource/demo/DemoEng.gf
@@ -0,0 +1,16 @@
+--# -path=.:alltenses
+
+concrete DemoEng of Demo =
+ NounEng,
+ ClauseEng,
+ AdjectiveEng,
+ AdverbEng,
+ NumeralEng,
+ QuestionEng,
+ StructuralEng,
+ LexiconEng
+ ** {
+
+flags language = en; unlexer = text ; lexer = text ;
+
+} ;
diff --git a/old-lib/resource/demo/DemoFin.gf b/old-lib/resource/demo/DemoFin.gf
new file mode 100644
index 000000000..13eb7b5e9
--- /dev/null
+++ b/old-lib/resource/demo/DemoFin.gf
@@ -0,0 +1,16 @@
+--# -path=.:alltenses
+
+concrete DemoFin of Demo =
+ NounFin,
+ ClauseFin,
+ AdjectiveFin,
+ AdverbFin,
+ NumeralFin,
+ QuestionFin,
+ StructuralFin,
+ LexiconFin
+ ** {
+
+flags language = fi; unlexer = text ; lexer = text ;
+
+} ;
diff --git a/old-lib/resource/demo/DemoFre.gf b/old-lib/resource/demo/DemoFre.gf
new file mode 100644
index 000000000..84ac32287
--- /dev/null
+++ b/old-lib/resource/demo/DemoFre.gf
@@ -0,0 +1,16 @@
+--# -path=.:alltenses
+
+concrete DemoFre of Demo =
+ NounFre,
+ ClauseFre,
+ AdjectiveFre,
+ AdverbFre,
+ NumeralFre,
+ QuestionFre,
+ StructuralFre,
+ LexiconFre
+ ** {
+
+flags language = fr; unlexer = text ; lexer = text ;
+
+} ;
diff --git a/old-lib/resource/demo/DemoGer.gf b/old-lib/resource/demo/DemoGer.gf
new file mode 100644
index 000000000..ca93cc037
--- /dev/null
+++ b/old-lib/resource/demo/DemoGer.gf
@@ -0,0 +1,16 @@
+--# -path=.:alltenses
+
+concrete DemoGer of Demo =
+ NounGer,
+ ClauseGer,
+ AdjectiveGer,
+ AdverbGer,
+ NumeralGer,
+ QuestionGer,
+ StructuralGer,
+ LexiconGer
+ ** {
+
+flags language = de; unlexer = text ; lexer = text ;
+
+} ;
diff --git a/old-lib/resource/demo/DemoIta.gf b/old-lib/resource/demo/DemoIta.gf
new file mode 100644
index 000000000..bd5d94d0d
--- /dev/null
+++ b/old-lib/resource/demo/DemoIta.gf
@@ -0,0 +1,16 @@
+--# -path=.:alltenses
+
+concrete DemoIta of Demo =
+ NounIta,
+ ClauseIta,
+ AdjectiveIta,
+ AdverbIta,
+ NumeralIta,
+ QuestionIta,
+ StructuralIta,
+ LexiconIta
+ ** {
+
+flags language = it; unlexer = text ; lexer = text ;
+
+} ;
diff --git a/old-lib/resource/demo/DemoNor.gf b/old-lib/resource/demo/DemoNor.gf
new file mode 100644
index 000000000..92487132f
--- /dev/null
+++ b/old-lib/resource/demo/DemoNor.gf
@@ -0,0 +1,16 @@
+--# -path=.:alltenses
+
+concrete DemoNor of Demo =
+ NounNor,
+ ClauseNor,
+ AdjectiveNor,
+ AdverbNor,
+ NumeralNor,
+ QuestionNor,
+ StructuralNor,
+ LexiconNor
+ ** {
+
+flags language = no; unlexer = text ; lexer = text ;
+
+} ;
diff --git a/old-lib/resource/demo/DemoRus.gf b/old-lib/resource/demo/DemoRus.gf
new file mode 100644
index 000000000..ab8ef8934
--- /dev/null
+++ b/old-lib/resource/demo/DemoRus.gf
@@ -0,0 +1,16 @@
+--# -path=.:alltenses
+
+concrete DemoRus of Demo =
+ NounRus,
+ ClauseRus,
+ AdjectiveRus,
+ AdverbRus,
+ NumeralRus,
+ QuestionRus,
+ StructuralRus,
+ LexiconRus
+ ** {
+
+flags language = ru; unlexer = text ; lexer = text ;
+
+} ;
diff --git a/old-lib/resource/demo/DemoSpa.gf b/old-lib/resource/demo/DemoSpa.gf
new file mode 100644
index 000000000..e254c45a6
--- /dev/null
+++ b/old-lib/resource/demo/DemoSpa.gf
@@ -0,0 +1,16 @@
+--# -path=.:alltenses
+
+concrete DemoSpa of Demo =
+ NounSpa,
+ ClauseSpa,
+ AdjectiveSpa,
+ AdverbSpa,
+ NumeralSpa,
+ QuestionSpa,
+ StructuralSpa,
+ LexiconSpa
+ ** {
+
+flags language = es; unlexer = text ; lexer = text ;
+
+} ;
diff --git a/old-lib/resource/demo/DemoSwe.gf b/old-lib/resource/demo/DemoSwe.gf
new file mode 100644
index 000000000..b6d9bfb66
--- /dev/null
+++ b/old-lib/resource/demo/DemoSwe.gf
@@ -0,0 +1,16 @@
+--# -path=.:alltenses
+
+concrete DemoSwe of Demo =
+ NounSwe,
+ ClauseSwe,
+ AdjectiveSwe,
+ AdverbSwe,
+ NumeralSwe,
+ QuestionSwe,
+ StructuralSwe,
+ LexiconSwe
+ ** {
+
+flags language = sv; unlexer = text ; lexer = text ;
+
+} ;