text

parsley.token.Lexer.nonlexeme$.text$
object text

This object contains lexing functionality relevant to the parsing of text. This is sub-divided into different categories:

  • string literals (both with escapes and raw)

  • multi-line string literals (both with escapes and raw)

  • character literals

These contain the relevant functionality required to specify the degree of unicode support for the underlying language, from ASCII to full UTF-16.

Attributes

Since:

4.0.0

Source:
Lexer.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
text.type

Members list

Concise view

Value members

Concrete methods

This is a collection of parsers concerned with handling character literals.

This is a collection of parsers concerned with handling character literals.

Character literals are described generally as follows:

  • desc.textDesc.characterLiteralEnd: the character that starts and ends the literal (for example in many languages this is ')

  • desc.textDesc.graphicCharacter: describes the legal characters that may appear in the literal directly. Usually, this excludes control characters and newlines, but permits most other things. Escape sequences can represent non-graphic characters

  • desc.textDesc.escapeSequences: describes the legal escape sequences that that can appear in a character literal (for example \n or \u000a)

Aside from the generic configuration, characters can be parsed in accordance with varying levels of unicode support, from ASCII-only to full UTF-16 characters. Parsers for each of four different vareties are exposed by this object.

Attributes

Since:

4.0.0

Source:
Lexer.scala

This is a collection of parsers concerned with handling multi-line string literals.

This is a collection of parsers concerned with handling multi-line string literals.

String literals are described generally as follows:

  • desc.textDesc.multiStringEnds: the sequence of characters that can begin or end a multi-line string literal. Regardless of which of these is used for a specific literal, the end of the literal must use the same sequence

  • desc.textDesc.graphicCharacter: describes the legal characters that may appear in the literal directly. Usually, this excludes control characters and newlines, but permits most other things. Escape sequences can represent non-graphic characters for non-raw strings

  • desc.textDesc.escapeSequences: describes the legal escape sequences that that can appear in a string literal (for example \n or \u000a)

Attributes

Since:

4.0.0

Source:
Lexer.scala

This is a collection of parsers concerned with handling multi-line string literals.

This is a collection of parsers concerned with handling multi-line string literals.

String literals are described generally as follows:

  • desc.textDesc.multiStringEnds: the sequence of characters that can begin or end a multi-line string literal. Regardless of which of these is used for a specific literal, the end of the literal must use the same sequence

  • desc.textDesc.graphicCharacter: describes the legal characters that may appear in the literal directly. Usually, this excludes control characters and newlines, but permits most other things. Escape sequences can represent non-graphic characters for non-raw strings

  • desc.textDesc.escapeSequences: describes the legal escape sequences that that can appear in a string literal (for example \n or \u000a)

Attributes

Since:

4.0.0

Note:

this will be parsed without handling any escape sequences, this includes literal-end characters and the escape prefix (often " and \ respectively)

Source:
Lexer.scala

This is a collection of parsers concerned with handling single-line string literals.

This is a collection of parsers concerned with handling single-line string literals.

String literals are described generally as follows:

  • desc.textDesc.stringEnds: the sequence of characters that can begin or end a string literal. Regardless of which of these is used for a specific literal, the end of the literal must use the same sequence

  • desc.textDesc.graphicCharacter: describes the legal characters that may appear in the literal directly. Usually, this excludes control characters and newlines, but permits most other things. Escape sequences can represent non-graphic characters for non-raw strings

  • desc.textDesc.escapeSequences: describes the legal escape sequences that that can appear in a string literal (for example \n or \u000a)

Attributes

Since:

4.0.0

Note:

this will be parsed without handling any escape sequences, this includes literal-end characters and the escape prefix (often " and \ respectively)

Source:
Lexer.scala

This is a collection of parsers concerned with handling single-line string literals.

This is a collection of parsers concerned with handling single-line string literals.

String literals are described generally as follows:

  • desc.textDesc.stringEnds: the sequence of characters that can begin or end a string literal. Regardless of which of these is used for a specific literal, the end of the literal must use the same sequence

  • desc.textDesc.graphicCharacter: describes the legal characters that may appear in the literal directly. Usually, this excludes control characters and newlines, but permits most other things. Escape sequences can represent non-graphic characters for non-raw strings

  • desc.textDesc.escapeSequences: describes the legal escape sequences that that can appear in a string literal (for example \n or \u000a)

Attributes

Since:

4.0.0

Source:
Lexer.scala