全部文本 #39314 原始 编辑

Someone

公开 c v1 · 不可变
·已发布 2006-01-31 21:43 UTC
渲染后的文本正文
intmain(int argc, char **argv){	int r;	yydebug = 1;	/* redirect input to the file supplied at the command line */	if (argc == 2) {		freopen(argv[1], "r", stdin);		filename = strdup(argv[1]);	}		r = yyparse();	if (r == 0) {		printf("Success!\n");		AST_program_print(stdout, 0, ast);		AST_program_parse(ast, 193);	}	else		printf("Failure!\n");	if (argc == 2)		close(argv[1]);	return r;}