lycond.c

来自「C编译器,在VC6.0环境下开发」· C语言 代码 · 共 41 行

C
41
字号
#include	"LYCond.h"
#include	"SymTab.h"
#include	"GBStrTab.h"
#include	"GenCode.h"
#include	"Debug.h"
#include	"Lex.h"
#include	"Error.h"
#include	"stack.h"
#include	<stdio.h>

extern	FILE	*yyin;
//static	FILE	*sg_Input_fp = NULL;
// for test
//const	char	_INPUT_FILE_NAME[] = "Democ.";

void	InitYacc(char *in_name)
{
	set_Keytablesize();

	OpenDebugFile();

	InitGenCode();
	InitStack();
	InitStringTab();
	InitSymTab();

	// push the first file to include stack
	push_include(in_name);
}

void	DestoryYacc(char *out_name)
{
	DestorySymTab();
	DestoryStringTab();
	DestoryStack();
	DestoryGenCode(out_name);
	CloseDebugFile();
}


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?