-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParseFile.h
More file actions
30 lines (23 loc) · 759 Bytes
/
ParseFile.h
File metadata and controls
30 lines (23 loc) · 759 Bytes
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
27
28
29
30
#ifndef __parse__
#define __parse__
#include "Build.h"
class ParseFile{
public:
ParseFile();
// Get runnable object by parsing and analysing the given ASM file
Build getBuild(string fileName);
private:
// Lines where pc should start when jumping to labels
map<string,int> labelLocations;
// String representation of the lines that will be analysed
vector<string> displayLines;
// Executable ASM lines
vector<ExecLine> lineInformation;
// Analyse labels from file
void readLabels(string fileName);
// Analyse the entire file to convert to executable lines(after analysing labels)
void readFile(string fileName);
// Display string representation of executable lines
void printLines();
};
#endif