?? token.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;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -