Printer

zio.parser.Printer
See thePrinter companion trait
object Printer

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Printer.type

Members list

Type members

Classlikes

final case class Contramap[Err, Err2, Out, Value2, Value](printer: Printer[Err, Out, Value], from: Value2 => Value) extends Printer[Err2, Out, Value2]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err2, Out, Value2]
trait VersionSpecificPrinter[Err2, Out, Value2]
class Object
trait Matchable
class Any
Show all
final case class ContramapEither[Err, Err2, Out, Value2, Value](printer: Printer[Err, Out, Value], from: Value2 => Either[Err2, Value]) extends Printer[Err2, Out, Value2]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err2, Out, Value2]
trait VersionSpecificPrinter[Err2, Out, Value2]
class Object
trait Matchable
class Any
Show all
final case class Fail[+Err](failure: Err) extends Printer[Err, Nothing, Any]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Nothing, Any]
trait VersionSpecificPrinter[Err, Nothing, Any]
class Object
trait Matchable
class Any
Show all
final case class Failed[+Err](failure: ParserError[Err]) extends Printer[Err, Nothing, Any]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Nothing, Any]
trait VersionSpecificPrinter[Err, Nothing, Any]
class Object
trait Matchable
class Any
Show all
final case class FlatMapValue[Err, Out, Value](f: Value => Printer[Err, Out, Nothing]) extends Printer[Err, Out, Value]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Out, Value]
trait VersionSpecificPrinter[Err, Out, Value]
class Object
trait Matchable
class Any
Show all
final case class Ignore[Err, Out, Value, Value2](printer: Printer[Err, Out, Value], matches: Value2, from: Value) extends Printer[Err, Out, Value2]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Out, Value2]
trait VersionSpecificPrinter[Err, Out, Value2]
class Object
trait Matchable
class Any
Show all
final case class Lazy[Err, Out, Value](inner: () => Printer[Err, Out, Value]) extends Printer[Err, Out, Value]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Out, Value]
trait VersionSpecificPrinter[Err, Out, Value]
class Object
trait Matchable
class Any
Show all
final case class MapError[Err, Err2, Out, Value](printer: Printer[Err, Out, Value], mapPrinterErr: Err => Err2) extends Printer[Err2, Out, Value]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err2, Out, Value]
trait VersionSpecificPrinter[Err2, Out, Value]
class Object
trait Matchable
class Any
Show all
final case class Optional[Err, Out, Value](printer: Printer[Err, Out, Value]) extends Printer[Err, Out, Option[Value]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Out, Option[Value]]
trait VersionSpecificPrinter[Err, Out, Option[Value]]
class Object
trait Matchable
class Any
Show all
final case class OrElse[Err, Err2, Out, Out2, Value2, Value](left: Printer[Err, Out, Value], right: Printer[Err2, Out2, Value2]) extends Printer[Err2, Out2, Value2]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err2, Out2, Value2]
trait VersionSpecificPrinter[Err2, Out2, Value2]
class Object
trait Matchable
class Any
Show all
final case class OrElseEither[Err, Err2, Out, Out2, Value2, Value](left: Printer[Err, Out, Value], right: Printer[Err2, Out2, Value2]) extends Printer[Err2, Out2, Either[Value, Value2]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err2, Out2, Either[Value, Value2]]
trait VersionSpecificPrinter[Err2, Out2, Either[Value, Value2]]
class Object
trait Matchable
class Any
Show all
final case class ParseRegex[Err](regex: Regex, onFailure: Option[Err]) extends Printer[Err, Char, Chunk[Char]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Char, Chunk[Char]]
trait VersionSpecificPrinter[Err, Char, Chunk[Char]]
class Object
trait Matchable
class Any
Show all
final case class ParseRegexLastChar[Err](regex: Regex, onFailure: Option[Err]) extends Printer[Err, Char, Char]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Char, Char]
trait VersionSpecificPrinter[Err, Char, Char]
class Object
trait Matchable
class Any
Show all
final case class Passthrough[-Value, +Result]() extends Printer[Nothing, Result, Value]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Nothing, Result, Value]
trait VersionSpecificPrinter[Nothing, Result, Value]
class Object
trait Matchable
class Any
Show all
final case class ProvideValue[Err, Out, Value](printer: Printer[Err, Out, Value], value: Value) extends Printer[Err, Out, Any]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Out, Any]
trait VersionSpecificPrinter[Err, Out, Any]
class Object
trait Matchable
class Any
Show all
final case class Repeat[Err, Out, Value](printer: Printer[Err, Out, Value], min: Int, max: Option[Int]) extends Printer[Err, Out, Chunk[Value]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Out, Chunk[Value]]
trait VersionSpecificPrinter[Err, Out, Chunk[Value]]
class Object
trait Matchable
class Any
Show all
final case class SkipRegex(regex: Regex, printAs: Chunk[Char]) extends Printer[Nothing, Char, Unit]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Nothing, Char, Unit]
trait VersionSpecificPrinter[Nothing, Char, Unit]
class Object
trait Matchable
class Any
Show all
final case class Succeed(value: Any) extends Printer[Nothing, Nothing, Any]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Nothing, Nothing, Any]
trait VersionSpecificPrinter[Nothing, Nothing, Any]
class Object
trait Matchable
class Any
Show all
final case class Zip[Err, Err2, Out, Out2, Value2, Value, ZippedValue](left: Printer[Err, Out, Value], right: Printer[Err2, Out2, Value2], unzipValue: ZippedValue => (Value, Value2)) extends Printer[Err2, Out2, ZippedValue]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err2, Out2, ZippedValue]
trait VersionSpecificPrinter[Err2, Out2, ZippedValue]
class Object
trait Matchable
class Any
Show all
final case class ZipLeft[Err, Err2, Out, Out2, Value2, Value](left: Printer[Err, Out, Value], right: Printer[Err2, Out2, Value2]) extends Printer[Err2, Out2, Value]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err2, Out2, Value]
trait VersionSpecificPrinter[Err2, Out2, Value]
class Object
trait Matchable
class Any
Show all
final case class ZipRight[Err, Err2, Out, Out2, Value2, Value](left: Printer[Err, Out, Value], right: Printer[Err2, Out2, Value2]) extends Printer[Err2, Out2, Value2]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err2, Out2, Value2]
trait VersionSpecificPrinter[Err2, Out2, Value2]
class Object
trait Matchable
class Any
Show all

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def any[T]: Printer[Nothing, T, T]

