Mercurial > hg > Applications > Lite
annotate example/gi_ex.pl @ 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 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. |