Update todo, some python codegen
This commit is contained in:
@@ -57,7 +57,7 @@ def update_file(filename, comment_name, data_to_write):
|
||||
|
||||
|
||||
|
||||
if True:
|
||||
if False:
|
||||
result = ""
|
||||
enum_members = [
|
||||
"BC_END_OF_INSTRUCTIONS",
|
||||
@@ -96,7 +96,7 @@ if True:
|
||||
#
|
||||
# Generate switch cases
|
||||
#
|
||||
if True:
|
||||
if False:
|
||||
result = ""
|
||||
|
||||
for size in sizes:
|
||||
@@ -152,6 +152,24 @@ if True:
|
||||
update_file("bytecode_interpreter.cpp", "switch_cases", result)
|
||||
|
||||
|
||||
type_table = [
|
||||
["S", ["Int", "SInt", "4sizes"]],
|
||||
["U", ["Int", "UInt", "4sizes"]],
|
||||
["INT", ["Int", "untyped"]],
|
||||
]
|
||||
|
||||
for name, flags in type_table:
|
||||
names = []
|
||||
if "4sizes" in flags:
|
||||
for size in sizes:
|
||||
names.append(name + size)
|
||||
if "untyped" in flags:
|
||||
names.append("UNTYPED_" + name)
|
||||
|
||||
print(names)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# #
|
||||
|
||||
Reference in New Issue
Block a user