29 lines
680 B
C++
29 lines
680 B
C++
#pragma once
|
|
#include <configuration.hpp>
|
|
#include <execute/virtualmachine.hpp>
|
|
#include <interpret/interpreter.hpp>
|
|
#include <token/tokenizer.hpp>
|
|
|
|
class Wassembler
|
|
{
|
|
private:
|
|
Configuration config;
|
|
Execute::VirtualMachine vm;
|
|
bool printSubstitutions;
|
|
bool printTokens;
|
|
|
|
bool LoadLinesFromFile(std::string const & filePath, std::vector<std::string> & lines) const;
|
|
bool LoadTokens(std::vector<std::string> const & lines, std::vector<Token::Token> & tokens) const;
|
|
|
|
public:
|
|
void SetMemorySize(unsigned const size);
|
|
|
|
void EnableSubstitutionsLogging();
|
|
void EnableTokensLogging();
|
|
|
|
bool LoadFromFile(std::string const & filePath);
|
|
|
|
void Run();
|
|
|
|
Wassembler() = default;
|
|
}; |