📄 signrule.h
字号:
#include <windows.h>
#define MAX_RULE_LEN 30
#define END_SIGN '#'
#define IsNonTerminalSign(ch) (ch >= 'A' && ch <= 'Z')
typedef int STATE;
typedef char SIGN;
struct RULE
{
SIGN Left;
SIGN Right[MAX_RULE_LEN + 1];
RULE();
RULE(const RULE&);
void operator=(const RULE&);
bool operator==(const RULE&);
};
class SIGN_SET
{
public:
SIGN_SET();
SIGN_SET(const SIGN_SET&);
~SIGN_SET();
int GetSignNum();
bool IsSignInSet(SIGN);
bool AppendSign(SIGN,bool CanRepeat = false);
bool DeleteSign(SIGN,bool CheckRepeat = false);
bool DeleteSign(int);
SIGN operator[](int);
void operator=(const SIGN_SET&);
void operator=(const SIGN*);
bool operator+=(const SIGN_SET&);
void Reset();
void Output(LPTSTR pStr,int startpos = 0);
private:
SIGN* pSigns;
int SignNum;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -