177178179180181182183184
*/ public Set<String> getLHS(final String rhs) throws ParserException { final Set<String> set = safe(leftmost.get(rhs)); set.retainAll(singletons); if (set.isEmpty()) throw new ParserException("Unknown terminal '" + rhs + "'."); return set; }