Fix indentation and translation errors in doWrap,

forLoop, ifStatement, and whileLoop functions.
Also fix syntax error in broken_funcCall test
file.
This commit is contained in:
2023-11-14 21:48:04 +00:00
parent 65c608e088
commit c207c0668d
5 changed files with 13 additions and 9 deletions

View File

@@ -63,7 +63,7 @@ func parseForLoop(code UNPARSEcode, index int, codelines []UNPARSEcode) (forLoop
}
innertotalstep += tostep - 1
body := strings.Join(tosplit[i:], ")")
bodyval, worked, err, bodystep := translateVal(UNPARSEcode{code: body, realcode: code.realcode, line: code.line, path: code.path}, index, codelines, 1)
bodyval, worked, err, bodystep := translateVal(UNPARSEcode{code: body, realcode: code.realcode, line: code.line, path: code.path}, index, codelines, 3)
if !worked {
if i == 0 {
return forLoop{}, worked, err, bodystep