Translate method refactoring

This commit is contained in:
Hazem Krimi
2024-05-02 21:42:00 +01:00
parent 2040a363e3
commit 4d70d05c27
5 changed files with 74 additions and 40 deletions
+12 -2
View File
@@ -10,8 +10,7 @@ enum Segment
POINTER,
};
enum Operation
{
enum NoArgumentCommand {
ADD,
SUB,
NEG,
@@ -22,3 +21,14 @@ enum Operation
OR,
NOT
};
enum OneArgumentCommand {
LABEL,
GOTO,
IFGOTO,
};
enum TwoArgumentCommand {
PUSH,
POP
};