Debian Codegraph @

tests/inputs/traffic_light.fsl

raw
1 machine_name: "Traffic light";
2
3 flow: down;
4
5 arrange [Green Yellow];
6
7 Off 'Enable' -> Red;
8 Red 'Next' => Green 'Next' => Yellow 'Next' => Red;
9
10 [Red Yellow Green] ~> Off;
11
12 // visual styling
13
14 state Red : { background-color: pink; corners: rounded; };
15 state Yellow : { background-color: lightyellow; corners: rounded; };
16 state Green : { background-color: lightgreen; corners: rounded; };
17
18 state Off : {
19 /*
20 background-color : steelblue;
21 text-color */ : white;
22 shape : octagon;
23 linestyle : dashed;
24 };