compiler/stage1_py/l0_ast_printer.py

Module l0_ast_printer

Overview Symbols grouped by source file: compiler/stage1_py/l0_ast_printer.py

Source: compiler/stage1_py/l0_ast_printer.py Language: Python

Module Members

  • _format_span: str l0_ast_printer._format_span(Span|None span) - Format a source span for printing.
  • format_node: List[str] l0_ast_printer.format_node(Any node, int indent=0) - Generic, reflection-based AST pretty-printer.
  • format_module: str l0_ast_printer.format_module(Module mod) - Convenience function to pretty-print a single Module as a string.