Message

object Message

Message companion providing several pre-built messages and factory methods.

Companion:
class
class Object
trait Matchable
class Any
Message.type

Type members

Classlikes

class MessageFactory[T](f: T => String) extends T => Message

Value members

Concrete methods

def fixed(msg: String): Message

Builds a message instance for a fixed string, independent of the parser context.

Builds a message instance for a fixed string, independent of the parser context.

def forContext(f: SourceCursor => String): Message

Builds a message instance for the specified factory function.

Builds a message instance for the specified factory function.

def forRuntimeValue[T](f: T => String): T => Message

Builds a factory function that produces new messages based on some arbitrary input type. This allows to pre-capture some context for the message that does not relate to the parser context.

Builds a factory function that produces new messages based on some arbitrary input type. This allows to pre-capture some context for the message that does not relate to the parser context.