debug.jinja 601 B

12345678910111213141516171819
  1. {% if dump_sems is defined %}
  2. // vvvvvv SEMANTICS
  3. {#- replace(' ', ' ') is workaround, else `split` function in C++ receive invalid input -#}
  4. {%- set lines = split(dump_sems|replace(' ', ' '), '\n') -%}
  5. {%- for line in lines %}
  6. // {{ line }}
  7. {%- endfor %}
  8. // ^^^^^^ SEMANTICS
  9. {%- endif %}
  10. {% if dump_attrs is defined %}
  11. // vvvvvv ATTRIBUTES
  12. {#- replace(' ', ' ') is workaround, else `split` function in C++ receive invalid input -#}
  13. {%- set lines = split(dump_attrs|replace(' ', ' '), '\n') -%}
  14. {%- for line in lines %}
  15. // {{ line }}
  16. {%- endfor %}
  17. // ^^^^^^ ATTRIBUTES
  18. {%- endif %}