📄 lycond.c
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -