📄 token.h
字号:
#pragma once
#include "Common.h"
/*
* Class CToken - Class for an individual token
*/
class CToken
{
private:
// Type of token
tokentype_t m_TokenType;
// Lexeme of the token
string m_Lexeme;
public:
// Construct the token to populate
CToken(void);
~CToken(void);
CToken(tokentype_t TokenType, string Lexeme);
// Set the token type
void SetTokenType(tokentype_t TokenType);
// Get the token type
tokentype_t GetTokenType(void);
// Set the token lexeme
void SetLexeme(string Lexeme);
// Get the token lexeme
string GetLexeme(void);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -