| Modifier and Type | Field and Description |
|---|---|
protected @NotNull java.util.Set<Parser> |
parsers
The parsers this parser is combining.
|
| Constructor and Description |
|---|
CombineParser(@NotNull java.lang.Iterable<Parser> parsers)
Construct a new parser that combines the results of the given
parsers. |
CombineParser(Parser... parsers)
Construct a new parser that combines the results of the given
parsers. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.util.Set<Tree> |
parse(@NotNull Compilation compilation,
@NotNull Tree tree)
Parse the given
sketch with respect to the given compilation. |
@NotNull protected final @NotNull java.util.Set<Parser> parsers
public CombineParser(@Nullable
Parser... parsers)
parsers.
parsers - an array containing the parsers to be used by the constructed
parser.java.lang.NullPointerException - if the given parsers is null.public CombineParser(@NotNull
@NotNull java.lang.Iterable<Parser> parsers)
parsers.
parsers - an array containing the parsers to be used by the constructed
parser.java.lang.NullPointerException - if the given parsers is null.@NotNull public @NotNull java.util.Set<Tree> parse(@NotNull @NotNull Compilation compilation, @NotNull @NotNull Tree tree)
Parsersketch with respect to the given compilation.