token.h
来自「a basic interpreter free basic」· C头文件 代码 · 共 30 行
H
30 行
#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 + =
减小字号Ctrl + -
显示快捷键?