From 3d864091b56c02451e69c3b34a8ac8719bc40c20 Mon Sep 17 00:00:00 2001 From: Chris <Christopher.Happe@uni-duesseldorf.de> Date: Fri, 5 Feb 2021 14:05:06 +0100 Subject: [PATCH] Update python template to fix errors with for loops. --- .../de/hhu/stups/codegenerator/PythonTemplate.stg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/de/hhu/stups/codegenerator/PythonTemplate.stg b/src/main/resources/de/hhu/stups/codegenerator/PythonTemplate.stg index 8d5898f64..bd89e613a 100644 --- a/src/main/resources/de/hhu/stups/codegenerator/PythonTemplate.stg +++ b/src/main/resources/de/hhu/stups/codegenerator/PythonTemplate.stg @@ -149,25 +149,25 @@ BRelation(<elements; separator=", ">) iteration_construct_enumeration(otherIterationConstructs, type, identifier, set, body) ::= << <otherIterationConstructs> -for(<identifier> in <set>): +for <identifier> in <set>: <body> >> iteration_construct_assignment(otherIterationConstructs, type, identifier, set, body) ::= << <otherIterationConstructs> -for(<identifier> in <set>): +for <identifier> in <set>: <body> >> iteration_construct_subset(otherIterationConstructs, type, identifier, set, body) ::= << <otherIterationConstructs> -for(<identifier> in <set>.pow()): +for <identifier> in <set>.pow(): <body> >> iteration_construct_subsetneq(otherIterationConstructs, type, identifier, set, body) ::= << <otherIterationConstructs> -for(<identifier> : <set>.pow().difference(<set>)): +for <identifier> in <set>.pow().difference(<set>): <body> >> -- GitLab