Commit 775db0cb authored by Taddeus Kroes's avatar Taddeus Kroes

Added possibility to overrite 'construct_function'.

parent c0a73ab4
......@@ -203,7 +203,16 @@ def generate_line(root):
else:
content[node] = construct_nary(node)
else:
content[node] = construct_function(node)
result = None
if hasattr(node, 'construct_function'):
children = [content[c] for c in node]
result = node.construct_function(children)
if result == None:
result = construct_function(node)
content[node] = result
# Add negations
content[node] = '-' * node.negated + content[node]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment