]> mj.ucw.cz Git - umpf.git/blob - brum.c
and fix it a bit
[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         current_body = get_body();
26 //      print_headers(current_headers);
27
28         save_current_headers(var_hash);
29         interp(input_tree, var_hash);
30         
31         print_vars(var_hash);
32
33         return 0;
34 }