aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crowbar_reference_compiler/ast.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/crowbar_reference_compiler/ast.py b/crowbar_reference_compiler/ast.py
index 7ae7ff9..cf12a2f 100644
--- a/crowbar_reference_compiler/ast.py
+++ b/crowbar_reference_compiler/ast.py
@@ -607,6 +607,8 @@ class ASTBuilder(NodeVisitor):
return body
def visit_AtomicExpression(self, node, visited_children) -> Expression:
+ while isinstance(visited_children, list) and len(visited_children) == 1:
+ visited_children = visited_children[0]
if isinstance(visited_children, list) and len(visited_children) == 3:
lparen, body, rparen = visited_children
assert lparen.type == '('