protected ParsingResult<V> runLocatingMatch(InputBuffer inputBuffer) { ParseRunner<V> locatingRunner = new ErrorLocatingParseRunner<V>(getRootMatcher()) .withValueStack(getValueStack()); return locatingRunner.run(inputBuffer); }
private boolean performLocatingRun(InputBuffer inputBuffer) { resetValueStack(); ParseRunner<V> locatingRunner = new ErrorLocatingParseRunner<V>(rootMatcherWithoutPTB, getInnerHandler()) .withParseErrors(getParseErrors()) .withValueStack(getValueStack()); lastParsingResult = locatingRunner.run(inputBuffer); errorIndex = lastParsingResult.matched ? -1 : getParseErrors().remove(getParseErrors().size() - 1).getStartIndex(); return lastParsingResult.matched; }