📄 global.h
字号:
//Author:谭添升
#define ATTTAB_LEN 1000
#define SYMTAB_LEN 1000
#define NUM_INS 1000
#define NAME_LEN 1000
struct Symtable{
int idname;
int type;
int place;
int class; /*identify a id from other token*/
struct Jmplist * nextlist;
struct Jmplist * truelist;
struct Jmplist * falselist;
double value;
};
typedef struct Code
{
int op;
union{
int isrc1;
double fsrc1;
}src1;
int src2;
int dest;
}Code;
struct Jmplist /*回填使用的转移指令表*/
{
int index;
struct Jmplist * next;
};
enum code_ops{op_cmov,op_fcmov,op_mov,op_add, op_minus, op_mult, op_div, op_mod, op_fadd, op_fminus, op_fmult, op_fdiv, op_a, op_ae, op_b, op_be, op_e, op_ne, op_and, op_or, op_xor ,
op_neg, op_realtoint, op_inttoreal ,op_read,op_readf,op_write,op_writef,op_jmp,op_zjmp};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -