Copyright | (c) roki 2019 |
---|---|
License | MIT |
Maintainer | falgon53@yahoo.co.jp |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
The executable module for compilation
Synopsis
- type InputCCode = Text
- casm' :: (Integral e, Show e, Integral i, IsOperand i, UnaryInstruction i, BinaryInstruction i) => ASTs i -> GlobalVars i -> Literals i -> Asm AsmCodeCtx e ()
- buildAST :: (Integral i, Read i, Show i, Bits i) => InputCCode -> ASTResult i
- execAST :: (Integral i, Read i, Show i, Bits i) => Bool -> FilePath -> InputCCode -> IO (Maybe (ASTs i, GlobalVars i, Literals i))
Documentation
type InputCCode = Text Source #
input string, C source code
Generator
casm' :: (Integral e, Show e, Integral i, IsOperand i, UnaryInstruction i, BinaryInstruction i) => ASTs i -> GlobalVars i -> Literals i -> Asm AsmCodeCtx e () Source #
Executor that receives information about the constructed AST, global variables, and literals and composes assembly code