resource examples

This commit is contained in:
aarne
2005-12-19 16:31:40 +00:00
parent 476f6a9fa3
commit 97d36f0c93
19 changed files with 1040 additions and 207 deletions

View File

@@ -0,0 +1,12 @@
abstract Comments = {
cat
S ; Item ; Kind ; Quality ;
fun
Is : Item -> Quality -> S ;
This, That, These, Those : Kind -> Item ;
QKind : Quality -> Kind -> Kind ;
Very : Quality -> Quality ;
}

View File

@@ -0,0 +1,2 @@
concrete CommentsEng of Comments = CommentsI with
(Syntax = SyntaxEng) ;

View File

@@ -0,0 +1,21 @@
--# -path=.:prelude
incomplete concrete CommentsI of Comments = open Syntax in {
lincat
S = Syntax.S ;
Quality = AP ;
Kind = CN ;
Item = NP ;
lin
Is item quality = PosVP item (PredAP quality) ;
This = DetCN this_Det ;
That = DetCN that_Det ;
These = DetCN these_Det ;
Those = DetCN those_Det ;
QKind = ModCN ;
Very = AdAP very_AdA ;
}

View File

@@ -0,0 +1,2 @@
concrete CommentsIta of Comments = CommentsI with
(Syntax = SyntaxIta) ;

View File

@@ -0,0 +1,7 @@
abstract FoodComments = Comments ** {
fun
Wine, Cheese, Fish, Pizza : Kind ;
Fresh, Warm, Italian, Expensive, Delicious, Boring : Quality ;
}

View File

@@ -0,0 +1,18 @@
--# -path=.:../resource:prelude
concrete FoodCommentsEng of FoodComments = CommentsEng ** open LexEng in {
lin
Wine = regN "wine" ;
Cheese = regN "cheese" ;
Fish = mkN "fish" "fish" ;
Pizza = regN "pizza" ;
Fresh = mkA "fresh" ;
Warm = mkA "warm" ;
Italian = mkA "Italian" ;
Expensive = mkA "expensive" ;
Delicious = mkA "delicious" ;
Boring = mkA "boring" ;
}

View File

@@ -0,0 +1,17 @@
--# -path=.:../resource:prelude
concrete FoodCommentsIta of FoodComments = CommentsIta ** open LexIta in {
lin
Wine = regN "vino" ;
Cheese = mkN masculine "formaggio" "formaggi" ;
Fish = regN "pesce" ;
Pizza = regN "pizza" ;
Fresh = mkA "fresco" "fresca" "freschi" "fresche" ;
Warm = regA "caldo" ;
Italian = regA "italiano" ;
Expensive = regA "caro" ;
Delicious = regA "delizioso" ;
Boring = regA "noioso" ;
}