📄 my_globals.h
字号:
FILE *f1,*f2;
int I=0;
//搜索指示器
int J=0;
//变量名表指示器
int K=0;
//常量表指示器
char buff[MAX_BUFF_LENTH];
//建立缓冲区
char strToken[MAX_BUFF_LENTH];
//存放构成单词符号的字符串
char ch;
//字符变量,存放最新读进的源程序字符
//保留字表
static char a[lenth1+1][10]={"program","const","var",
"integer","long","procedure","if","then","while",
"do","read","write","begin","end","odd"};
static int a_value[lenth1];
//变量名表
char b[MAX_NUM_OF_V+1][MAX_LENTH_OF_V];
int b_value[MAX_NUM_OF_V+1];
//常量表
char c[MAX_NUM_OF_C+1][MAX_LENTH_OF_C];
int c_value[MAX_NUM_OF_C+1];
//运算符、界符表
static char d[lenth2][3]={"+" , "-" , "*" , "/" , "=" ,
"<>" , "<" , "<=" , ">" , ">=" , "." , "," , ";" ,
":" , ":=" , "(" , ")"};
int d_value[lenth2];
//语法分析器中读出的内码
int Code;
//语法分析器中的输入文件流
ifstream infile("output.txt",ios::in|ios::nocreate);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -