]> mj.ucw.cz Git - umpf.git/blob - brum.c
integrate locks to the source
[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         save_gids();
13         read_conf(argv[1]);
14
15 //      yydebug=1;
16         res = yyparse ();
17
18         if (res)
19                 return res;
20
21         print_tree(input_tree,0);
22
23         var_hash = new_var_hash();
24
25         current_headers = make_hlist();
26         current_body = get_body();
27 //      print_headers(current_headers);
28
29         save_current_headers(var_hash);
30         interp(input_tree, var_hash);
31         
32         print_vars(var_hash);
33
34         return 0;
35 }