shithub: scc

ref: fd8c907050d89f2c6bbcd0d792ae5a0fc8a72b0d
dir: /main.c/

View raw version

#include <stddef.h>

#include "cc.h"
#include "tokens.h"
#include "syntax.h"

extern void open_file(const char *file);
extern void run(struct node *np);
struct user_opt options;



int
main(int argc, char *argv[])
{
	struct node *np;

	init_keywords();
	open_file(NULL);
	for (next(); yytoken != EOFTOK; run(np))
		np = decl(0);

	return 0;
}