blob: 582791388aa966c26e24b7f8dae809c6d08e2542 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include <stdio.h>
#include <stdlib.h>
#include <context.h>
#include <lint.h>
#include <log.h>
#include <preprocess.h>
#include <tokenize.h>
#include <treeify.h>
int main(int argc, char *argv[])
{
if (argc < 2) {
fprintf(stderr, "Not enough arguments!");
exit(1);
}
struct ctx *ctx = context_create(argv[1]);
preprocess(ctx);
tokenize(ctx);
lint(ctx);
treeify(ctx);
context_destroy(ctx);
return 0;
}
|