{% macro process(index, depth, parent) %} {% set local_id = parent ~ "@" ~ index %} {% if instructions[index].action.type == "Combine" %}
{% for source in instructions[index].values %} {{ self::process(index=source, depth = depth + 1, parent = local_id) }} {% endfor %} {% elif instructions[index].action.type == "Node" %} {% for source in instructions[index].values %} {{ self::process(index=source, depth = depth + 1,parent = local_id) }} {% endfor %} {% elif instructions[index].action.type == "Module" %} {% for source in instructions[index].values %} {{ self::process(index=source, depth = depth + 1,parent = local_id) }} {% endfor %} {% elif instructions[index].action.type == "Sequence" %} {% endif %} {% endmacro %}