simplify the simplifier
This commit is contained in:
parent
add2ae999c
commit
ee6a10e7a5
1 changed files with 1 additions and 2 deletions
3
main.ml
3
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 ->
|
||||
|
|
Reference in a new issue