Skip to main content

Module format

Module format 

Source

Functionsยง

format_ast
Formats an AST node into a readable string with appropriate indentation. This function handles various types of AST nodes, applying formatting rules based on node type. It also manages operator precedence to ensure correct placement of parentheses.