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
Modifier and TypeMethodDescriptionrun(char[] input) Performs the actual parse and creates a corresponding ParsingResult instance.Performs the actual parse and creates a corresponding ParsingResult instance.run(InputBuffer inputBuffer) Performs the actual parse and creates a corresponding ParsingResult instance.withParseErrors(List<ParseError> parseErrors) Initializes the parse runner with the given error list.withValueStack(ValueStack<V> valueStack) Initializes the parse runner with the given ValueStack instance.
-
Method Details
-
withParseErrors
Initializes the parse runner with the given error list.- Parameters:
parseErrors- the error list to start off with- Returns:
- this instance
-
withValueStack
Initializes the parse runner with the given ValueStack instance.- Parameters:
valueStack- the ValueStack to use- Returns:
- this instance
-
run
Performs the actual parse and creates a corresponding ParsingResult instance.- Parameters:
input- the input text to parse- Returns:
- the ParsingResult for the run
-
run
Performs the actual parse and creates a corresponding ParsingResult instance.- Parameters:
input- the input text to parse- Returns:
- the ParsingResult for the run
-
run
Performs the actual parse and creates a corresponding ParsingResult instance.- Parameters:
inputBuffer- the inputBuffer to use- Returns:
- the ParsingResult for the run
-