7 |
7 |
8 #include <stdio.h> |
8 #include <stdio.h> |
9 |
9 |
10 #include <libtu/misc.h> |
10 #include <libtu/misc.h> |
11 #include <libtu/tokenizer.h> |
11 #include <libtu/tokenizer.h> |
|
12 #include <libtu/util.h> |
12 |
13 |
13 |
14 int main(int argc, char *argv[]) |
14 int main(void) |
|
15 { |
15 { |
16 Tokenizer*tokz; |
16 Tokenizer*tokz; |
17 Token tok=TOK_INIT; |
17 Token tok=TOK_INIT; |
|
18 |
|
19 libtu_init(argv[0]); |
18 |
20 |
19 if(!(tokz=tokz_open_file(stdin))) |
21 if(!(tokz=tokz_open_file(stdin))) |
20 return EXIT_FAILURE; |
22 return EXIT_FAILURE; |
21 |
23 |
22 while(tokz_get_token(tokz, &tok)){ |
24 while(tokz_get_token(tokz, &tok)){ |