public List<String> toPathWith(List<String> rest) {
            return Stream.concat(toPath().stream(), rest.stream()).toList();
        }
Translate the ANTLR grammar into the logical representation.
container-search/src/main/java/com/yahoo/search/yql/ProgramParser.java