{ H{ { "a" { } } } } [ "a=[]" toml> ] unit-test
{ H{ { "a" { 1 } } } } [ "a=[1]" toml> ] unit-test
{ H{ { "a" { 1 2 3 } } } } [ "a=[1,2,3]" toml> ] unit-test
+{ H{ { "a" { 1 2 3 } } } } [ "a=[,1,,,,2,,3,,]" toml> ] unit-test
+{ H{ { "a" { 1 2 3 } } } } [ "a=[ # this\n,1,, # is\n,,2, #a\n,3,, # comment \n]" toml> ] unit-test
! unreleased
: array-value-parser ( -- parser )
ws-comment-newline hide
- value-parser
+ value-parser optional
ws-comment-newline hide 3seq [ first ] action ;
: array-parser ( -- parser )
[
"[" token hide ,
- array-value-parser separator list-of optional ,
- separator optional hide ,
- ws-comment-newline hide ,
+ array-value-parser separator list-of [ sift ] action ,
"]" token hide ,
] seq* [ first { } like ] action ;