Printer that just emits its input value

Printer that just emits its input value

Attributes

def apply[Out](value: => Out)(implicit ev: Out =!= Char): Printer[String, Out, Unit]

Printer that emits the given value

Printer that emits the given value

Attributes

def byValue[Err, Out, Value](f: Value => Printer[Err, Out, Nothing]): Printer[Err, Out, Value]

Printer determined by a function on the input value

Printer determined by a function on the input value

Attributes

def char(value: Char): Printer[String, Char, Unit]

Printer that prints a given character and results in unit

Printer that prints a given character and results in unit

Attributes

def charIn(chars: Char*): Printer[String, Char, Char]

Printer that prints a single character if it matches any of the given 'chars'

Printer that prints a single character if it matches any of the given 'chars'

Attributes

def charNotIn(chars: Char*): Printer[String, Char, Char]

Printer that prints a single character except if it matches any of the given 'chars'

Printer that prints a single character except if it matches any of the given 'chars'

Attributes

def exactly[Out](value: Out)(implicit ev: Out =!= Char): Printer[String, Out, Out]

Printer that emits the input if it is equals to 'value'. Otherwise fails

Printer that emits the input if it is equals to 'value'. Otherwise fails

Attributes

def exactly[Err, Out](value: Out, failure: Err)(implicit ev: Out =!= Char): Printer[Err, Out, Out]

