Added instruction generation code to Lexer
This commit is contained in:
1 parent
49f3c84e60
commit
3bc93fa3a7
4 files changed
+148
-74
No files matched your search
@@ -133,7 +133,7 @@ class if_instruction(Iinstruction):
|
||||
res += '\t'+str(inst)+";\n"
|
||||
res += "}"
|
||||
if self.false_case:
|
||||
res += " else {"
|
||||
res += " else {\n"
|
||||
for inst in self.true_case:
|
||||
res += '\t'+str(inst)+";\n"
|
||||
res += "}"
|
||||
|
||||
Reference in new issue
Block a user