From 2b438a6284564feec800e5bdca5fe006bf8aed11 Mon Sep 17 00:00:00 2001 From: aarne Date: Mon, 11 Jun 2007 08:55:32 +0000 Subject: toy1 in English --- examples/regulus/toy1/Toy1.gf | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 examples/regulus/toy1/Toy1.gf (limited to 'examples/regulus/toy1/Toy1.gf') diff --git a/examples/regulus/toy1/Toy1.gf b/examples/regulus/toy1/Toy1.gf new file mode 100644 index 000000000..2478360b4 --- /dev/null +++ b/examples/regulus/toy1/Toy1.gf @@ -0,0 +1,35 @@ +abstract Toy1 = { + +flags startcat = Utterance ; + +cat + Utterance ; + Command ; + Question ; + Kind ; + Action Kind ; + Device Kind ; + Location ; + +fun + UCommand : Command -> Utterance ; + UQuestion : Question -> Utterance ; + + CAction : (k : Kind) -> Action k -> Device k -> Command ; + QAction : (k : Kind) -> Action k -> Device k -> Question ; + + DKindOne : (k : Kind) -> Device k ; + DKindMany : (k : Kind) -> Device k ; + DLoc : (k : Kind) -> Device k -> Location -> Device k ; + + light, fan : Kind ; + + switchOn, switchOff : (k : Kind) -> Action k ; + + dim : Action light ; + + kitchen, livingRoom : Location ; + + +} + -- cgit v1.2.3