diff options
author | Melody Horn <melody@boringcactus.com> | 2020-11-05 01:27:58 -0700 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2020-11-05 01:27:58 -0700 |
commit | b6258d36b6534d521e9cdf1307665c38e5ae409d (patch) | |
tree | 7e98020964173869f2799533553bcdcd1f64ea1a /crowbar_reference_compiler/__init__.py | |
parent | 9dfc552c0703c5e14ea472eb5431719b2e0d6400 (diff) | |
download | reference-compiler-b6258d36b6534d521e9cdf1307665c38e5ae409d.tar.gz reference-compiler-b6258d36b6534d521e9cdf1307665c38e5ae409d.zip |
compile based on the fancy new AST
Diffstat (limited to 'crowbar_reference_compiler/__init__.py')
-rw-r--r-- | crowbar_reference_compiler/__init__.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crowbar_reference_compiler/__init__.py b/crowbar_reference_compiler/__init__.py index 53d942f..1410bf7 100644 --- a/crowbar_reference_compiler/__init__.py +++ b/crowbar_reference_compiler/__init__.py @@ -1,10 +1,7 @@ -import dataclasses -from pprint import pprint - from .ast import build_ast from .parser import parse_header, parse_implementation from .scanner import scan -from .ssagen import compile_to_ssa +from .ssagen import build_ssa def main(): @@ -37,9 +34,8 @@ def main(): return full_ast = build_ast(parse_tree, args.include_dir) - pprint(dataclasses.asdict(full_ast)) - ssa = compile_to_ssa(parse_tree) + ssa = build_ssa(full_ast) if args.stop_at_qbe_ssa: if args.out is None: args.out = args.input.replace('.cro', '.ssa') |