def print_to_script_equation(block): equations = module1.process_equations(block, StatementKeys, DeclaredIdentifiers) for item in equations: DeclaredIdentifiers.append(item.pop(0)) IdentifierTypes.append("Equation") IdentifierData.append(item) return
def print_to_script_parameter(block): if "***" in block: parameters = module1.process_equations(block, StatementKeys, DeclaredIdentifiers) for item in parameters: DeclaredIdentifiers.append(item.pop(0)) IdentifierTypes.append("Param DA") IdentifierData.append(item) else: parameters = module1.process_parameter_list_block(block, DeclaredIdentifiers) # Add ids to DeclaredIdentifiers # Print to Python Script for item in parameters: DeclaredIdentifiers.append(item.pop(0)) IdentifierTypes.append("Param List") IdentifierData.append(item) return # Value which indicates error if something f***s up