added skeleton for parsing

This commit is contained in:
zanostro 2025-12-10 09:26:34 +01:00
parent 1b8115ef23
commit 7c6379c62d
7 changed files with 123 additions and 0 deletions

View 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