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

📄 token.cpp

📁 a basic interpreter free basic
💻 CPP
字号:
#include "StdAfx.h"
#include "Token.h"


CToken::CToken(void)
: m_TokenType(T_NONE),
  m_Lexeme("")
{
}

CToken::~CToken(void)
{
	this->m_Lexeme.clear();
}

// Construct the token to populate
CToken::CToken(tokentype_t TokenType, string Lexeme)
: m_TokenType(TokenType),
  m_Lexeme(Lexeme)
{
}

// Set the token type
void CToken::SetTokenType(tokentype_t TokenType)
{
	this->m_TokenType = TokenType;
}

// Get the token type
tokentype_t CToken::GetTokenType(void)
{
	return this->m_TokenType;
}

// Set the token lexeme
void CToken::SetLexeme(string Lexeme)
{
	this->m_Lexeme = Lexeme;
}

// Get the token lexeme
string CToken::GetLexeme(void)
{
	return this->m_Lexeme;
}

⌨️ 快捷键说明

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