blob: ed458f8fa54358a6e8ad783ba36a0a3a861ded7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef INSTRUCTIONPARSER_H
#define INSTRUCTIONPARSER_H
#include "instructionlist.h"
#include "instruction.h"
using namespace std;
class InstructionParser
{
private:
InstructionList *instructions;
vector<string> programLines;
vector<string> programLinesBinary;
//Instruction* getInstruction(const string &instruction);
void programLinesToBinary();
void binaryToProgramLines();
public:
InstructionParser(InstructionList *il);
void readProgramLines(const string &filename);
void readTextBlob(const string &filename);
void binaryOutputToFile(const string &filename);
void instructionOutputToFile(const string &filename);
};
#endif // INSTRUCTIONPARSER_H
|