| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-07-19 17:29:51 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-07-19 17:29:51 +0200 |
| commit | 0362751e41f731b22b7bfe511af4aa71a02be70a (patch) | |
| tree | a455038551eb5564208f00631cea68b0f8fc7e36 | |
| parent | 9f312f0135fd54d9c71c60bc856a48318bd632d3 (diff) | |
Yet one more hack to get it to work.
Let's hope I'll rewrite those.
| -rw-r--r-- | instr-scripts/process_internals.py | 15 |
1 files changed, 14 insertions, 1 deletions
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, |


