package text
- Alphabetic
- Public
- All
Type Members
-
final
case class
EscapeDesc(escBegin: Char, literals: Set[Char], singleMap: Map[Char, Int], multiMap: Map[String, Int], decimalEscape: NumericEscape, hexadecimalEscape: NumericEscape, octalEscape: NumericEscape, binaryEscape: NumericEscape, emptyEscape: Option[Char], gapsSupported: Boolean) extends Product with Serializable
This class describes the valid escape sequences within character and string literals.
This class describes the valid escape sequences within character and string literals.
This allows for the definition of different escape sequences as direct literals, mapping from single or multiple characters to specific values, numeric escape sequences with different bases, as well as supporting zero-width escapes and line continuations via string gaps.
-
sealed abstract
class
NumberOfDigits extends AnyRef
This class, and its subtypes, describe how many digits a numeric escape sequence is allowed.
This class, and its subtypes, describe how many digits a numeric escape sequence is allowed.
- Since
4.0.0
-
sealed abstract
class
NumericEscape extends AnyRef
This class, and its subtypes, describe how numeric escape sequences should work for a specific base.
This class, and its subtypes, describe how numeric escape sequences should work for a specific base.
- Since
4.0.0
-
final
case class
TextDesc(escapeSequences: EscapeDesc, characterLiteralEnd: Char, stringEnds: Set[String], multiStringEnds: Set[String], graphicCharacter: CharPredicate) extends Product with Serializable
This class describes how textual literals like strings and characters should be processed lexically.
This class describes how textual literals like strings and characters should be processed lexically.
- escapeSequences
the description of how escape sequences in literals.
- characterLiteralEnd
what character starts and ends a character literal.
- stringEnds
what sequences may begin and end a string literal.
- multiStringEnds
what sequences may begin and end a multi-line string literal.
- graphicCharacter
what characters can be written verbatim into a character or string literal.
- Since
4.0.0
Value Members
-
object
EscapeDesc extends Serializable
This object contains default implementations of the
EscapeDescclass, which align with different languages or styles.This object contains default implementations of the
EscapeDescclass, which align with different languages or styles.- Since
4.0.0
-
object
NumberOfDigits
This object contains the concrete subtypes of
NumberOfDigits.This object contains the concrete subtypes of
NumberOfDigits.- Since
4.0.0
-
object
NumericEscape
This object contains the concrete subtypes of
NumericEscape.This object contains the concrete subtypes of
NumericEscape.- Since
4.0.0
-
object
TextDesc extends Serializable
This object contains any preconfigured text definitions.
This object contains any preconfigured text definitions.
- Since
4.0.0