HoconParser

zio.blocks.config.hocon.HoconParser
object HoconParser

A hand-written, zero-dependency HOCON parser suitable for JVM and Scala.js.

Two-pass approach:

  1. Parse text into a raw AST that may contain unresolved substitutions.
  2. Resolve substitutions in a second pass, detecting circular references.

Attributes

Source
HoconParser.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def parse(input: String, includeCallback: String => Option[String] = ...): Either[HoconError, HoconValue]

Parse a HOCON string and return the resolved AST.

Parse a HOCON string and return the resolved AST.

Value parameters

includeCallback

Optional callback for include "file" directives. Returns the contents of the included resource as a string. Default: no includes supported.

Attributes

Source
HoconParser.scala