|
@@ -197,6 +197,7 @@ Boolean function main(model : Element):
|
|
|
Element funcdefs
|
|
|
String function
|
|
|
funcdefs = allInstances(model, "AL/funcdef")
|
|
|
+ code = ""
|
|
|
while (set_len(funcdefs) > 0):
|
|
|
// Iterate over all functions
|
|
|
function = set_pop(funcdefs)
|
|
@@ -207,7 +208,7 @@ Boolean function main(model : Element):
|
|
|
Element params
|
|
|
String param
|
|
|
params = dict_keys(model["model"][function]["params"])
|
|
|
- code = "def func_" + cast_id(model["model"][function]) + "("
|
|
|
+ code = code + "def func_" + cast_id(model["model"][function]) + "("
|
|
|
while (set_len(params) > 0):
|
|
|
param = set_pop(params)
|
|
|
log(" " + param + " --> " + cast_id(model["model"][function]["params"][param]))
|