aboutsummaryrefslogtreecommitdiff
path: root/src/as_main.c
blob: 6c91a5f33827f6fd904c8663bf032f16ee9e9063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>

#include "as_tokenizer.h"
#include "utils.h"

int main(int argc, char** argv) {
    if (argc != 2) {
        fprintf(stderr, "usage: fvm-as <inputfile>\n");
        return 1;
    }
    struct allocator * alct = new_allocator();
    FILE *fp = fopen(argv[1], "r");
    struct token_stream * ts = new_token_stream(alct, fp);

    delete_allocator(alct);
    return 0;
}