Printer that emits the input if it is equals to 'value'. Otherwise fails with 'failure'

Printer that emits the input if it is equals to 'value'. Otherwise fails with 'failure'

Attributes

def except[Out](value: Out)(implicit ev: Out =!= Char): Printer[String, Out, Out]

Printer that emits the input except if it is equals to 'value', in which case it fails

Printer that emits the input except if it is equals to 'value', in which case it fails

Attributes

def except[Err, Out](value: Out, failure: Err)(implicit ev: Out =!= Char): Printer[Err, Out, Out]

Printer that emits the input except if it is equals to 'value', in which case it fails with 'failure'

Printer that emits the input except if it is equals to 'value', in which case it fails with 'failure'

Attributes

def fail[Err](failure: Err): Printer[Err, Nothing, Any]

Printer that does not print anything and fails with 'failure'

Printer that does not print anything and fails with 'failure'

Attributes

def notChar(value: Char): Printer[String, Char, Char]

Printer that prints the input character if it does not equal to 'value', otherwise fails

Printer that prints the input character if it does not equal to 'value', otherwise fails

Attributes

def notChar[Err](value: Char, failure: Err): Printer[Err, Char, Char]

Printer that prints the input character if it does not equal to 'value', otherwise fails with 'failure'

Printer that prints the input character if it does not equal to 'value', otherwise fails with 'failure'

Attributes

def printString(value: String): Printer[Nothing, Char, Any]

Printer emitting a specific string to a char output

Printer emitting a specific string to a char output

Attributes

def regex[Err](regex: Regex, failure: Err): Printer[Err, Char, Chunk[Char]]

Printer that prints a series of characters provided as input, if it matches the given regex. Otherwise fails with 'failure'

Printer that prints a series of characters provided as input, if it matches the given regex. Otherwise fails with 'failure'

Attributes

def regexChar[Err](regex: Regex, failure: Err): Printer[Err, Char, Char]

Printer that prints a single character if matches the given 'regex', otherwise fails with 'failure'

Printer that prints a single character if matches the given 'regex', otherwise fails with 'failure'

Attributes

def regexDiscard(regex: Regex, value: Chunk[Char]): Printer[Nothing, Char, Unit]

Printer that prints the given chunk of characters in 'value'

Printer that prints the given chunk of characters in 'value'

Attributes

def string[Result](str: String, value: Result): Printer[Nothing, Char, Result]

Prints a specific string 'str' and results in 'value'

Prints a specific string 'str' and results in 'value'

Attributes

def unsafeRegex[Err](regex: Regex): Printer[Err, Char, Chunk[Char]]

Printer that prints a series of characters provided as input, if it matches the given regex. The regex should never fail.

Printer that prints a series of characters provided as input, if it matches the given regex. The regex should never fail.

Attributes

def unsafeRegexChar(regex: Regex): Printer[Nothing, Char, Char]

Printer that prints a single character if matches the given 'regex'. The regex should never fail.

Printer that prints a single character if matches the given 'regex'. The regex should never fail.

Attributes

Concrete fields

val alphaNumeric: Printer[String, Char, Char]

Prints a single alpha-numeric character

Prints a single alpha-numeric character

Attributes

val anyChar: Printer[Nothing, Char, Char]

Printer that prints a single character provided as input.

Printer that prints a single character provided as input.

Attributes

val anyString: Printer[Nothing, Char, String]

Printer that just prints the input string

Printer that just prints the input string

Attributes

val digit: Printer[String, Char, Char]

Prints a single digit

Prints a single digit

Attributes

val letter: Printer[String, Char, Char]

Prints a single letter

Prints a single letter

Attributes

val unit: Printer[Nothing, Nothing, Any]
val whitespace: Printer[String, Char, Char]

Prints a single whitespace character

Prints a single whitespace character

Attributes