summaryrefslogtreecommitdiff
path: root/src/ast_pretty_printer.h
AgeCommit message (Collapse)Author
2023-05-05pretty-printer: Remove unused fieldCarlos Maniero
Signed-off-by: Carlos Maniero <carlos@maniero.me>
2023-05-05cli: Add AST pretty-printing option (--ast-dump)Johnny Richard
Parsing can be a complex process, and it's not always easy to get a clear picture of what's happening with the AST. This commit adds a new feature to the CLI that allows us to pretty-print the AST (outputs to stdout), making it easier to visualize the tree structure and understand how the parser is working. The new --ast-dump option generates a human-readable representation of the AST, including node types, values, and child relationships. This information can be invaluable for debugging and understanding the parser's behavior. Signed-off-by: Johnny Richard <johnny@johnnyrichard.com> Reviewed-by: Carlos Maniero <carlos@maniero.me>