boolean isVariable(String name) {
            return variables.contains(name) || (parent != null && parent.isVariable(name));
        }
Translate the ANTLR grammar into the logical representation.
container-search/src/main/java/com/yahoo/search/yql/ProgramParser.java