21 lines
457 B
C++
21 lines
457 B
C++
#pragma once
|
|
#include <interpret/statement.hpp>
|
|
#include <memory>
|
|
#include <string>
|
|
#include <unordered_map>
|
|
#include <vector>
|
|
|
|
namespace Interpret
|
|
{
|
|
struct Code
|
|
{
|
|
std::vector<std::unique_ptr<Statement>> statements;
|
|
std::unordered_map<std::string, unsigned> labelStatementIndice;
|
|
std::unordered_map<std::string, int> declarations;
|
|
|
|
Code() = default;
|
|
~Code() = default;
|
|
Code(const Code&) = delete;
|
|
Code& operator=(const Code&) = delete;
|
|
};
|
|
} |