|
@@ -214,7 +214,7 @@ def bootstrap():
|
|
# Compile the subfile
|
|
# Compile the subfile
|
|
bootstrap_file = bootstrap_file.replace("\\", "/")
|
|
bootstrap_file = bootstrap_file.replace("\\", "/")
|
|
print("[ALC] %s" % bootstrap_file)
|
|
print("[ALC] %s" % bootstrap_file)
|
|
- all_code += open(bootstrap_file, 'r').read()
|
|
|
|
|
|
+ all_code += "".join([i.replace(" = ?\n", "\n") for i in open(bootstrap_file, 'r').readlines() if not i.startswith("include ")])
|
|
f.write(compile_code_AL(bootstrap_file, "initial_IP", prepend=bootstrap_file, main=bootstrap_file==main_file), both=False)
|
|
f.write(compile_code_AL(bootstrap_file, "initial_IP", prepend=bootstrap_file, main=bootstrap_file==main_file), both=False)
|
|
|
|
|
|
# TODO all assigns stored in:
|
|
# TODO all assigns stored in:
|
|
@@ -223,6 +223,7 @@ def bootstrap():
|
|
# Now link the code with the compilation manager structure
|
|
# Now link the code with the compilation manager structure
|
|
|
|
|
|
print("[MERGE]")
|
|
print("[MERGE]")
|
|
|
|
+ all_code += "Void function main():\n\tlog(\"INIT\")\n\treturn!"
|
|
with open("bootstrap/merged.alm", 'w') as merged:
|
|
with open("bootstrap/merged.alm", 'w') as merged:
|
|
merged.write(all_code)
|
|
merged.write(all_code)
|
|
|
|
|