mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
gf-book web page index and toc
This commit is contained in:
16
gf-book/examples/chapter6/Smart.gf
Normal file
16
gf-book/examples/chapter6/Smart.gf
Normal file
@@ -0,0 +1,16 @@
|
||||
abstract Smart = {
|
||||
|
||||
cat
|
||||
Command ;
|
||||
Kind ;
|
||||
Device Kind ;
|
||||
Action Kind ;
|
||||
|
||||
fun
|
||||
Act : (k : Kind) -> Action k -> Device k -> Command ;
|
||||
The : (k : Kind) -> Device k ; -- the light
|
||||
Light, Fan : Kind ;
|
||||
Dim : Action Light ;
|
||||
SwitchOn, SwitchOff : (k : Kind) -> Action k ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user