From 68c303c285032e2f0398352b70eb79736a72296f Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 4 Nov 2020 14:38:39 -0700 Subject: add ability to extract declarations from file --- crowbar_reference_compiler/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crowbar_reference_compiler/__init__.py') diff --git a/crowbar_reference_compiler/__init__.py b/crowbar_reference_compiler/__init__.py index 48c546f..7a46e01 100644 --- a/crowbar_reference_compiler/__init__.py +++ b/crowbar_reference_compiler/__init__.py @@ -1,3 +1,4 @@ +from .declarations import load_declarations from .parser import parse_header, parse_implementation from .scanner import scan from .ssagen import compile_to_ssa @@ -31,6 +32,9 @@ def main(): with open(args.out, 'w', encoding='utf-8') as output_file: output_file.write(str(parse_tree)) return + + decls = load_declarations(parse_tree) + ssa = compile_to_ssa(parse_tree) if args.stop_at_qbe_ssa: if args.out is None: -- cgit v1.2.3