diff options
Diffstat (limited to 'miasm2/core')
| -rw-r--r-- | miasm2/core/cpu.py | 4 | ||||
| -rw-r--r-- | miasm2/core/parse_asm.py | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/miasm2/core/cpu.py b/miasm2/core/cpu.py index ffca318b..1beeeff0 100644 --- a/miasm2/core/cpu.py +++ b/miasm2/core/cpu.py @@ -200,7 +200,7 @@ def ast_int2expr(a): -class parse_ast(object): +class ParseAst(object): def __init__(self, id2expr, int2expr, default_size=32): self.id2expr = id2expr @@ -364,7 +364,7 @@ def gen_base_expr(): variable, operand, base_expr = gen_base_expr() -my_var_parser = parse_ast(ast_id2expr, ast_int2expr) +my_var_parser = ParseAst(ast_id2expr, ast_int2expr) base_expr.setParseAction(my_var_parser) default_prio = 0x1337 diff --git a/miasm2/core/parse_asm.py b/miasm2/core/parse_asm.py index 238306b3..11fa4040 100644 --- a/miasm2/core/parse_asm.py +++ b/miasm2/core/parse_asm.py @@ -3,7 +3,7 @@ import re import miasm2.expression.expression as m2_expr import miasm2.core.asmbloc as asmbloc -from miasm2.core.cpu import gen_base_expr, parse_ast +from miasm2.core.cpu import gen_base_expr, ParseAst from miasm2.core.cpu import instruction declarator = {'byte': 8, @@ -169,9 +169,9 @@ def parse_txt(mnemo, attrib, txt, symbol_pool=None): # parser base_expr = gen_base_expr()[2] - my_var_parser = parse_ast(lambda x: m2_expr.ExprId(x, size), - lambda x: - m2_expr.ExprInt(x, size)) + my_var_parser = ParseAst(lambda x: m2_expr.ExprId(x, size), + lambda x: + m2_expr.ExprInt(x, size)) base_expr.setParseAction(my_var_parser) for element in data_raw: |