glados-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Compiler.ASM.Builtins

Synopsis

Documentation

builtinMap :: Map Text Instruction Source #

Mapping of builtin operator names to their VM instructions.

getInnerListType :: Text -> Either Text Text Source #

Helper to transform "[int]" to "int" or "[Point]" to Point

getBuiltinReturnType :: String -> [Text] -> Either Text Text Source #

Returns the return type of a builtin based on its name and argument types.