added skeleton for parsing
This commit is contained in:
parent
1b8115ef23
commit
7c6379c62d
7 changed files with 123 additions and 0 deletions
31
simulator_SIC_XE/include/node.h
Normal file
31
simulator_SIC_XE/include/node.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef NODE_H
|
||||
#define NODE_H
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
#include "mnemonic.h"
|
||||
|
||||
using std::string;
|
||||
|
||||
class Node {
|
||||
public:
|
||||
|
||||
string getLabel() const;
|
||||
|
||||
string getComment() const;
|
||||
|
||||
std::shared_ptr<Mnemonic> getMnemonic() const;
|
||||
|
||||
string toString() const;
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
string _label;
|
||||
std::shared_ptr<Mnemonic> _mnemonic;
|
||||
string _comment;
|
||||
};
|
||||
|
||||
|
||||
#endif // NODE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue