pmderodat / ada-toml

TOML parser for Ada
Other
31 stars 5 forks source link

Arrays and arrays of arrays #7

Closed Fabien-Chouteau closed 4 years ago

Fabien-Chouteau commented 4 years ago

I noticed some problems with arrays:

echo 'a = ["a", "b"]' | obj-checkers/ada_toml_decode -> OK

echo 'a = [0, 1]' | obj-checkers/ada_toml_decode -> 1:6: invalid token

echo 'a = [[0], [1]]' | obj-checkers/ada_toml_decode -> 1:7: invalid token

echo 'a = [["a"], ["b"]]' | obj-checkers/ada_toml_decode -> OK

pmderodat commented 4 years ago

Thank you very much for reporting this parser bug! It should now be fixed on the master branch. :-)

mgrojo commented 3 years ago

Could this be updated in the Alire catalog, which is still version 0.1.0? I think I'm stumbled upon it, because it says "invalid token" when there are zeros in an array. My code is here.

Thanks for your work!

Fabien-Chouteau commented 3 years ago

@mgrojo v0.2 is now available in Alire https://github.com/alire-project/alire-index/pull/315

mgrojo commented 3 years ago

Thanks!

pmderodat commented 3 years ago

Thanks Fabien for taking care of this while I’m mostly unavailable! ;-)