StringLiteral

laika.parse.code.common.StringLiteral$
object StringLiteral

Configurable base parsers for string literals.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object Escape

Base parsers for escape sequences.

Base parsers for escape sequences.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Escape.type
case class StringParser(startDelimParser: PrefixedParser[String], endDelimParser: PrefixedParser[String], multiline: Boolean, postCondition: Option[Parser[Unit]], embedded: Seq[CodeSpanParser], defaultCategories: Set[CodeCategory]) extends CodeParserBase

Configurable base parser for string literals.

Configurable base parser for string literals.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PrefixedParser[Seq[CodeSpan]]
class Parser[Seq[CodeSpan]]
class Object
trait Matchable
class Any
Show all
object Substitution

Base parsers for substitution references in interpolated strings (or sometimes called string templates depending on the language).

Base parsers for substitution references in interpolated strings (or sometimes called string templates depending on the language).

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def multiLine(between: String): StringParser

Parses a string literal that can span multiple lines, enclosed by the specified start and end delimiter.

Parses a string literal that can span multiple lines, enclosed by the specified start and end delimiter.

Attributes

def multiLine(startDelim: String, endDelim: String): StringParser

Parses a string literal that can span multiple lines, enclosed by the specified start and end delimiters.

Parses a string literal that can span multiple lines, enclosed by the specified start and end delimiters.

Attributes

def multiLine(startDelim: PrefixedParser[String], endDelim: PrefixedParser[String]): StringParser

Parses a string literal that can span multiple lines, enclosed by the specified delimiters.

Parses a string literal that can span multiple lines, enclosed by the specified delimiters.

Attributes

def singleLine(between: Char): StringParser

Parses a string literal on a single line enclosed by the specified start and end delimiter.

Parses a string literal on a single line enclosed by the specified start and end delimiter.

Attributes

def singleLine(startDelim: String, endDelim: String): StringParser

Parses a string literal on a single line enclosed by the specified start and end delimiters.

Parses a string literal on a single line enclosed by the specified start and end delimiters.

Attributes

def singleLine(startDelim: PrefixedParser[String], endDelim: PrefixedParser[String]): StringParser

Parses a string literal on a single line enclosed by the specified start and end delimiters.

Parses a string literal on a single line enclosed by the specified start and end delimiters.

Attributes