From ee3788d35edd1a6107a2b5e0c1d7172234f7a640 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Fri, 24 Jul 2020 22:39:29 +0200 Subject: Define builtins in backend --- ast/CC/Context.hs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ast/CC') 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)] -- cgit v1.2.3-70-g09d2