aboutsummaryrefslogtreecommitdiff
path: root/crowbar_reference_compiler
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-10-25 03:00:59 -0600
committerMelody Horn <melody@boringcactus.com>2020-10-25 03:00:59 -0600
commit6fe532df3d860576b7af7375056cfe2fea27700d (patch)
tree020d5849f04dd2860ffa82d46cc5bb26ea9175ad /crowbar_reference_compiler
parent6aa2e2a969297cc64215d94cf83612cac1644e7f (diff)
downloadreference-compiler-6fe532df3d860576b7af7375056cfe2fea27700d.tar.gz
reference-compiler-6fe532df3d860576b7af7375056cfe2fea27700d.zip
it helps if you write out the correct thing
Diffstat (limited to 'crowbar_reference_compiler')
-rw-r--r--crowbar_reference_compiler/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/crowbar_reference_compiler/__init__.py b/crowbar_reference_compiler/__init__.py
index 87f5aa7..d4e7430 100644
--- a/crowbar_reference_compiler/__init__.py
+++ b/crowbar_reference_compiler/__init__.py
@@ -9,7 +9,7 @@ def main():
import sys
args = argparse.ArgumentParser(description='The reference compiler for the Crowbar programming language')
- args.add_argument('-V', '--version', action='version', version='%(prog)s 0.0.3')
+ args.add_argument('-V', '--version', action='version', version='%(prog)s 0.0.4')
args.add_argument('-g', '--include-debug-info', action='store_true')
args.add_argument('--stop-at-parse-tree', action='store_true')
args.add_argument('--stop-at-qbe-ssa', action='store_true')
@@ -47,7 +47,7 @@ def main():
if args.out is None:
args.out = args.input.replace('.cro', '.o')
with open(args.out, 'w', encoding='utf-8') as output_file:
- output_file.write(ssa)
+ output_file.write(asm)
return
if args.out is None:
args.out = args.input.replace('.cro', '.out')