added comment when codegen ok
This commit is contained in:
parent
2566c53f58
commit
f531afb3ab
1 changed files with 33 additions and 22 deletions
23
src/Main.hs
23
src/Main.hs
|
|
@ -16,16 +16,26 @@ import Data.List.Extra (isSuffixOf)
|
|||
|
||||
import Compiler (compile)
|
||||
import Renamer.Renamer (rename)
|
||||
import System.Directory (createDirectory, doesPathExist,
|
||||
import System.Directory (
|
||||
createDirectory,
|
||||
doesPathExist,
|
||||
getDirectoryContents,
|
||||
removeDirectoryRecursive,
|
||||
setCurrentDirectory)
|
||||
setCurrentDirectory,
|
||||
)
|
||||
import System.Environment (getArgs)
|
||||
import System.Exit (ExitCode, exitFailure,
|
||||
exitSuccess)
|
||||
import System.Exit (
|
||||
ExitCode,
|
||||
exitFailure,
|
||||
exitSuccess,
|
||||
)
|
||||
import System.IO (stderr)
|
||||
import System.Process.Extra (readCreateProcess, shell,
|
||||
spawnCommand, waitForProcess)
|
||||
import System.Process.Extra (
|
||||
readCreateProcess,
|
||||
shell,
|
||||
spawnCommand,
|
||||
waitForProcess,
|
||||
)
|
||||
import TypeChecker.TypeChecker (typecheck)
|
||||
|
||||
main :: IO ()
|
||||
|
|
@ -57,6 +67,7 @@ main' debug s = do
|
|||
--
|
||||
printToErr "\n -- Compiler --"
|
||||
generatedCode <- fromCompilerErr $ generateCode (monomorphize typechecked)
|
||||
putStrLn "Generation of code successful"
|
||||
-- putStrLn generatedCode
|
||||
|
||||
check <- doesPathExist "output"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue