aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGalin Simeonov <gts@volconst.com>2021-05-17 17:29:08 +0300
committerGalin Simeonov <gts@volconst.com>2021-07-15 18:00:15 +0300
commitf768d9bdb84e846d89aac66a4f3433a44241c298 (patch)
treeb7e8248bebd80c8b1f911f666260ad52b7213b84 /test
parent679cbe58c4e53f0163588a7731154f3afe2d25aa (diff)
downloadMEGATRON-f768d9bdb84e846d89aac66a4f3433a44241c298.tar.gz
parser formed
Diffstat (limited to 'test')
-rw-r--r--test26
1 files changed, 15 insertions, 11 deletions
diff --git a/test b/test
index 3549fc5..c976a6d 100644
--- a/test
+++ b/test
@@ -1,12 +1,16 @@
-machine temp_switch
-[
- state above_treshold;
- starting state below_treshold;
-
- from below_treshold to above_treshold
- on event above_temperature "10";
- from above_treshold to below_treshold
- on event below_temperature "9";
- on state above_treshold
- on event get_temp | html_encase | http_out ;
+machine flicker
+[
+ states [ light_off , light_on ];
+
+ starting on light_on;
+
+ events [ one_second ];
+ transitions
+ [
+ from light_on to light_off on event one_second
+ execute turn_off_light;
+ from light_off to light_on on event one_second
+ execute turn_on_light;
+ ];
];
+