Soft0

cats.parse.Parser.Soft0
sealed class Soft0[+A](parser: Parser0[A])

If we can parse this then that, do so, if we fail that without consuming, rewind before this without consuming. If either consume 1 or more, do not rewind

Attributes

Source
Parser.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Soft[A]

Members list

Value members

Concrete methods

def *>[B](that: Parser0[B]): Parser0[B]

Attributes

Source
Parser.scala
def <*[B](that: Parser0[B]): Parser0[A]

Attributes

Source
Parser.scala
def between(b: Parser0[Any], c: Parser0[Any]): Parser0[A]

Like regular between, but uses soft products This is particularly useful with whitespace and separators, e.g.

Like regular between, but uses soft products This is particularly useful with whitespace and separators, e.g. a separator might be char(',').soft.surroundedBy(whitespace0)

Attributes

Source
Parser.scala
def surroundedBy(b: Parser0[Any]): Parser0[A]

Use this parser to parse surrounded by values using soft products

Use this parser to parse surrounded by values using soft products

This is the same as between(b, b)

Attributes

Source
Parser.scala
def with1: Soft01[A]

If we can parse this then that, do so, if we fail that without consuming, rewind before this without consuming.

If we can parse this then that, do so, if we fail that without consuming, rewind before this without consuming. If either consume 1 or more, do not rewind

Attributes

Source
Parser.scala
def ~[B](that: Parser0[B]): Parser0[(A, B)]

Attributes

Source
Parser.scala