Terminator: {
    condition?: ((parser: Parser) => boolean);
    minPrec: Precedence;
}

This indicates a condition under which parsing should stop:

  • an operator of a precedence higher than specified has been encountered
  • the last token has been reached
  • or if a condition is provided, the condition returns true;