class Reporter extends AnyRef
A reporter for parse errors
Eagerly allocates a LocationMap, which may be expensive: in most cases, you want a def for a new reporter, and/or pass it as a by name argument.
- Alphabetic
- By Inheritance
- Reporter
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Reporter(source: String)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def charInfo(ch: Char): String
Get a human-readable representation of some character.
Get a human-readable representation of some character.
If the character is an ASCII printable character, itself. Otherwise, include its name, Unicode codepoint, well-known escape sequence as applicable.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val map: LocationMap
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def prettyExpectation(exp: Expectation): Option[String]
Pretty-prints an expectation, if we know how to.
Pretty-prints an expectation, if we know how to.
Pretty-printing is done for OneOfStr, InRange, StartOfString, EndOfString, Length and FailWith.
- def report(error: Error): NonEmptyList[String]
Gets an error report for the given parse error
Gets an error report for the given parse error
The report consists of a non-empty list of lines describing the error, the first of which is the line on which the error occurred, and the second is a caret pointing to the error position in the line.
Following lines indicate what expectations were violated.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated