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:
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:
Returns:

Parse units.