shithub: scc

ref: 28af012e9746a4adacc4e2909d0cfb5e9d8e94e9
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();

	return 0;
}