Renamed the compile function to generate code

This commit is contained in:
Samuel Hammersberg 2023-03-08 10:25:53 +01:00
parent 832efbcdd8
commit 2af00da482
2 changed files with 5 additions and 5 deletions

View file

@ -2,7 +2,7 @@
module Main where
import Codegen.Codegen (compile)
import Codegen.Codegen (generateCode)
import GHC.IO.Handle.Text (hPutStrLn)
import Grammar.ErrM (Err)
import Grammar.Par (myLexer, pProgram)
@ -51,7 +51,7 @@ main' debug s = do
printToErr $ printTree lifted
printToErr "\n -- Printing compiler output to stdout --"
compiled <- fromCompilerErr $ compile lifted
compiled <- fromCompilerErr $ generateCode lifted
--putStrLn compiled
check <- doesPathExist "output"