rewrite variable.go to allow indexed asignment

This commit is contained in:
2023-03-08 22:41:55 +00:00
parent f7603e30c4
commit 09deba8912
8 changed files with 166 additions and 42 deletions

View File

@@ -26,12 +26,19 @@ func translateVal(code UNPARSEcode, index int, codelines []UNPARSEcode, isLine b
if worked {
return bracket, worked, err, step
}
} else if isSetVariable(code) {
}
if isSetVariable(code) {
setvar, worked, err, step := parseSetVariable(code, index, codelines)
if worked {
return setvar, worked, err, step
}
}
if isAutoAsignVariable(code) {
setvar, worked, err, step := parseAutoAsignVariable(code, index, codelines)
if worked {
return setvar, worked, err, step
}
}
operation, worked, err, step := parseOperations(code, index, codelines)
if worked {
return operation, worked, err, step