solved error in test

This commit is contained in:
Felix Müller 2024-05-15 16:26:40 +02:00
parent f2317c78ce
commit d7b690ec8a
2 changed files with 15 additions and 3 deletions

View File

@ -33,7 +33,6 @@ void AST_init() {
DEBUG("initializing global syntax tree..."); DEBUG("initializing global syntax tree...");
INFO("filling lookup table..."); INFO("filling lookup table...");
lookup_table[AST_Stmt] = "stmt"; lookup_table[AST_Stmt] = "stmt";
lookup_table[AST_Module] = "module"; lookup_table[AST_Module] = "module";
lookup_table[AST_Expr] = "expr"; lookup_table[AST_Expr] = "expr";

View File

@ -60,14 +60,27 @@ def run_check_print_node():
29 < 29 <
30 cast 30 cast
31 as 31 as
32 value 32 funcall
33 value 33 value
34 typedef 34 typedef
35 box 35 box
36 fun 36 fun
37 value 37 value
38 list 38 list
39 storage 39 expr list
40 arg list
41 param list
42 stmt list
43 ident list
44 value
45 type
46 value
47 value
48 value
49 -
50 parameter
51 value
52 parameter-declaration
""" == p.stdout """ == p.stdout