From a7c9a7f769094d0af3b7a98bdb7319bcb3921e11 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Mon, 13 Feb 2017 09:48:32 +0100 Subject: Core/cpu: change ParseAst name --- miasm2/core/parse_asm.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'miasm2/core/parse_asm.py') 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: -- cgit 1.4.1