kowainik / tomland

🏝 Bidirectional TOML serialization
https://kowainik.github.io/posts/2019-01-14-tomland
Mozilla Public License 2.0
121 stars 39 forks source link

Arrays of Arrays of Tables #385

Open ear7h opened 3 years ago

ear7h commented 3 years ago

Trying to parse the following TOML:

x = [ [ {a = 1} ] ]

Results in:

  |
1 | x = [ [ {a = 1} ] ]
  |         ^
unexpected '{'
expecting ']', array, bool, datetime, double, integer, or text

Looking at the various types it seems like this would would be nontrivial to support, since the Value type cannot have tables. This might be something to consider wrt #264 and #373