Skip to content

PegFormatError

[Source]

Formats PegError values for display on a terminal or as JSON.

primitive val PegFormatError

Constructors

create

[Source]

new val create()
: PegFormatError val^

Returns


Public Functions

console

[Source]

Format an error for terminal output. Set colorize to false to omit ANSI escape sequences (useful when piping to non-terminal destinations).

fun box console(
  e: PegError val,
  colorize: Bool val = true)
: ByteSeqIter val

Parameters

Returns


json

[Source]

Format an error as a JSON object.

fun box json(
  e: PegError val)
: ByteSeqIter val

Parameters

Returns


eq

[Source]

fun box eq(
  that: PegFormatError val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: PegFormatError val)
: Bool val

Parameters

Returns