2 * Example trivial client program that uses the sparse library
3 * to tokenize, pre-process and parse a C file, and prints out
6 * Copyright (C) 2003 Transmeta Corp.
9 * Licensed under the Open Software License version 1.1
23 #include "expression.h"
25 static void clean_up_symbols(struct symbol_list
*list
)
29 FOR_EACH_PTR(list
, sym
) {
31 } END_FOR_EACH_PTR(sym
);
34 int main(int argc
, char **argv
)
36 struct symbol_list
*list
= sparse(argc
, argv
);
39 clean_up_symbols(list
);
42 // Show the end result.
43 show_symbol_list(list
, "\n\n");
48 // And show the allocation statistics
52 show_expression_alloc();
53 show_statement_alloc();