symbolentry.cpp
来自「an easy compiler to compile C」· C++ 代码 · 共 21 行
CPP
21 行
// SymbolEntry.cpp: implementation of the SymbolEntry class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "SymbolEntry.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
SymbolEntry::SymbolEntry(const string& alexeme, int atoken_type):
lexeme(alexeme), token_type(atoken_type)
{}
bool SymbolEntry::operator !=(const SymbolEntry& se) const {
return lexeme != se.lexeme || token_type != se.token_type;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?