Added instruction generation code to Lexer

This commit is contained in:
weckyy702 committed 2021-04-01 17:00:19 +02:00
1 parent 49f3c84e60
commit 3bc93fa3a7
4 files changed
+148 -74

No files matched your search

+1 -1
View File
@@ -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 += "}"