1> zucchini:parse_string("
1> [pumpkin]
1> variety = winter
1> name = Pumpkin ; mmm, pumpkin pie
1> fortune = \"Pumpkin carving = Awesome\"
1> weight = 3.3
1> amount = 2
1>
1> [yellow] ; It's just called Yellow!
1> variety = summer
1> name = Yellow Squash
1> weight = 0.3
1> amount = 3
1> ").
{ok,[{<<"pumpkin">>,[{<<"variety">>,<<"winter">>},
{<<"name">>,<<"Pumpkin">>},
{<<"fortune">>,<<"Pumpkin carving = Awesome">>},
{<<"weight">>,3.3},
{<<"amount">>,2}]},
{<<"yellow">>,[{<<"variety">>,<<"summer">>},
{<<"name">>,<<"Yellow Squash">>},
{<<"weight">>,0.3},
{<<"amount">>,3}]}]}
okeuday / zucchini Goto Github PK
View Code? Open in Web Editor NEWThis project forked from bragful/zucchini
An Erlang INI parser
Home Page: https://github.com/devinus/zucchini
License: The Unlicense