Escape
Base parsers for escape sequences.
Attributes
- Source
- StringLiteral.scala
- Graph
-
- Supertypes
- Self type
-
Escape.type
Members list
Value members
Concrete methods
Parses a single literal escape.
Concrete fields
Parses a simple backslash character escape.
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
- Source
- StringLiteral.scala
Parses a hexadecimal character escape.
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
- Source
- StringLiteral.scala
Parses a octal character escape.
Parses a octal character escape. It must start with a backslash, followed by one to three octal digits, e.g. \\207
.
Attributes
- Source
- StringLiteral.scala
Parses a unicode character escape.
Parses a unicode character escape. It must start with a backslash, followed by the letter u
and exactly four hex digits, e.g. \\u20ff
.
Attributes
- Source
- StringLiteral.scala