aboutsummaryrefslogtreecommitdiff
path: root/src/as_main.c
blob: 2809c5997a0f33cbd63390de8fcc42f9e1536f42 (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;
    }
    Allocator alct = newAllocator();
    FILE *fp = fopen(argv[1], "r");
    TokenStream ts = makeTokenStream(alct, fp);

    deleteAllocator(alct);
    return 0;
}