From 892658de78555f793b3b85e9b129c156e7e3ab17 Mon Sep 17 00:00:00 2001 From: Ethan Girouard Date: Mon, 9 Dec 2024 20:29:04 -0500 Subject: [PATCH] Create CodeGen module --- src/Windows12.hs | 3 ++- src/Windows12/CodeGen.hs | 8 ++++++++ windows12.cabal | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/Windows12/CodeGen.hs diff --git a/src/Windows12.hs b/src/Windows12.hs index c5f16f1..0cf5556 100644 --- a/src/Windows12.hs +++ b/src/Windows12.hs @@ -2,4 +2,5 @@ module Windows12 where import Windows12.Ast import Windows12.Lexer -import Windows12.Parser \ No newline at end of file +import Windows12.Parser +import Windows12.CodeGen diff --git a/src/Windows12/CodeGen.hs b/src/Windows12/CodeGen.hs new file mode 100644 index 0000000..28c8175 --- /dev/null +++ b/src/Windows12/CodeGen.hs @@ -0,0 +1,8 @@ +module Windows12.CodeGen where + +import Data.Text (Text) +import Windows12.Ast +import LLVM.AST (Module) + +codegen :: Text -> Program -> Module +codegen filename (Program structs enums funcs) = undefined diff --git a/windows12.cabal b/windows12.cabal index d909179..71933c1 100644 --- a/windows12.cabal +++ b/windows12.cabal @@ -68,6 +68,7 @@ executable windows12 Windows12.Ast Windows12.Lexer Windows12.Parser + Windows12.CodeGen -- LANGUAGE extensions used by modules in this package. -- other-extensions: