Conform.Parse

This module is responsible for parsing *.conf files

Summary

file!(path)

Parse the file at the provided path as a .conf file, returning either the parsed terms, or raising a ParseError if parsing fails

file(path)

Parse the file at the provided path as a .conf file. Returns {:ok, terms} | {:error, reason}

parse!(binary)

Parse the provided binary as a .conf file, returning either the parsed terms, or raising a ParseError if parsing fails

parse(binary)

Parse the provided binary as a .conf file. Returns {:ok, terms} | {:error, reason}

Functions

file(path)

Specs:

  • file(binary) :: {:ok, term} | {:error, term}

Parse the file at the provided path as a .conf file. Returns {:ok, terms} | {:error, reason}

file!(path)

Specs:

  • file!(binary) :: term | no_return

Parse the file at the provided path as a .conf file, returning either the parsed terms, or raising a ParseError if parsing fails.

parse(binary)

Specs:

  • parse(binary) :: {:ok, term} | {:error, term}

Parse the provided binary as a .conf file. Returns {:ok, terms} | {:error, reason}

parse!(binary)

Specs:

  • parse!(binary) :: term | no_return

Parse the provided binary as a .conf file, returning either the parsed terms, or raising a ParseError if parsing fails.