pliosoft / toml-parse

Haskell library for reading TOML and easily querying it
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Array tables #8

Open clord opened 8 years ago

clord commented 8 years ago

Toml has array sections:

[[a]]
x = 1
[[a]]
x = 2

which parses to the same thing as:

a = [{"x": 1}, {"x": 2}]

(confirm)

I don't want to tokenize runs of two brackets separately because they occur with their normal meaning elsewhere, e.g., nested array literals: x = [[1,2,3], [4,5,6]] so they will have to be parsed.

pbrisbin commented 7 years ago

Is this fixed by #18? The 1 toml-test failure left after that PR merges doesn't appear related to this class of input.