org.parboiled.parserunners
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 Summary
 ParsingResult<V> run(char[] input)
          Performs the actual parse and creates a corresponding ParsingResult instance.
 ParsingResult<V> run(InputBuffer inputBuffer)
          Performs the actual parse and creates a corresponding ParsingResult instance.
 ParsingResult<V> run(java.lang.String input)
          Performs the actual parse and creates a corresponding ParsingResult instance.
 ParseRunner<V> withParseErrors(java.util.List<ParseError> parseErrors)
          Initializes the parse runner with the given error list.
 ParseRunner<V> withValueStack(ValueStack<V> valueStack)
          Initializes the parse runner with the given ValueStack instance.
 

Method Detail

withParseErrors

ParseRunner<V> withParseErrors(java.util.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(java.lang.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