tom

Types

pub type ParseError {
  Unexpected(got: String, expected: String)
  KeyAlreadyInUse(List(String))
}

Constructors

  • Unexpected(got: String, expected: String)
  • KeyAlreadyInUse(List(String))
pub type Toml {
  Int(Int)
  Float(Float)
  Bool(Bool)
  String(String)
  Date(String)
  Time(String)
  DateTime(String)
  Array(List(Toml))
  Table(Map(String, Toml))
}

Constructors

  • Int(Int)
  • Float(Float)
  • Bool(Bool)
  • String(String)
  • Date(String)
  • Time(String)
  • DateTime(String)
  • Array(List(Toml))
  • Table(Map(String, Toml))

Functions

pub fn parse(
  input: String,
) -> Result(Map(String, Toml), ParseError)
Search Document