yameru v0.1.0 Yameru
Yameru library for Elixir
Value
This parser map any value (scalar, block or tuple) to {scalar, block}
form.
When either one isn’t exist, just set nil
.
Example
iex> input = """
...> key 1: scalar
...> key 2:
...> - block
...> key 3: tuple /
...> scalar and block
...> """
iex> {:ok, result} = Yameru.parse(input)
iex> result
%{
"key 1" => {"scalar", nil},
"key 2" => {nil, [{"block", nil}]},
"key 3" => {"tuple", "scalar and block"}
}
Link to this section Summary
Link to this section Types
Link to this section Functions
Loads and parses given name file.
Link to this function
parse(string)
Parses given string.