Implements pretty printers for CGIR AST.
proc render(m: CgModule; ast: Ast; n: NodeIndex; indent = 0): string {.
...raises: [], tags: [].}
-
Renders structurally sound AST (i.e., terminals are valid and child counts are proper) into a generic S-expression representation.
Source
Edit