diff --git a/src/translate.go b/src/translate.go index aafb8e8..0c36807 100644 --- a/src/translate.go +++ b/src/translate.go @@ -88,12 +88,6 @@ func translateVal(code UNPARSEcode, index int, codelines []UNPARSEcode, isLine i } else if isFactorial(code) { 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) { return parseVariable(code) } @@ -103,6 +97,20 @@ func translateVal(code UNPARSEcode, index int, codelines []UNPARSEcode, isLine 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) { return mapGetParse(code, index, codelines) } @@ -112,14 +120,6 @@ func translateVal(code UNPARSEcode, index int, codelines []UNPARSEcode, isLine 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 }