Basic arithmetic and jump labels
This commit is contained in:
15
include/interpret/code.hpp
Normal file
15
include/interpret/code.hpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user