From f768d9bdb84e846d89aac66a4f3433a44241c298 Mon Sep 17 00:00:00 2001 From: Galin Simeonov Date: Mon, 17 May 2021 17:29:08 +0300 Subject: parser formed --- test | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'test') 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; + ]; ]; + -- cgit v1.2.3