#include <context.h>
#include <lint.h>
#include <log.h>
#include <preprocess.h>
#include <tokenize.h>

int main(int argc, char *argv[])
{
	if (argc < 2)
		err("Not enough arguments!");

	struct ctx *ctx = context_create(argv[1]);
	preprocess(ctx);
	tokenize(ctx);
	lint(ctx);
	tokens_print(ctx);

	context_destroy(ctx);

	return 0;
}