From f9c49e92dada2aa51ca594f435f962617796c116 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Fri, 27 Mar 2015 14:31:24 +0100 Subject: Clean: remove unecessary ast_parser modification --- example/asm/shellcode.py | 9 --------- 1 file changed, 9 deletions(-) (limited to 'example/asm/shellcode.py') diff --git a/example/asm/shellcode.py b/example/asm/shellcode.py index 7bf76093..3b22e801 100644 --- a/example/asm/shellcode.py +++ b/example/asm/shellcode.py @@ -58,15 +58,6 @@ else: virt = st output = st -# Fix the AST parser -def my_ast_int2expr(a): - return m2_expr.ExprInt_fromsize(size, a) - -def my_ast_id2expr(t): - return reg_and_id.get(t, m2_expr.ExprId(t, size=size)) - -my_var_parser = parse_ast(my_ast_id2expr, my_ast_int2expr) -base_expr.setParseAction(my_var_parser) # Get and parse the source code with open(args.source) as fstream: -- cgit 1.4.1