summaryrefslogtreecommitdiff
path: root/src/ast_pretty_printer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast_pretty_printer.c')
-rw-r--r--src/ast_pretty_printer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ast_pretty_printer.c b/src/ast_pretty_printer.c
index ec8d2de..95f5993 100644
--- a/src/ast_pretty_printer.c
+++ b/src/ast_pretty_printer.c
@@ -117,6 +117,11 @@ ast_pretty_printer_print_ast(ast_pretty_printer_t *printer, ast_node_t *ast)
ast_pretty_printer_printf(printer, "Literal type=i32 value='%d'\n", literal.value.integer);
break;
}
+ case AST_LITERAL_BOOL:
+ ast_pretty_printer_set_lst_children(printer);
+ ast_pretty_printer_printf(
+ printer, "Literal type=bool value='%s'\n", literal.value.boolean ? "true" : "false");
+ break;
}
break;
}