Generate the module inside the repl
authorLuke Lau <luke_lau@icloud.com>
Sun, 2 Jun 2019 16:28:31 +0000 (17:28 +0100)
committerLuke Lau <luke_lau@icloud.com>
Sun, 2 Jun 2019 16:28:31 +0000 (17:28 +0100)
commite23b23071fc89fc8b73eee61cc06728c93375161
treec83dd6c560fc6bf244f104beda786c6d4b1a9385
parentbdb5ef3da162c9a093c61d48d5deec8262943047
Generate the module inside the repl

The Kaleidoscope tutorial acts as a repl where each top-level expression
is evaluated when you enter it. Currently we were building up the
llvm-hs-pure AST inside our REPL, and then converting it to an actual
LLVM IR module in main when we called buildModuleT.

In order to do this line-by-line JITing, we'll need the actual LLVM
module when we enter the line. This will prepare us for the craziness
that will come in the following commits
Main.hs
Utils.hs