summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-07-19 17:29:51 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-07-19 17:29:51 +0200
commit0362751e41f731b22b7bfe511af4aa71a02be70a (patch)
treea455038551eb5564208f00631cea68b0f8fc7e36
parent9f312f0135fd54d9c71c60bc856a48318bd632d3 (diff)
Yet one more hack to get it to work.
Let's hope I'll rewrite those.
-rw-r--r--instr-scripts/process_internals.py15
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,