Safe Haskell | None |
---|
GenOpCodes handles Python opcode generation.
GenOpCodes contains the helper functions that generate the Python opcodes as strings from the Haskell opcode description.
Synopsis
- pyClassDoc :: String -> String
- pyClassField :: OpCodeField -> String
- intercalateIndent :: [String] -> String
- showPyClass :: OpCodeDescriptor -> String
- showPyClasses :: String
Documentation
pyClassDoc :: String -> String Source #
Generates the Python class docstring.
pyClassField :: OpCodeField -> String Source #
Generates an opcode parameter in Python.
intercalateIndent :: [String] -> String Source #
Comma intercalates and indents opcode parameters in Python.
showPyClass :: OpCodeDescriptor -> String Source #
Generates an opcode as a Python class.
showPyClasses :: String Source #
Generates all opcodes as Python classes.