Module pear::combinators

source ·

Traits§

Functions§

  • Parses as many p as possible until EOF is reached, collecting them into a C. Fails if p every fails. C may be empty.
  • Parses as many p as possible until EOF is reached, collecting them into a C. Fails if p ever fails. C is not allowed to be empty.
  • Parses many separator delimited ps, the entire collection of which must start with start and end with end. item Gramatically, this is:
  • Parses p until p fails, returning the last successful p.
  • Parses p, returning Some if it succeeds and None if it fails. Discards the error message.
  • Parses many separator delimited ps that are collectively prefixed with prefix. Gramatically, this is:
  • Parses many separator delimited ps. Gramatically, this is:
  • Parses p, returning true if it succeeds and false if it fails. Discards the error message.
  • Skips all tokens that match f before and after a p, returning p.
  • Parses many separator delimited ps with an optional trailing separator. Gramatically, this is:
  • Parses as many p as possible until EOF is reached or p fails, collecting them into a C. C may be empty.