Class ReportingParseRunner<V>

java.lang.Object
org.parboiled.parserunners.AbstractParseRunner<V>
org.parboiled.parserunners.ReportingParseRunner<V>
All Implemented Interfaces:
ParseRunner<V>
Direct Known Subclasses:
TracingParseRunner

public class ReportingParseRunner<V> extends AbstractParseRunner<V>
A ParseRunner implementation that properly reports the first InvalidInputError if the input does not conform to the rule grammar. It performs exactly as the BasicParseRunner on valid input, however, on invalid input two more parsing runs are initiated: one for recording the first parse error and one for collecting the error report information.
  • Constructor Details

    • ReportingParseRunner

      public ReportingParseRunner(Rule rule)
      Creates a new ReportingParseRunner instance for the given rule.
      Parameters:
      rule - the parser rule
  • Method Details