mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
fix incorrect translation order
This commit is contained in:
@@ -89,12 +89,6 @@ func translateVal(code UNPARSEcode, index int, codelines []UNPARSEcode, isLine i
|
|||||||
} else if isFactorial(code) {
|
} else if isFactorial(code) {
|
||||||
return parseFactorial(code, index, codelines)
|
return parseFactorial(code, index, codelines)
|
||||||
}
|
}
|
||||||
if isCall(code) {
|
|
||||||
resp, worked, err, i = parseCall(code, index, codelines)
|
|
||||||
if worked {
|
|
||||||
return resp, worked, err, i
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if isVariable(code) {
|
if isVariable(code) {
|
||||||
return parseVariable(code)
|
return parseVariable(code)
|
||||||
}
|
}
|
||||||
@@ -104,6 +98,20 @@ func translateVal(code UNPARSEcode, index int, codelines []UNPARSEcode, isLine i
|
|||||||
return resp, worked, err, i
|
return resp, worked, err, i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
operation, worked, err, step := parseOperations(code, index, codelines)
|
||||||
|
if worked {
|
||||||
|
return operation, worked, err, step
|
||||||
|
} else if err.EXISTS {
|
||||||
|
return nil, worked, err, step
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if isCall(code) {
|
||||||
|
resp, worked, err, i = parseCall(code, index, codelines)
|
||||||
|
if worked {
|
||||||
|
return resp, worked, err, i
|
||||||
|
}
|
||||||
|
}
|
||||||
if isMapGet(code) {
|
if isMapGet(code) {
|
||||||
return mapGetParse(code, index, codelines)
|
return mapGetParse(code, index, codelines)
|
||||||
}
|
}
|
||||||
@@ -113,14 +121,6 @@ func translateVal(code UNPARSEcode, index int, codelines []UNPARSEcode, isLine i
|
|||||||
return resp, worked, err, i
|
return resp, worked, err, i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
|
||||||
operation, worked, err, step := parseOperations(code, index, codelines)
|
|
||||||
if worked {
|
|
||||||
return operation, worked, err, step
|
|
||||||
} else if err.EXISTS {
|
|
||||||
return nil, worked, err, step
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return resp, worked, err, i
|
return resp, worked, err, i
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user