Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing array of tables. #6

Open
nubunto opened this issue Mar 24, 2016 · 0 comments
Open

Parsing array of tables. #6

nubunto opened this issue Mar 24, 2016 · 0 comments

Comments

@nubunto
Copy link

nubunto commented Mar 24, 2016

Hello!

First of all, thanks for all the contributors for this project.
Now let me bug you guys a little bit.

Does etoml supports parsing arrays of tables?
I have the following TOML:

# this is a toml file

id = "this_is_my_test"
directory = "test_scripts/"
results = "results/"



[[step]]
    info = "foo"
    [step.web]
        script = "simuterm.js"
        params = ["foo", "bar", "baz"]

[[step]]
    info = "bar"
    [step.web]
       script = "cat.js"
       params = ["can", "haz", "cheese"]

And I tried parsing it with etoml (I'm using it in a Elixir project) like:

iex> File.read!(~S(path/to/file)) |> :etoml.parse

and it gave me {:error, {:invalid_key, 9}}.

Well, 9 points to the first line of the toml where a array of tables is specified, so I'm guessing... parsing array of tables is not supported?
Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant