Scheduler first commit
This commit is contained in:
parent
70c53a9aef
commit
2c64ebda67
24 changed files with 880 additions and 0 deletions
35
examples/schedule/templates/schedule_template.j2
Normal file
35
examples/schedule/templates/schedule_template.j2
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{% macro Start(name) %}
|
||||
{{ name }} = Start()
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro End(name) %}
|
||||
{{ name }} = End()
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Match(name, file, n) %}
|
||||
{{ name }} = Match("{{ file }}", {{ n }})
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Rewrite(name, file) %}
|
||||
{{ name }} = Rewrite("{{ file }}")
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Data_modify(name, dict) %}
|
||||
{{ name }} = DataModify({{ dict }})
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Exec_con(name_from, name_to, gate_from, gate_to) %}
|
||||
{{ name_from }}.connect({{ name_to }},{{ gate_from }},{{ gate_to }})
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Data_con(name_from, name_to, event) %}
|
||||
{{ name_from }}.connect_data({{ name_to }}, {{ event }})
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Loop(name, choise) %}
|
||||
{{ name }} = Loop({{ choise }})
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Print(name, label) %}
|
||||
{{ name }} = Print("{{ label }}")
|
||||
{%- endmacro %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue