laika.parse.combinator

Type members

Classlikes

trait Parsers

Generic base parsers which are not specifically tailored for parsing of text markup.

Generic base parsers which are not specifically tailored for parsing of text markup.

Companion:
object
object Parsers extends Parsers
Companion:
class
class Repeat[+T](parser: Parser[T], min: Int, max: Int, sep: Option[Parser[Unit]]) extends Parser[List[T]]

Parser implementation for repeatedly applying the specified base parser until it fails.

Parser implementation for repeatedly applying the specified base parser until it fails.

By default the parser allows for any number of successful parser invocations, including empty results. Use of the min, max and take methods allows to apply additional constrains on the expected number of results.