action.h
来自「(1) 给定一段符合Pascal子集语法的语言」· C头文件 代码 · 共 33 行
H
33 行
#pragma once
/* 类型定义 */
#define integer 1
#define real 2
#define boolean 3
#define vector_type 4
/* jump指令类型定义 */
#define above 1
#define aboveequal 2
#define equal 3
#define notequal 4
/*-----------------------------*/
/* 定义了对应不同产生式调用的语义动作
/*-----------------------------*/
class action
{
public:
action(void);
~action(void);
public:
void take_action(int creation_num); //调用动作
public:
static string itos(int i ); //类函数用来将整数转成stl的string类型
public:
code _code; //输出四元式的类型
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?