aboutsummaryrefslogtreecommitdiff
path: root/ast
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 /ast
parent96c29e2a5e2c97d2c40c46222d4593c366de953e (diff)
Define builtins in backend
Diffstat (limited to 'ast')
-rw-r--r--ast/CC/Context.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/ast/CC/Context.hs b/ast/CC/Context.hs
index 1f8c673..0a54392 100644
--- a/ast/CC/Context.hs
+++ b/ast/CC/Context.hs
@@ -1,5 +1,10 @@
module CC.Context where
+import CC.AST.Typed
+
-- | Source metadata for compilation
-data Context = Context FilePath
+data Context = Context FilePath Builtins
+
+-- | Information about builtins supported by the enabled backend
+data Builtins = Builtins [(Name, TypeT)]