Escape
Base parsers for escape sequences.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- Escape.type
Members list
Value members
Concrete methods
Parses a single literal escape. Example: $$
.
Parses a single literal escape. Example: $$
.
Attributes
Concrete fields
Parses a simple backslash character escape. Does except any character after the backslash, if you want to be strict and apply the specific rules about which characters are valid escapes you need to create a custom parser.
Parses a simple backslash character escape. Does except any character after the backslash, if you want to be strict and apply the specific rules about which characters are valid escapes you need to create a custom parser.
Attributes
Parses a hexadecimal character escape.
It must start with a backslash, followed by the letter x
and exactly two hex digits,
e.g. \\xf2
.
Parses a hexadecimal character escape.
It must start with a backslash, followed by the letter x
and exactly two hex digits,
e.g. \\xf2
.
Attributes
Parses a octal character escape.
It must start with a backslash, followed by one to three octal digits,
e.g. \\207
.
Parses a octal character escape.
It must start with a backslash, followed by one to three octal digits,
e.g. \\207
.
Attributes
Parses a unicode character escape.
It must start with a backslash, followed by the letter u
and exactly four hex digits,
e.g. \\u20ff
.
Parses a unicode character escape.
It must start with a backslash, followed by the letter u
and exactly four hex digits,
e.g. \\u20ff
.