toy1 with classes and using resource API

This commit is contained in:
aarne
2007-06-11 14:53:08 +00:00
parent e6d82e85c1
commit b83a9ec335
10 changed files with 317 additions and 12 deletions

View File

@@ -24,7 +24,7 @@ lin
UQuestion q = q ;
CAction _ act dev = ss (act.s ! VImp ++ bothWays act.part dev.s) ;
QAction _ act dev = ss (be dev.n ++ dev.s ++ act.s ! VPart ++ act.part) ;
QAction _ act st dev = ss (be dev.n ++ dev.s ++ act.s ! VPart ++ act.part ++ st.s) ;
DKindOne k = {
s = "the" ++ k.s ! Sg ;
@@ -42,10 +42,10 @@ lin
light = mkNoun "light" ;
fan = mkNoun "fan" ;
switchOn _ = mkVerb "switch" "swithced" "on" ;
switchOff _ = mkVerb "switch" "swithced" "off" ;
switchOn _ _ = mkVerb "switch" "swithced" "on" ;
switchOff _ _ = mkVerb "switch" "swithced" "off" ;
dim = mkVerb "dim" "dimmed" [] ;
dim _ _ = mkVerb "dim" "dimmed" [] ;
kitchen = ss "kitchen" ;
livingRoom = ss ["living room"] ;
@@ -71,6 +71,14 @@ oper
Pl => "are"
} ;
lin
switchable_light = ss [] ;
switchable_fan = ss [] ;
dimmable_fan = ss [] ;
statelike_switchOn _ _ = ss [] ;
statelike_switchOff _ _ = ss [] ;
}