Interface ParseRunner<V>

All Known Implementing Classes:
AbstractParseRunner, BasicParseRunner, ErrorLocatingParseRunner, ErrorReportingParseRunner, ProfilingParseRunner, RecoveringParseRunner, ReportingParseRunner, TracingParseRunner

public interface ParseRunner<V>
A ParseRunner performs the actual parsing run of a given parser rule on a given input text.
  • Method Details

    • withParseErrors

      ParseRunner<V> withParseErrors(List<ParseError> parseErrors)
      Initializes the parse runner with the given error list.
      Parameters:
      parseErrors - the error list to start off with
      Returns:
      this instance
    • withValueStack

      ParseRunner<V> withValueStack(ValueStack<V> valueStack)
      Initializes the parse runner with the given ValueStack instance.
      Parameters:
      valueStack - the ValueStack to use
      Returns:
      this instance
    • run

      ParsingResult<V> run(String input)
      Performs the actual parse and creates a corresponding ParsingResult instance.
      Parameters:
      input - the input text to parse
      Returns:
      the ParsingResult for the run
    • run

      ParsingResult<V> run(char[] input)
      Performs the actual parse and creates a corresponding ParsingResult instance.
      Parameters:
      input - the input text to parse
      Returns:
      the ParsingResult for the run
    • run

      ParsingResult<V> run(InputBuffer inputBuffer)
      Performs the actual parse and creates a corresponding ParsingResult instance.
      Parameters:
      inputBuffer - the inputBuffer to use
      Returns:
      the ParsingResult for the run