make statement function not a special case, it can be just a normal token expression
introduce some explanitory variables for jsonpath token regexes