From b6258d36b6534d521e9cdf1307665c38e5ae409d Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Thu, 5 Nov 2020 01:27:58 -0700 Subject: compile based on the fancy new AST --- crowbar_reference_compiler/__init__.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'crowbar_reference_compiler/__init__.py') 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') -- cgit v1.2.3