From ae8970bf307cf3727b4de2499eac776c9eac1e40 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 28 Sep 2020 14:10:08 +0200 Subject: [PATCH] jitters: print AST after parsing expression --- src/jitters.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jitters.c b/src/jitters.c index 278f70e..3714854 100644 --- a/src/jitters.c +++ b/src/jitters.c @@ -2,6 +2,7 @@ #include #include "ast/ast.h" +#include "print/printer.h" #include "parse/parse-jitters.h" int main(void) @@ -10,7 +11,8 @@ int main(void) int ret = 0; yydebug = getenv("PARSE") != NULL; if ((ret = yyparse(&ast)) == 0) { - /* Nothing */ + printer_ast(ast); + putchar('\n'); } destroy_ast(ast);