debug.jinja 615 B

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