position.h
来自「用C++作为宿主语言完成Java 语言子集语法、语义分析器。完成文法描述的Jav」· C头文件 代码 · 共 17 行
H
17 行
#ifndef POSITION_H
#define POSITION_H
#include "constant.h"
//位置记录类
class Position
{
public:
int line; //行号
int col; //列号
void Reset(); //清零
void Set(int l, int c); //赋值
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?