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

📄 lexconst.h

📁 lex语法分析
💻 H
字号:
// LexConst.h: interface for the CLexConst class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_LEXCONST_H__BAC88F13_F0B4_11D8_B498_0000E8E7E526__INCLUDED_)
#define AFX_LEXCONST_H__BAC88F13_F0B4_11D8_B498_0000E8E7E526__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <string>
using namespace std;
#define  TAGS_NUM  61
#define  SMALLSET_TAGS_NUM  56
class CTagConst  
{
public:
	static string m_strTags[TAGS_NUM];
	static int    GetTagsNum();
	static int    GetSmallSetTagsNum();
	static unsigned int  GetTagNo(string strTag);
	enum {  // 注意tag是从一开始编号的,因为这样可以和
		    // CLexBTree中的ClearCell一致
		tagAJ0  = 1,
		tagAJC,
		tagAJS,
		tagAT0,
		tagAV0,
		tagAVP,
		tagAVQ,
		tagCJC,
		tagCJS,
		tagCJT,
		tagCRD,
		tagDPS,
		tagDT0,
		tagDTQ,
		tagEX0,
		tagITJ,
		tagNN0,
		tagNN1,
		tagNN2,
		tagNP0,
		tagORD,
		tagPNI,
		tagPNP,
		tagPNQ,
		tagPNX,
		tagPOS,
		tagPRF,
		tagPRP,
		tagPUL,
		tagPUN,
		tagPUQ,
		tagPUR,
		tagTO0,
		tagUNC,
		tagVBB,
		tagVBD,
		tagVBG,
		tagVBI,
		tagVBN,
		tagVBZ,
		tagVDB,
		tagVDD,
		tagVDG,
		tagVDI,
		tagVDN,
		tagVDZ,
		tagVHB,
		tagVHD,
		tagVHG,
		tagVHI,
		tagVHN,
		tagVHZ,
		tagVM0,
		tagVVB,
		tagVVD,
		tagVVG,
		tagVVI,
		tagVVN,
		tagVVZ,
		tagXX0,
		tagZZ0,
		tagUNKNOWN
	};
};
class CFusedConst
{
public:
	struct SFusedWord {
		char srcWord[20];
		char destWord1[10];
		char destWord2[10];
		char destWord3[10];
	};
	static SFusedWord aryFusedWord[67];
};
#endif // !defined(AFX_LEXCONST_H__BAC88F13_F0B4_11D8_B498_0000E8E7E526__INCLUDED_)

⌨️ 快捷键说明

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