From ee6a10e7a59530a46295d4d522369706e6deb932 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 11 Dec 2022 02:36:55 +0100 Subject: [PATCH] simplify the simplifier --- main.ml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.ml b/main.ml index 591e5b3..40ff967 100644 --- a/main.ml +++ b/main.ml @@ -1,5 +1,4 @@ open Errors -open Simplifier let () = if Array.length Sys.argv != 2 @@ -14,7 +13,7 @@ let () = (* Test.debug_parser Stdlib.stderr parsed; *) let ast = Semantics.analyze parsed in (* Test.debug_semantics Stdlib.stderr ast; *) - let asm = Compiler.compile (simplify ast) in + let asm = Compiler.compile (Simplifier.simplify ast) in Mips.emit Stdlib.stdout asm with | LexerError c ->