⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 my_define.h

📁 词法、语法分析程序。 绝对不是目前网络上流行的任何一个版本
💻 H
字号:
//为增加程序的可读性,将内码值定义为不同的标识符
#define PROGRAM 1
#define CONST 2
#define VAR 3
#define INTEGER 4
#define LONG 5
#define PROCEDURE 6
#define IF 7
#define THEN 8
#define WHILE 9
#define DO 10
#define READ 11
#define WRITE 12
#define BEGIN 13
#define END 14
#define ODD 15
#define ADD 16
#define SUB 17
#define MUL 18
#define DIV 19
#define EQU 20
#define NEQ 21
#define LES 22
#define LEQ 23
#define LAG 24
#define GEQ 25
#define DOT 26
#define COM 27
#define SEM 28
#define COL 29
#define ASS 30
#define LBR 31
#define RBR 32
#define INT 33
#define ID 34
#define EIN 35
//////////////////////////////////////////////////
#define lenth1 15
//保留字表长度
#define lenth2 17
//运算符、界符表长度

#define MAX_NUM_OF_V 200
//所允许的变量个数
#define MAX_LENTH_OF_V 20
//所允许的变量长度
#define BEGIN_OF_V 50
//变量表表头

#define MAX_NUM_OF_C 200
//所允许的常量个数
#define MAX_LENTH_OF_C 20
//所允许的常量长度
#define BEGIN_OF_C 1000
//常量表表头

#define MAX_BUFF_LENTH  80
//缓冲区的长度

⌨️ 快捷键说明

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