Public Member Functions | |
def | from_ExprInt |
def | from_ExprId |
def | from_ExprMem |
def | from_ExprSlice |
def | from_ExprCompose |
def | from_ExprCond |
def | from_ExprOp |
def | from_ExprAff |
def | register |
def | to_language |
def | available_languages |
def | from_expr |
Static Public Attributes | |
list | op_no_translate = ["+", "-", "/", "%", ">>", "<<", "&", "^", "|", "*"] |
list | available_translators = [] |
Static Private Attributes | |
string | __LANG__ = "Python" |
Translate a Miasm expression to an equivalent Python code Memory is abstracted using the unimplemented function: int memory(int address, int size)
|
inherited |
|
inherited |
Translate an expression according to its type @expr: expression to translate
Definition at line 92 of file translator.py.
def miasm2.ir.translators.python.TranslatorPython.from_ExprAff | ( | self, | |
expr | |||
) |
def miasm2.ir.translators.python.TranslatorPython.from_ExprCompose | ( | self, | |
expr | |||
) |
def miasm2.ir.translators.python.TranslatorPython.from_ExprCond | ( | self, | |
expr | |||
) |
def miasm2.ir.translators.python.TranslatorPython.from_ExprId | ( | self, | |
expr | |||
) |
def miasm2.ir.translators.python.TranslatorPython.from_ExprInt | ( | self, | |
expr | |||
) |
def miasm2.ir.translators.python.TranslatorPython.from_ExprMem | ( | self, | |
expr | |||
) |
def miasm2.ir.translators.python.TranslatorPython.from_ExprOp | ( | self, | |
expr | |||
) |
def miasm2.ir.translators.python.TranslatorPython.from_ExprSlice | ( | self, | |
expr | |||
) |
|
inherited |
Register a translator @translator: Translator sub-class
Definition at line 14 of file translator.py.
|
inherited |
Return the corresponding translator instance @target_lang: str (case insensitive) wanted language Raise a NotImplementedError in case of unmatched language
Definition at line 21 of file translator.py.
|
staticprivate |
|
staticinherited |
Definition at line 9 of file translator.py.
|
static |