added skeleton for parsing
This commit is contained in:
parent
1b8115ef23
commit
7c6379c62d
7 changed files with 123 additions and 0 deletions
26
simulator_SIC_XE/include/code.h
Normal file
26
simulator_SIC_XE/include/code.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#ifndef CODE_H
|
||||
#define CODE_H
|
||||
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
|
||||
#include "node.h"
|
||||
|
||||
class Code {
|
||||
|
||||
public:
|
||||
Code() = default;
|
||||
|
||||
void addLine(const std::shared_ptr<Node>& line);
|
||||
|
||||
const std::vector<std::shared_ptr<Node>>& getLines() const;
|
||||
|
||||
const string toString() const;
|
||||
|
||||
private:
|
||||
std::vector<std::shared_ptr<Node>> _lines;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // CODE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue