22 lines
No EOL
368 B
C++
22 lines
No EOL
368 B
C++
#include "node.h"
|
|
|
|
string Node::getLabel() const
|
|
{
|
|
return _label;
|
|
}
|
|
|
|
string Node::getComment() const
|
|
{
|
|
return _comment;
|
|
}
|
|
|
|
std::shared_ptr<Mnemonic> Node::getMnemonic() const
|
|
{
|
|
return _mnemonic;
|
|
}
|
|
|
|
string Node::toString() const
|
|
{
|
|
return (_label.length() > 0 ? _label + " " : "") + (_mnemonic ? _mnemonic->toString() + " ": "") + "." + _comment;
|
|
}
|
|
|