shithub: scc

ref: 7f4177cf55af62d6ed0d29db6bb545d640eba4ac
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 init_lex();
extern void init_symbol();
struct user_opt user_opt;




int main(int argc, char *argv[])
{
	init_lex();
	init_symbol();
	open_file(NULL);
	for (next(); yytoken != EOFTOK; decl())
		/* nothing */;

	return 0;
}