diff --git a/language.cabal b/language.cabal index adac1c5..caf05d9 100644 --- a/language.cabal +++ b/language.cabal @@ -30,7 +30,8 @@ executable language Grammar.Par Grammar.Print Grammar.Skel - Compiler + Compiler.Compiler + Compiler.StandardLLVMLibrary Interpreter hs-source-dirs: src diff --git a/src/Compiler.hs b/src/Compiler/Compiler.hs similarity index 88% rename from src/Compiler.hs rename to src/Compiler/Compiler.hs index 011544c..84fb3af 100644 --- a/src/Compiler.hs +++ b/src/Compiler/Compiler.hs @@ -1,4 +1,4 @@ -module Compiler where +module Compiler.Compiler where import Control.Applicative (Applicative) import Control.Monad.Except (Except, MonadError (throwError), @@ -23,10 +23,10 @@ compileFile file = do putStrLn $ printTree cor compile cor -data Compiler = Compiler - { data :: [LLVMIr] } - -data LLVMIr = +-- data Compiler = Compiler +-- { data :: [LLVMIr] } +-- +-- data LLVMIr = LLVMIr diff --git a/src/Compiler/StandardLLVMLibrary.hs b/src/Compiler/StandardLLVMLibrary.hs new file mode 100644 index 0000000..4672f5c --- /dev/null +++ b/src/Compiler/StandardLLVMLibrary.hs @@ -0,0 +1,6 @@ +module Compiler.StandardLLVMLibrary where + +standardLLVMLibrary :: String +standardLLVMLibrary = " + +" \ No newline at end of file