ganeti
Safe HaskellNone

Ganeti.Hs2Py.GenOpCodes

Description

GenOpCodes handles Python opcode generation.

GenOpCodes contains the helper functions that generate the Python opcodes as strings from the Haskell opcode description.

Synopsis

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.