Added instruction generation code to Lexer

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

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 += "}"