From 0362751e41f731b22b7bfe511af4aa71a02be70a Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Wed, 19 Jul 2017 17:29:51 +0200 Subject: Yet one more hack to get it to work. Let's hope I'll rewrite those. --- instr-scripts/process_internals.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'instr-scripts/process_internals.py') diff --git a/instr-scripts/process_internals.py b/instr-scripts/process_internals.py index d3c9ff5..fbbf04e 100644 --- a/instr-scripts/process_internals.py +++ b/instr-scripts/process_internals.py @@ -59,13 +59,26 @@ class Process_Internals: def parse (self): start = self.xml.find("./sequential_statement_chain") - self.handle_sequential_statement_chain( + last_nodes = self.handle_sequential_statement_chain( start, [], 0, [] ) + final_node_id = new_element(self.output, self.id_manager, "node") + + for ln in last_nodes: + self.output.write( + "(node_connect " + + ln + + " " + + final_node_id + + ")\n" + ) + + + def handle_sequential_statement_chain ( self, xml, -- cgit v1.2.3-70-g09d2