diff options
Diffstat (limited to 'Compiler.hs')
-rw-r--r-- | Compiler.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Compiler.hs b/Compiler.hs index c8771b9..9f8b595 100644 --- a/Compiler.hs +++ b/Compiler.hs @@ -75,7 +75,8 @@ newtype CM a = CM {unCM :: StateT CompState (Except String) a} builtinMap :: Map.Map Name () builtinMap = Map.fromList [ ("+", ()), ("-", ()), ("<=", ()), ("=", ()), ("print", ()), - ("list", ()), ("car", ()), ("cdr", ())] + ("list", ()), ("car", ()), ("cdr", ()), + ("sys-open-file", ()), ("sys-close-file", ()), ("sys-get-char", ()), ("sys-put-string", ())] bbId :: BB -> Int bbId (BB i _ _) = i |