mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-21 00:52:51 -06:00
extended dialogue example
This commit is contained in:
19
examples/dialogue/LightsEng.gf
Normal file
19
examples/dialogue/LightsEng.gf
Normal file
@@ -0,0 +1,19 @@
|
||||
--# -path=.:present:prelude
|
||||
|
||||
concrete LightsEng of Lights =
|
||||
DialogueEng ** open LangEng, ParadigmsEng, AuxEng, Prelude in {
|
||||
|
||||
lin
|
||||
Light = UseN (regN "light") ;
|
||||
Room = UseN (regN "room") ;
|
||||
SwitchOnIn = dirV3 (partV (regV "switch") "on") (mkPreposition "in") ;
|
||||
SwitchOffIn = dirV3 (partV (regV "switch") "off") (mkPreposition "in") ;
|
||||
SwitchOn = dirV2 (partV (regV "switch") "on") ;
|
||||
SwitchOff = dirV2 (partV (regV "switch") "off") ;
|
||||
|
||||
LivingRoom = defN (regN ["living-room"]) ;
|
||||
Kitchen = defN (regN ["kitchen"]) ;
|
||||
|
||||
MorningMode = mkMove (optStr "the" ++ ["morning mode"]) ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user