Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
parseModuleFields :: [Lexeme] -> Either String [ModuleField] Source #
desugarize :: [ModuleField] -> Either String Module Source #
data ModuleField Source #
data DataSegment Source #
DataSegment | |
|
data ElemSegment Source #
ElemSegment | |
|
data StartFunction Source #
StartFunction FuncIndex |
Export | |
|
data ExportDesc Source #
ExportFunc FuncIndex | |
ExportTable TableIndex | |
ExportMemory MemoryIndex | |
ExportGlobal GlobalIndex |
Global | |
|
Import | |
|
data ImportDesc Source #
data Instruction Source #
PlainInstr PlainInstr | |
BlockInstr | |
| |
LoopInstr | |
| |
IfInstr | |
|
IndexedTypeUse TypeIndex (Maybe FuncType) | |
AnonimousTypeUse FuncType |
data PlainInstr Source #
AssertReturn Action [Expression] | |
AssertReturnCanonicalNaN Action | |
AssertReturnArithmeticNaN Action | |
AssertTrap (Either Action ModuleDef) FailureString | |
AssertMalformed ModuleDef FailureString | |
AssertInvalid ModuleDef FailureString | |
AssertUnlinkable ModuleDef FailureString | |
AssertExhaustion Action FailureString |