Mercurial > hg > Applications > Tokio
annotate Examples/toy/gi_ex.pl @ 0:cfb7c6b24319
Initial revision
author | kono |
---|---|
date | Thu, 30 Aug 2007 14:57:44 +0900 |
parents | |
children |
rev | line source |
---|---|
0 | 1 % |
2 % specification for simple graphics interaction | |
3 % | |
4 | |
5 gi_ex(( | |
6 +(((stop,keep((red,not(start)));start,keep((green,not(stop)))))), | |
7 []((red,not(green);not(red),green)), | |
8 []((green->move)), | |
9 []((red->not(move))), | |
10 halt(quit) | |
11 )) :- | |
12 asserta(lite:st_variables([stop,start,quit],[red,gree,move])). | |
13 | |
14 gi:-gi_ex(X),write(X),nl,lite:ex(X),nl,lite:tgen. | |
15 | |
16 giout :- gi_ex(X),lite:ex(X),tell('gi.tokio'),lite:tgen,told. |