aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-09-07 07:30:46 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-09-07 07:30:46 +0100
commit781e2803e9cebef1c0282b9a73ebdafab055fc52 (patch)
treeba45542bc7d8afc7498eda1c669f07280581f9f9
parentcd9bd7decd25301a6da01fd97feed1cc33cfabbf (diff)
downloadmicro-lang-hs-781e2803e9cebef1c0282b9a73ebdafab055fc52.tar.gz
micro-lang-hs-781e2803e9cebef1c0282b9a73ebdafab055fc52.zip
This is missing
-rw-r--r--src/Compiler.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Compiler.hs b/src/Compiler.hs
index 2a836ee..f895613 100644
--- a/src/Compiler.hs
+++ b/src/Compiler.hs
@@ -128,6 +128,7 @@ compile x = do
(A.BinOp A.Assign pos _ b) ->
addError $ Error InvalidTarget "invalid assignment target" pos
(A.BinOp op pos a b) ->
+ -- TODO: types and invalid operators
typecheckBinOp a b pos
(A.Func ident params ret body priv anon pos) -> do
-- current env