From bbce3104de593c90b10778a379728f982bc3fdcb Mon Sep 17 00:00:00 2001 From: Teddy Date: Sat, 12 Apr 2014 22:24:35 +0800 Subject: typedef now works --- main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index dafcf29..df9807a 100644 --- a/main.c +++ b/main.c @@ -39,11 +39,13 @@ void print_ast() { fprintf(stderr, "AST for file: \"%s\"\n", fname); else fprintf(stderr, "AST for stdin\n"); + cibic_init(); yyparse(); cnode_debug_print(ast_root, 1); } void print_sem() { + cibic_init(); yyparse(); semantics_check(ast_root); /* cnode_debug_print(ast_root, 1); */ -- cgit v1.2.3