aboutsummaryrefslogtreecommitdiff
path: root/src/Micro/Asm
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-09-09 12:41:03 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-09-09 12:41:03 +0100
commitcdf88f13008cd3f6511d466c1078ae7b2f983faf (patch)
treea881aac3c0db1377d667955120bbf26fa4894b6f /src/Micro/Asm
parent69c02169ef381d394323e9d26d0cb48db89fb7d4 (diff)
downloadmicro-lang-hs-cdf88f13008cd3f6511d466c1078ae7b2f983faf.tar.gz
micro-lang-hs-cdf88f13008cd3f6511d466c1078ae7b2f983faf.zip
Refactored the compiler result to plug in the code generator
Also some tweaks in error reporting.
Diffstat (limited to 'src/Micro/Asm')
-rw-r--r--src/Micro/Asm/Sdcc.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Micro/Asm/Sdcc.hs b/src/Micro/Asm/Sdcc.hs
index 60a2caf..916fa3e 100644
--- a/src/Micro/Asm/Sdcc.hs
+++ b/src/Micro/Asm/Sdcc.hs
@@ -1 +1,7 @@
module Micro.Asm.Sdcc where
+
+import qualified Micro.Ast as A
+import Micro.Env (SymMap)
+
+generate :: SymMap -> [A.Expr] -> String
+generate sym ast = "OUTPUT"