firstSet method

Iterable<Parser> firstSet(
  1. Parser parser
)

Returns the first-set of parser.

The first-set of a parser is the set of terminal parsers which can appear as the first element of any chain of parsers derivable from parser. Includes sentinel, if the set is nullable.

Implementation

Iterable<Parser> firstSet(Parser parser) => _firstSets[parser]!;