Mercurial > hg > Applications > Lite
annotate tk/gi4.lite @ 22:29cf617f49db default tip
newer CVS version
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 22 Apr 2016 16:47:13 +0900 |
parents | 1c57a78f1d98 |
children |
rev | line source |
---|---|
2 | 1 % |
2 % specification for simple graphics interaction | |
3 % | |
4 | |
5 specification(( | |
6 +(((stop-> | |
7 keep(not(move))), | |
8 ((start -> | |
9 keep((green,move;not(green),not(move))))), | |
10 next(halt((stop;start;quit))) | |
11 )), | |
12 proj( | |
13 ( length(10), | |
14 ((stable(red),stable(green))&skip) | |
15 ),( | |
16 st(s0),halt(quit) | |
17 ) | |
18 ) | |
19 )). | |
20 | |
21 st_variables([stop,start,quit],[red,green,move]). | |
22 | |
23 | |
24 st(s0,(green,not(red)),s1). | |
25 st(s1,(not(green),red),s0). | |
26 st(s0,empty,empty). | |
27 st(s1,empty,empty). |