Skip to content

Commit

Permalink
feat: Added pretty print for AST
Browse files Browse the repository at this point in the history
  • Loading branch information
alinalihassan committed May 31, 2022
1 parent 2209a43 commit e9d60c8
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 103 deletions.
2 changes: 1 addition & 1 deletion src/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ int main(int argc, char **argv) {
parser->Parse();)

if (options->debug)
print(DEBUG, "AST:\n{}", parser->getAST()->toString(srcMgr.get(), 0));
print(DEBUG, "AST:\n{}", parser->getAST()->toString(srcMgr.get(), "", true));

// Codegen
TIMEIT("Compiling",
Expand Down
Loading

0 comments on commit e9d60c8

Please sign in to comment.