added skeleton for parsing
This commit is contained in:
parent
1b8115ef23
commit
7c6379c62d
7 changed files with 123 additions and 0 deletions
22
simulator_SIC_XE/src/node.cpp
Normal file
22
simulator_SIC_XE/src/node.cpp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#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;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue