ErrorLabel

class ErrorLabel[P, A](p: => P)(con: P => Parsley[A])

This class enables faster, but potentially misleading error behaviour

This class enables faster, but potentially misleading error behaviour

Since

2.6.0

class Object
trait Matchable
class Any

Value members

Deprecated methods

@deprecated("The infrastructure required to keep this incredibly niche functionality going is too prohibitive, it will be removed in 4.0", "3.1.0")
def unsafeLabel(msg: String): Parsley[A]

Sets the expected message for a parser. If the parser fails then expected msg will added to the error. This will supercede '''all''' labels that that are present in the parser p. Whilst this does improve the speed of the parser, it may render your error messages useless if not used carefully. This method should ''only'' be used for '''non-terminals''' in the grammar

Sets the expected message for a parser. If the parser fails then expected msg will added to the error. This will supercede '''all''' labels that that are present in the parser p. Whilst this does improve the speed of the parser, it may render your error messages useless if not used carefully. This method should ''only'' be used for '''non-terminals''' in the grammar

Since

2.6.0

Deprecated