Due to the implementation of functions, there cannot be nested functions even if they would not be nested in the output. This also means that while loops cannot be used in functions defined with :func, since a while loop becomes two functions.
Replacing the in_function boolean in transpile.rs with an integer that counts the current depth could help fix this problem. The current_function variable would also need to be changed to a Vec<String> of function names instead of just the name of the current function.
Due to the implementation of functions, there cannot be nested functions even if they would not be nested in the output. This also means that while loops cannot be used in functions defined with
:func
, since a while loop becomes two functions.Replacing the
in_function
boolean intranspile.rs
with an integer that counts the current depth could help fix this problem. Thecurrent_function
variable would also need to be changed to aVec<String>
of function names instead of just the name of the current function.