Printing AST in YAML: Module passes.to_yml

pyrser.passes.to_yml.to_yml(self)[source]

Allow to get the YML string representation of a Node.:

from pyrser.passes import to_yml

t = Node()
...
print(str(t.to_yml()))
pyrser.passes.to_yml.yml_attr(k, v)[source]
pyrser.passes.to_yml.to_yml_item(item, pp, name)[source]