14 int main(int argc
, char **argv
)
16 int fd
= open(argv
[1], O_RDONLY
);
18 struct symbol_list
*list
= NULL
;
21 die("No such file: %s", argv
[1]);
24 // Tokenize the input stream
25 token
= tokenize(argv
[1], fd
, NULL
);
27 // Pre-process the stream
28 token
= preprocess(token
);
30 // Parse the resulting C code
31 translation_unit(token
, &list
);
33 // Show the end result.
34 show_symbol_list(list
);
36 // And show the allocation statistics
40 show_expression_alloc();
41 show_statement_alloc();