From c214a98db0addbde680c40c57c88414aede27ace Mon Sep 17 00:00:00 2001 From: Jeroen Hermans Date: Mon, 25 Feb 2019 12:37:08 +0100 Subject: [PATCH] Change simplify_tree to not unpack lists --- antlr_ast/ast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/antlr_ast/ast.py b/antlr_ast/ast.py index 9d5be7a..d949c1e 100644 --- a/antlr_ast/ast.py +++ b/antlr_ast/ast.py @@ -38,7 +38,7 @@ def process_tree(antlr_tree, Transformer=None, simplify=True): if Transformer is not None: tree = AliasVisitor(Transformer()).visit(tree) if simplify: - tree = simplify_tree(tree) + tree = simplify_tree(tree, unpack_lists=False) return tree