Packages

c

parsley.token.errors

ErrorConfig

class ErrorConfig extends AnyRef

This class is used to specify how errors should be produced by the Lexer class.

The Lexer is set up to produce a variety of different errors via label-ing, explain-ing, and filter-ing, and some applications of the Verified and Preventative error patterns. The exact content of those errors can be configured here. Errors can be suppressed or specified with different levels of detail, or even switching between vanilla or specialised errors.

This class should be used by extending it and overriding the relevant parts: all methods here are non-abstract and their default is documented inside. Not configuring something does not mean it will not appear in the message, but will mean it uses the underlying base errors.

Source
ErrorConfig.scala
Since

4.1.0

Linear Supertypes
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. ErrorConfig
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ErrorConfig()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def doubleName: String

    What is the name given to doubles.

    What is the name given to doubles.

    Since

    4.1.0

    Note

    defaults to "IEEE 754 double-precision float"

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def filterCharNonAscii: VanillaFilterConfig[Int]

    When a non-ASCII character is found in a ASCII-only character literal, specifies how this should be reported.

    When a non-ASCII character is found in a ASCII-only character literal, specifies how this should be reported.

    Since

    4.1.0

    Note

    defaults to a filter generating the reason "non-ascii character"

  10. def filterCharNonBasicMultilingualPlane: VanillaFilterConfig[Int]

    When a non-BMP character is found in a BMP-only character literal, specifies how this should be reported.

    When a non-BMP character is found in a BMP-only character literal, specifies how this should be reported.

    Since

    4.1.0

    Note

    defaults to a filter generating the reason "non-BMP character"

  11. def filterCharNonLatin1: VanillaFilterConfig[Int]

    When a non-Latin1 character is found in a Latin1-only character literal, specifies how this should be reported.

    When a non-Latin1 character is found in a Latin1-only character literal, specifies how this should be reported.

    Since

    4.1.0

    Note

    defaults to a filter generating the reason "non-latin1 character"

  12. def filterEscapeCharNumericSequenceIllegal(maxEscape: Int, radix: Int): SpecialisedFilterConfig[BigInt]

    When a numeric escape sequence is not legal, this describes how to report that error, given the original illegal character.

    When a numeric escape sequence is not legal, this describes how to report that error, given the original illegal character.

    maxEscape

    the largest legal escape character

    radix

    the radix used for this numeric escape sequence

    Since

    4.1.0

    Note

    defaults to a specialised message stating if the character is larger than the given maximum, or just an illegal codepoint otherwise.

  13. def filterEscapeCharRequiresExactDigits(radix: Int, needed: Seq[Int]): SpecialisedFilterConfig[Int]

    When a numeric escape sequence requires a specific number of digits but this was not successfully parsed, this describes how to report that error given the number of successfully parsed digits up this point.

    When a numeric escape sequence requires a specific number of digits but this was not successfully parsed, this describes how to report that error given the number of successfully parsed digits up this point.

    radix

    the radix used for this numeric escape sequence

    needed

    the possible numbers of digits required

    Since

    4.1.0

    Note

    defaults to a specialised message describing how many digits are required but how many were present.

  14. def filterIntegerOutOfBounds(min: BigInt, max: BigInt, nativeRadix: Int): FilterConfig[BigInt]

    This method describes the content of the error when an integer literal is parsed and it is not within the required bit-width.

    This method describes the content of the error when an integer literal is parsed and it is not within the required bit-width.

    min

    the smallest value the integer could have taken

    max

    the largest value the integer could have taken

    nativeRadix

    the radix that the integer was parsed using

    Since

    4.1.0

    Note

    defaults to a specialised error describing what the min and max bounds are.

  15. def filterNameIllFormedIdentifier: FilterConfig[String]

    When parsing identifiers that are required to have specific start characters, how should bad identifiers be reported.

    When parsing identifiers that are required to have specific start characters, how should bad identifiers be reported.

    Since

    4.1.0

    Note

    defaults to unexpected "identifier v"

  16. def filterNameIllFormedOperator: FilterConfig[String]

    When parsing operators that are required to have specific start/end characters, how should bad operators be reported.

    When parsing operators that are required to have specific start/end characters, how should bad operators be reported.

    Since

    4.1.0

    Note

    defaults to unexpected "operator v"

  17. def filterRealNotExact(name: String): FilterConfig[BigDecimal]

    This method describes the content of the error when a real literal is parsed and it is not representable exactly as the required precision.

    This method describes the content of the error when a real literal is parsed and it is not representable exactly as the required precision.

    name

    the name of the required precision (one of doubleName or floatName)

    Since

    4.1.0

    Note

    defaults to a specialised error stating that the literal is not exactly representable.

  18. def filterRealOutOfBounds(name: String, min: BigDecimal, max: BigDecimal): FilterConfig[BigDecimal]

    This method describes the content of the error when a real literal is parsed and it is not within the bounds perscribed by the required precision.

    This method describes the content of the error when a real literal is parsed and it is not within the bounds perscribed by the required precision.

    name

    the name of the required precision (one of doubleName or floatName)

    min

    the smallest value the real could have taken

    max

    the largest value the real could have taken

    Since

    4.1.0

    Note

    defaults to a specialised error describing what the min and max bounds are.

  19. def filterStringNonAscii: SpecialisedFilterConfig[StringBuilder]

    When a non-ASCII character is found in a ASCII-only string literal, specifies how this should be reported.

    When a non-ASCII character is found in a ASCII-only string literal, specifies how this should be reported.

    Since

    4.1.0

    Note

    defaults to a filter generating a specialised message of "non-ascii characters in string literal, this is not allowed"

  20. def filterStringNonLatin1: SpecialisedFilterConfig[StringBuilder]

    When a non-Latin1 character is found in a Latin1-only string literal, specifies how this should be reported.

    When a non-Latin1 character is found in a Latin1-only string literal, specifies how this should be reported.

    Since

    4.1.0

    Note

    defaults to a filter generating a specialised message of "non-latin1 characters in string literal, this is not allowed"

  21. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  22. def floatName: String

    What is the name given to floats.

    What is the name given to floats.

    Since

    4.1.0

    Note

    defaults to "IEEE 754 single-precision float"

  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def labelCharAscii: LabelWithExplainConfig

    How should a ASCII character literal be referred to or explained in error messages.

    How should a ASCII character literal be referred to or explained in error messages.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  27. def labelCharAsciiEnd: LabelConfig

    How should the closing quote of an ASCII character literal be referred to in error messages.

    How should the closing quote of an ASCII character literal be referred to in error messages.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  28. def labelCharBasicMultilingualPlane: LabelWithExplainConfig

    How should a BMP (Basic Multilingual Plane) character literal be referred to or explained in error messages.

    How should a BMP (Basic Multilingual Plane) character literal be referred to or explained in error messages.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  29. def labelCharBasicMultilingualPlaneEnd: LabelConfig

    How should the closing quote of a BMP character literal be referred to in error messages.

    How should the closing quote of a BMP character literal be referred to in error messages.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  30. def labelCharLatin1: LabelWithExplainConfig

    How should a Latin1 (extended ASCII) character literal be referred to or explained in error messages.

    How should a Latin1 (extended ASCII) character literal be referred to or explained in error messages.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  31. def labelCharLatin1End: LabelConfig

    How should the closing quote of a Latin1 character literal be referred to in error messages.

    How should the closing quote of a Latin1 character literal be referred to in error messages.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  32. def labelCharUtf16: LabelWithExplainConfig

    How should a UTF-16 character literal be referred to or explained in error messages.

    How should a UTF-16 character literal be referred to or explained in error messages.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  33. def labelCharUtf16End: LabelConfig

    How should the closing quote of a UTF-16 character literal be referred to in error messages.

    How should the closing quote of a UTF-16 character literal be referred to in error messages.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  34. def labelEscapeEnd: LabelWithExplainConfig

    How should the end of an escape sequence (anything past the opening character) be referred to or explained within an error message.

    How should the end of an escape sequence (anything past the opening character) be referred to or explained within an error message.

    Since

    4.1.0

    Note

    defaults to label of "end of escape sequence" with a reason of "invalid escape sequence"

  35. def labelEscapeNumeric(radix: Int): LabelWithExplainConfig

    How should a numeric escape sequence (after the opening character) be referred to or explained in error messages.

    How should a numeric escape sequence (after the opening character) be referred to or explained in error messages.

    radix

    the radix this specific configuration applies to

    Since

    4.1.0

    Note

    defaults to NotConfigured

  36. def labelEscapeNumericEnd(prefix: Char, radix: Int): LabelWithExplainConfig

    How should the end of a numeric escape sequence (after a prefix) be referred to or explained in error messages.

    How should the end of a numeric escape sequence (after a prefix) be referred to or explained in error messages.

    prefix

    the character that started this sequence

    radix

    the radix this specific configuration applies to

    Since

    4.1.0

    Note

    defaults to NotConfigured

  37. def labelEscapeSequence: LabelWithExplainConfig

    How should an escape sequence be referred to or explained in error messages.

    How should an escape sequence be referred to or explained in error messages.

    Since

    4.1.0

    Note

    defaults to label of "escape sequence"

    ,

    explains for escape characters do not work in string literals.

    See also

    labelEscapeEnd for how to explain what valid escape sequences may be when the lead character has been parsed.

  38. def labelGraphicCharacter: LabelWithExplainConfig

    How should a graphic character (a regular character in the literal) be referred to or explained in error messages.

    How should a graphic character (a regular character in the literal) be referred to or explained in error messages.

    Since

    4.1.0

    Note

    defaults to a label of "graphic character"

    ,

    explains for graphic characters do not work in string literals.

  39. def labelIntegerBinaryEnd: LabelConfig

    How should the fact that the end of a binary integer literal is expected be referred to within an error.

    How should the fact that the end of a binary integer literal is expected be referred to within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerNumberEnd

  40. def labelIntegerDecimalEnd: LabelConfig

    How should the fact that the end of a decimal integer literal is expected be referred to within an error.

    How should the fact that the end of a decimal integer literal is expected be referred to within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerNumberEnd

  41. def labelIntegerHexadecimalEnd: LabelConfig

    How should the fact that the end of a hexadecimal integer literal is expected be referred to within an error.

    How should the fact that the end of a hexadecimal integer literal is expected be referred to within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerNumberEnd

  42. def labelIntegerNumberEnd: LabelConfig

    How should the fact that the end of a generic integer literal is expected be referred to within an error.

    How should the fact that the end of a generic integer literal is expected be referred to within an error.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  43. def labelIntegerOctalEnd: LabelConfig

    How should the fact that the end of an octal integer literal is expected be referred to within an error.

    How should the fact that the end of an octal integer literal is expected be referred to within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerNumberEnd

  44. def labelIntegerSignedBinary(bits: Int): LabelWithExplainConfig

    How should signed binary integers of a given bit-width be referred to or explained within an error.

    How should signed binary integers of a given bit-width be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerSignedBinary

  45. def labelIntegerSignedBinary: LabelWithExplainConfig

    How should signed binary integers be referred to or explained within an error.

    How should signed binary integers be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerSignedNumber

  46. def labelIntegerSignedDecimal(bits: Int): LabelWithExplainConfig

    How should signed decimal integers of a given bit-width be referred to or explained within an error.

    How should signed decimal integers of a given bit-width be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerSignedDecimal

  47. def labelIntegerSignedDecimal: LabelWithExplainConfig

    How should signed decimal integers be referred to or explained within an error.

    How should signed decimal integers be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerSignedNumber

  48. def labelIntegerSignedHexadecimal(bits: Int): LabelWithExplainConfig

    How should signed hexadecimal integers of a given bit-width be referred to or explained within an error.

    How should signed hexadecimal integers of a given bit-width be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerSignedHexadecimal

  49. def labelIntegerSignedHexadecimal: LabelWithExplainConfig

    How should signed hexadecimal integers be referred to or explained within an error.

    How should signed hexadecimal integers be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerSignedNumber

  50. def labelIntegerSignedNumber(bits: Int): LabelWithExplainConfig

    How should generic signed integers of a given bit-width be referred to or explained within an error.

    How should generic signed integers of a given bit-width be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  51. def labelIntegerSignedNumber: LabelWithExplainConfig

    How should generic signed integers be referred to or explained within an error.

    How should generic signed integers be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  52. def labelIntegerSignedOctal(bits: Int): LabelWithExplainConfig

    How should signed octal integers of a given bit-width be referred to or explained within an error.

    How should signed octal integers of a given bit-width be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerSignedOctal

  53. def labelIntegerSignedOctal: LabelWithExplainConfig

    How should signed octal integers be referred to or explained within an error.

    How should signed octal integers be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerSignedNumber

  54. def labelIntegerUnsignedBinary(bits: Int): LabelWithExplainConfig

    How should unsigned binary integers of a given bit-width be referred to or explained within an error.

    How should unsigned binary integers of a given bit-width be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerUnsignedNumber

  55. def labelIntegerUnsignedBinary: LabelWithExplainConfig

    How should unsigned binary integers be referred to or explained within an error.

    How should unsigned binary integers be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerUnsignedNumber

  56. def labelIntegerUnsignedDecimal(bits: Int): LabelWithExplainConfig

    How should unsigned decimal integers of a given bit-width be referred to or explained within an error.

    How should unsigned decimal integers of a given bit-width be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerUnsignedNumber

  57. def labelIntegerUnsignedDecimal: LabelWithExplainConfig

    How should unsigned decimal integers be referred to or explained within an error.

    How should unsigned decimal integers be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerUnsignedNumber

  58. def labelIntegerUnsignedHexadecimal(bits: Int): LabelWithExplainConfig

    How should unsigned hexadecimal integers of a given bit-width be referred to or explained within an error.

    How should unsigned hexadecimal integers of a given bit-width be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerUnsignedNumber

  59. def labelIntegerUnsignedHexadecimal: LabelWithExplainConfig

    How should unsigned hexadecimal integers be referred to or explained within an error.

    How should unsigned hexadecimal integers be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerUnsignedNumber

  60. def labelIntegerUnsignedNumber(bits: Int): LabelWithExplainConfig

    How should generic unsigned integers of a given bit-width be referred to or explained within an error.

    How should generic unsigned integers of a given bit-width be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  61. def labelIntegerUnsignedNumber: LabelWithExplainConfig

    How should generic unsigned integers be referred to or explained within an error.

    How should generic unsigned integers be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  62. def labelIntegerUnsignedOctal(bits: Int): LabelWithExplainConfig

    How should unsigned octal integers of a given bit-width be referred to or explained within an error.

    How should unsigned octal integers of a given bit-width be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerUnsignedNumber

  63. def labelIntegerUnsignedOctal: LabelWithExplainConfig

    How should unsigned octal integers be referred to or explained within an error.

    How should unsigned octal integers be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelIntegerUnsignedNumber

  64. def labelNameIdentifier: String

    How should an identifier be referred to in an error message.

    How should an identifier be referred to in an error message.

    Since

    4.1.0

    Note

    defaults to "identifier"

  65. def labelNameOperator: String

    How should a user-defined operator be referred to in an error message.

    How should a user-defined operator be referred to in an error message.

    Since

    4.1.0

    Note

    defaults to "operator"

  66. def labelNumericBreakChar: LabelWithExplainConfig

    How should a numeric break character (like _) be referred to or explained within an error.

    How should a numeric break character (like _) be referred to or explained within an error.

    Since

    4.1.0

  67. def labelRealBinary: LabelWithExplainConfig

    How should binary reals should be referred to or explained within an error.

    How should binary reals should be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelRealNumber

  68. def labelRealBinaryEnd: LabelConfig

    How should the fact that the end of a binary real literal is expected be referred to within an error.

    How should the fact that the end of a binary real literal is expected be referred to within an error.

    Since

    4.1.0

    Note

    defaults to labelRealNumberEnd

  69. def labelRealDecimal: LabelWithExplainConfig

    How should decimal reals should be referred to or explained within an error.

    How should decimal reals should be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelRealNumber

  70. def labelRealDecimalEnd: LabelConfig

    How should the fact that the end of a decimal real literal is expected be referred to within an error.

    How should the fact that the end of a decimal real literal is expected be referred to within an error.

    Since

    4.1.0

    Note

    defaults to labelRealNumberEnd

  71. def labelRealDot: LabelWithExplainConfig

    How should the "dot" that separates the integer and fractional part of a real number should be referred to or explained within an error.

    How should the "dot" that separates the integer and fractional part of a real number should be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  72. def labelRealDoubleBinary: LabelWithExplainConfig

    How should binary doubles should be referred to or explained within an error.

    How should binary doubles should be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelRealBinary

  73. def labelRealDoubleDecimal: LabelWithExplainConfig

    How should decimal doubles should be referred to or explained within an error.

    How should decimal doubles should be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelRealDecimal

  74. def labelRealDoubleHexadecimal: LabelWithExplainConfig

    How should hexadecimal doubles should be referred to or explained within an error.

    How should hexadecimal doubles should be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelRealHexadecimal

  75. def labelRealDoubleNumber: LabelWithExplainConfig

    How should generic doubles should be referred to or explained within an error.

    How should generic doubles should be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelRealNumber

  76. def labelRealDoubleOctal: LabelWithExplainConfig

    How should octal doubles should be referred to or explained within an error.

    How should octal doubles should be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelRealOctal

  77. def labelRealExponent: LabelWithExplainConfig

    How should the trailing exponents of a real number be referred to or explained within an error.

    How should the trailing exponents of a real number be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  78. def labelRealExponentEnd: LabelConfig

    How should the fact that the end of an exponent part of a real literal is expected be referred to within an error.

    How should the fact that the end of an exponent part of a real literal is expected be referred to within an error.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  79. def labelRealFloatBinary: LabelWithExplainConfig

    How should binary floats should be referred to or explained within an error.

    How should binary floats should be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelRealBinary

  80. def labelRealFloatDecimal: LabelWithExplainConfig

    How should decimal floats should be referred to or explained within an error.

    How should decimal floats should be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelRealDecimal

  81. def labelRealFloatHexadecimal: LabelWithExplainConfig

    How should hexadecimal floats should be referred to or explained within an error.

    How should hexadecimal floats should be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelRealHexadecimal

  82. def labelRealFloatNumber: LabelWithExplainConfig

    How should generic floats should be referred to or explained within an error.

    How should generic floats should be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelRealNumber

  83. def labelRealFloatOctal: LabelWithExplainConfig

    How should octal floats should be referred to or explained within an error.

    How should octal floats should be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelRealOctal

  84. def labelRealHexadecimal: LabelWithExplainConfig

    How should hexadecimal reals should be referred to or explained within an error.

    How should hexadecimal reals should be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelRealNumber

  85. def labelRealHexadecimalEnd: LabelConfig

    How should the fact that the end of a hexadecimal real literal is expected be referred to within an error.

    How should the fact that the end of a hexadecimal real literal is expected be referred to within an error.

    Since

    4.1.0

    Note

    defaults to labelRealNumberEnd

  86. def labelRealNumber: LabelWithExplainConfig

    How should generic reals should be referred to or explained within an error.

    How should generic reals should be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  87. def labelRealNumberEnd: LabelConfig

    How should the fact that the end of a generic real literal is expected be referred to within an error.

    How should the fact that the end of a generic real literal is expected be referred to within an error.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  88. def labelRealOctal: LabelWithExplainConfig

    How should octal reals should be referred to or explained within an error.

    How should octal reals should be referred to or explained within an error.

    Since

    4.1.0

    Note

    defaults to labelRealNumber

  89. def labelRealOctalEnd: LabelConfig

    How should the fact that the end of an octal real literal is expected be referred to within an error.

    How should the fact that the end of an octal real literal is expected be referred to within an error.

    Since

    4.1.0

    Note

    defaults to labelRealNumberEnd

  90. def labelSpaceEndOfLineComment: LabelWithExplainConfig

    How should the end of a single-line comment be described or explained.

    How should the end of a single-line comment be described or explained.

    Since

    4.1.0

    Note

    defaults to "end of comment"

  91. def labelSpaceEndOfMultiComment: LabelWithExplainConfig

    How should the end of a multi-line comment be described or explained.

    How should the end of a multi-line comment be described or explained.

    Since

    4.1.0

    Note

    defaults to "end of comment"

  92. def labelStringAscii(multi: Boolean, raw: Boolean): LabelWithExplainConfig

    How should a ASCII-only string literal be referred to or explained in error messages.

    How should a ASCII-only string literal be referred to or explained in error messages.

    multi

    whether this is for multi-line strings

    raw

    whether this is for raw strings

    Since

    4.1.0

    Note

    defaults to NotConfigured

  93. def labelStringAsciiEnd(multi: Boolean, raw: Boolean): LabelConfig

    How should the closing quote(s) of an ASCII string literal be referred to in error messages.

    How should the closing quote(s) of an ASCII string literal be referred to in error messages.

    multi

    whether this is for multi-line strings

    raw

    whether this is for raw strings

    Since

    4.1.0

    Note

    defaults to NotConfigured

  94. def labelStringCharacter: LabelConfig

    How should general string characters be referred to in error messages.

    How should general string characters be referred to in error messages.

    Since

    4.1.0

    Note

    defaults to label of "string character"

    ,

    this superscedes labelGraphicCharacter and labelEscapeSequence within string literals.

  95. def labelStringEscapeEmpty: LabelConfig

    How should zero-width escape characters be referred to within error messages.

    How should zero-width escape characters be referred to within error messages.

    Since

    4.1.0

    Note

    defaults to NotConfigured

  96. def labelStringEscapeGap: LabelConfig

    How should string gaps be referred to within error messages.

    How should string gaps be referred to within error messages.

    Since

    4.1.0

    Note

    defaults to label of "string gap"

  97. def labelStringEscapeGapEnd: LabelConfig

    How should the end of a string gap (the closing slash) be referred to within error messages.

    How should the end of a string gap (the closing slash) be referred to within error messages.

    Since

    4.1.0

    Note

    defaults to label of "end of string gap"

  98. def labelStringLatin1(multi: Boolean, raw: Boolean): LabelWithExplainConfig

    How should a Latin1-only string literal be referred to or explained in error messages.

    How should a Latin1-only string literal be referred to or explained in error messages.

    multi

    whether this is for multi-line strings

    raw

    whether this is for raw strings

    Since

    4.1.0

    Note

    defaults to NotConfigured

  99. def labelStringLatin1End(multi: Boolean, raw: Boolean): LabelConfig

    How should the closing quote(s) of a Latin1 string literal be referred to in error messages.

    How should the closing quote(s) of a Latin1 string literal be referred to in error messages.

    multi

    whether this is for multi-line strings

    raw

    whether this is for raw strings

    Since

    4.1.0

    Note

    defaults to NotConfigured

  100. def labelStringUtf16(multi: Boolean, raw: Boolean): LabelWithExplainConfig

    How should a UTF-16-only string literal be referred to or explained in error messages.

    How should a UTF-16-only string literal be referred to or explained in error messages.

    multi

    whether this is for multi-line strings

    raw

    whether this is for raw strings

    Since

    4.1.0

    Note

    defaults to NotConfigured

  101. def labelStringUtf16End(multi: Boolean, raw: Boolean): LabelConfig

    How should the closing quote(s) of a UTF-16 string literal be referred to in error messages.

    How should the closing quote(s) of a UTF-16 string literal be referred to in error messages.

    multi

    whether this is for multi-line strings

    raw

    whether this is for raw strings

    Since

    4.1.0

    Note

    defaults to NotConfigured

  102. def labelSymbolClosingAngle: LabelConfig

    How to refer to a > symbol in an error message.

    How to refer to a > symbol in an error message.

    Since

    4.1.0

    Note

    defaults to "closing angle bracket"

  103. def labelSymbolClosingBrace: LabelConfig

    How to refer to a } symbol in an error message.

    How to refer to a } symbol in an error message.

    Since

    4.1.0

    Note

    defaults to "closing brace"

  104. def labelSymbolClosingParen: LabelConfig

    How to refer to a ) symbol in an error message.

    How to refer to a ) symbol in an error message.

    Since

    4.1.0

    Note

    defaults to "closing parenthesis"

  105. def labelSymbolClosingSquare: LabelConfig

    How to refer to a ] symbol in an error message.

    How to refer to a ] symbol in an error message.

    Since

    4.1.0

    Note

    defaults to "closing square bracket"

  106. def labelSymbolColon: LabelConfig

    How to refer to a : symbol in an error message.

    How to refer to a : symbol in an error message.

    Since

    4.1.0

    Note

    defaults to "colon"

  107. def labelSymbolComma: LabelConfig

    How to refer to a , symbol in an error message.

    How to refer to a , symbol in an error message.

    Since

    4.1.0

    Note

    defaults to "comma"

  108. def labelSymbolDot: LabelConfig

    How to refer to a . symbol in an error message.

    How to refer to a . symbol in an error message.

    Since

    4.1.0

    Note

    defaults to "dot"

  109. def labelSymbolEndOfKeyword(symbol: String): String

    How should the required end of a given keyword be specified in an error.

    How should the required end of a given keyword be specified in an error.

    Since

    4.1.0

    Note

    defaults to "end of symbol"

  110. def labelSymbolEndOfOperator(symbol: String): String

    How should the required end of a given operator be specified in an error.

    How should the required end of a given operator be specified in an error.

    Since

    4.1.0

    Note

    defaults to "end of symbol"

  111. def labelSymbolKeyword(symbol: String): LabelConfig

    How should a given keyword be described in an error message.

    How should a given keyword be described in an error message.

    Since

    4.1.0

    Note

    defaults to labelling with the symbol itself

  112. def labelSymbolOpenAngle: LabelConfig

    How to refer to a < symbol in an error message.

    How to refer to a < symbol in an error message.

    Since

    4.1.0

    Note

    defaults to "open angle bracket"

  113. def labelSymbolOpenBrace: LabelConfig

    How to refer to a { symbol in an error message.

    How to refer to a { symbol in an error message.

    Since

    4.1.0

    Note

    defaults to "open brace"

  114. def labelSymbolOpenParen: LabelConfig

    How to refer to a ( symbol in an error message.

    How to refer to a ( symbol in an error message.

    Since

    4.1.0

    Note

    defaults to "open parenthesis"

  115. def labelSymbolOpenSquare: LabelConfig

    How to refer to a [ symbol in an error message.

    How to refer to a [ symbol in an error message.

    Since

    4.1.0

    Note

    defaults to "open square bracket"

  116. def labelSymbolOperator(symbol: String): LabelConfig

    How should a given operator be described in an error message.

    How should a given operator be described in an error message.

    Since

    4.1.0

    Note

    defaults to labelling with the symbol itself

  117. def labelSymbolSemi: LabelConfig

    How to refer to a ; symbol in an error message.

    How to refer to a ; symbol in an error message.

    Since

    4.1.0

    Note

    defaults to "semicolon"

  118. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  119. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  120. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  121. def preventRealDoubleDroppedZero: PreventDotIsZeroConfig

    Even if leading and trailing zeros can be dropped, . is not a valid real number: this method specifies how to report that to the user.

    Even if leading and trailing zeros can be dropped, . is not a valid real number: this method specifies how to report that to the user.

    Since

    4.1.0

    Note

    defaults to a vanilla explain: "a real number cannot drop both a leading and trailing zero"

  122. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  123. def toString(): String
    Definition Classes
    AnyRef → Any
  124. def unexpectedNameIllegalIdentifier(v: String): String

    How should an illegally parsed hard keyword be referred to as an unexpected component.

    How should an illegally parsed hard keyword be referred to as an unexpected component.

    v

    the illegal identifier

    Since

    4.1.0

    Note

    defaults to "keyword v"

  125. def unexpectedNameIllegalOperator(v: String): String

    How should an illegally parsed hard operator be referred to as an unexpected component.

    How should an illegally parsed hard operator be referred to as an unexpected component.

    Since

    4.1.0

    Note

    defaults to "reserved operator v"

  126. def verifiedCharBadCharsUsedInLiteral: VerifiedBadChars

    Character literals parse either graphic characters or escape characters.

    Character literals parse either graphic characters or escape characters. This configuration allows for individual errors when a character not part of either graphic characters or escape characters is encountered.

    Since

    4.1.0

    Note

    defaults to Unverified

  127. def verifiedStringBadCharsUsedInLiteral: VerifiedBadChars

    String literals parse either graphic characters or escape characters.

    String literals parse either graphic characters or escape characters. This configuration allows for individual errors when a character not part of either graphic characters or escape characters is encountered.

    Since

    4.1.0

    Note

    defaults to Unverified

  128. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  129. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  130. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Name Errors

These control the errors generated with the names component of the Lexer.

Numeric Errors

These control the errors generated with the numeric component of the Lexer.

Space Errors

These control the errors generated with the space component of the Lexer.

Symbol Errors

These control the errors generated with the symbol component of the Lexer.

Text Errors

These control the errors generated with the text component of the Lexer.

Ungrouped