IParser¶
-
public interface
IParser
<I extends IInputUnit, P extends IParseUnit>¶ Interface for a context-free parser implementation.
Parameters: - <I> – Type of input units.
- <P> – Type of parse units.
Methods¶
parse¶
-
P
parse
(I input, IProgress progress, ICancel cancel)¶ Parses given input unit into a parse unit.
Parameters: - input – Input unit to parse.
Throws: - ParseException – When parsing fails unexpectedly.
- InterruptedException – When parsing is cancelled.
Returns: Parse unit.
parseAll¶
-
Collection<P>
parseAll
(Iterable<I> inputs, IProgress progress, ICancel cancel)¶ Parses all given input units into a parse units.
Parameters: - inputs – Input units to parse.
Throws: - ParseException – When parsing fails unexpectedly.
- InterruptedException – When parsing is cancelled.
Returns: Parse units.