]> mj.ucw.cz Git - umpf.git/blob - brum.c
cleanup
[umpf.git] / brum.c
1 #include <stdio.h>
2 #include "brum.h"
3
4 int
5 main(int argc, char** argv)
6 {
7         int res;
8
9         if (argc < 2)
10                 die("Usage: ./brum conf_file");
11
12         read_conf(argv[1]);
13
14 //      yydebug=1;
15         res = yyparse ();
16
17         if (res)
18                 return res;
19
20         print_tree(input_tree,0);
21
22         var_hash = new_var_hash();
23
24         current_headers = make_hlist();
25 //      print_headers(current_headers);
26
27         save_current_headers(var_hash);
28         interp(input_tree, var_hash);
29         
30         print_vars(var_hash);
31
32         return 0;
33 }