aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-07-24 22:39:29 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-07-24 22:39:29 +0200
commitee3788d35edd1a6107a2b5e0c1d7172234f7a640 (patch)
treed1e70f1a8d1cebdc1125013db6ceb9dfa23ae502 /main
parent96c29e2a5e2c97d2c40c46222d4593c366de953e (diff)
Define builtins in backend
Diffstat (limited to 'main')
-rw-r--r--main/Main.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/Main.hs b/main/Main.hs
index f5a3d5a..a7e242d 100644
--- a/main/Main.hs
+++ b/main/Main.hs
@@ -4,6 +4,7 @@ import System.Exit
import qualified CC.Parser as Parser
import qualified CC.Typecheck as Typecheck
+import qualified CC.Backend.Dumb as Backend
import CC.Context
import CC.Pretty
@@ -29,7 +30,7 @@ main = do
let combined = parse `passJoin` typecheck
source <- getContents
- let context = Context "<stdin>"
+ let context = Context "<stdin>" Backend.builtins
case combined context (read source) of
Right prog -> pprint prog
Left err -> die err