Tomlex.Parser

Parses a list of tokenized TOML lines into the corresponding map.

Source

Summary

parse(lines)

Parses a list of tokenized TOML lines into the corresponding map

Types

line_type :: Tomlex.LineTypes

Functions

parse(lines)

Specs:

Parses a list of tokenized TOML lines into the corresponding map.

Examples

iex> Tomlex.Parser.parse([%Tomlex.LineTypes.Integer{key: "key", value: "23"}])
%{key: 23}

iex> Tomlex.Parser.parse([%Tomlex.LineTypes.Table{keys: [:x, :y, :z]}])
%{x: %{y: %{z: %{}}}}
Source