bagheera.parser.parser.print_ast

bagheera.parser.parser.print_ast(item, ident=0)[source]

Pretty prints the AST to std.out.

Parameters
  • item – AST-Item to print (recursively iterates through the children)

  • ident (int) – Identation depth (defaults to 0 and is incremented for each recursive call)

Returns

None