summaryrefslogtreecommitdiff
path: root/src/gas_assembly_generator.h
diff options
context:
space:
mode:
authorJohnny Richard <johnny@johnnyrichard.com>2023-05-06 00:01:25 +0200
committerCarlos Maniero <carlos@maniero.me>2023-05-05 19:53:40 -0300
commit7781e41927247bff9e567a47f9fa1862ed5596e6 (patch)
tree29635bb2a7fe8a830ed165a3257acb6882dc1ca3 /src/gas_assembly_generator.h
parent17ae189d4a6aa926d8931b1e4f7db8de6caddd90 (diff)
cli: Add AST pretty-printing option (--ast-dump)
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>
Diffstat (limited to 'src/gas_assembly_generator.h')
0 files changed, 0 insertions, 0 deletions