mirror of
https://github.com/hazemKrimi/jack-vm-translator.git
synced 2026-05-01 18:00:27 +00:00
Translate push and pop commands wip
This commit is contained in:
+6
-4
@@ -22,13 +22,15 @@ int main(int argc, char* argv[])
|
||||
|
||||
Parser parser(sourcePath);
|
||||
|
||||
parser.printFile();
|
||||
vector<vector<string>> commands = parser.getCommands();
|
||||
|
||||
string translatedPath = constructTranslatedPath(sourcePath);
|
||||
|
||||
Code code(translatedPath);
|
||||
Code code(translatedPath, commands);
|
||||
|
||||
code.writeToFile();
|
||||
|
||||
code.translate();
|
||||
|
||||
parser.closeFile();
|
||||
code.closeFile();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user