HoconParsers

laika.parse.hocon.HoconParsers$
object HoconParsers

The parser implementation for the HOCON format.

It currently supports the full spec as documented in https://github.com/lightbend/config/blob/master/HOCON.md.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

implicit class ClosingParserOps[T](parser: Parser[T])

Attributes

Supertypes
class Object
trait Matchable
class Any
case class PathFragments(fragments: Seq[StringBuilderValue])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object PathFragments

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def anyValue(delimiter: Type[Char]): Parser[ConfigBuilderValue]

Parses any kind of value supported by the HOCON format.

Parses any kind of value supported by the HOCON format.

Attributes

def concatenatedKey(delimiter: Type[Char]): Parser[Either[InvalidStringValue, Key]]

Parses a key based on the HOCON rules where a '.' in a quoted string is not interpreted as a path separator.

Parses a key based on the HOCON rules where a '.' in a quoted string is not interpreted as a path separator.

Attributes

def concatenatedValue(delimiter: Type[Char]): Parser[ConfigBuilderValue]
def failWith[T](fallbackParser: Parser[Int], msg: => String)(captureError: Failure => T): Parser[T]
def lazily[T](parser: => Parser[T]): Parser[T]
def stringBuilderValue(delimiter: Type[Char]): Parser[ConfigBuilderValue]

Parses any of the 3 string types (quoted, unquoted, triple-quoted).

Parses any of the 3 string types (quoted, unquoted, triple-quoted).

Attributes

def unquotedString(delimiters: Type[Char]): Parser[StringBuilderValue]

Parses an unquoted string that is not allowed to contain any of the reserved characters listed in the HOCON spec.

Parses an unquoted string that is not allowed to contain any of the reserved characters listed in the HOCON spec.

Attributes

Concrete fields

Parses an array value recursively.

Parses an array value recursively.

Attributes

val comment: Parser[String]

Parses a comment.

Parses a comment.

Attributes

val consumeAllInput: Parser[Unit]

Parses a literal false value.

Parses a literal false value.

Attributes

Parses a string enclosed in triple quotes.

Parses a string enclosed in triple quotes.

Attributes

Parses a null value.

Parses a null value.

Attributes

Parses a literal number value into a Long or Double depending on whether a fraction part is present.

Parses a literal number value into a Long or Double depending on whether a fraction part is present.

Attributes

Parses an object value enclosed in braces.

Parses an object value enclosed in braces.

Attributes

Parses a string enclosed in quotes.

Parses a string enclosed in quotes.

Attributes

Parses a root configuration object where the enclosing braces may be omitted.

Parses a root configuration object where the enclosing braces may be omitted.

Attributes

Parses a substitution variable.

Parses a substitution variable.

Attributes

Parses a literal true value.

Parses a literal true value.

Attributes

val wsOrComment: Parser[Any]

Parses the rest of the current line if it contains either just whitespace or a comment.

Parses the rest of the current line if it contains either just whitespace or a comment.

Attributes

val wsOrNl: Characters[String]

Parses whitespace or newline characters.

Parses whitespace or newline characters.

Attributes

Implicits

Implicits

final implicit def ClosingParserOps[T](parser: Parser[T]): ClosingParserOps[T]