Message

laika.parse.Message$
See theMessage companion trait
object Message

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

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Message.type

Members list

Type members

Classlikes

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

Attributes

Supertypes
trait T => Message
class Object
trait Matchable
class Any

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.

Attributes

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

Builds a message instance for the specified factory function.

Builds a message instance for the specified factory function.

Attributes

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.

Attributes