anchor.diff:  % <<"[[a]] b = 5 [[a]] b = \"asdf\"">>
   
   
  -% [{<<"a">>, [{<<"b">>, 5},
  -%             {<<"s">>, [{<<"x">>, <<"lalal">>},
  -%                        {<<"c">>, <<"ahhh">>}]}]},
  +% [{<<"a">>, [{<<"b">>, 3},
  +%             {<<"v">>, [{<<"v1">>, [{<<"v1v">>, <<"fycj">>}]},
  +%                        {<<"v2">>, <<"v2v">>}]}]},
   %  {<<"a">>, [{<<"b">>, <<"asdf">>},
   %             {<<"s">>, [{<<"x">>, 5},
   %                        {<<"c">>, <<"hehe">>}]}]}]
  -% <<"[[a]] b = 5 [a.s] x = \"lalal\" c = \"ahhh\" [[a]] b = \"asdf\" [a.s] x = 5 c = \"hehe\" ">>+% <<"[[a]] b = 3 [a.v] v2 = \"v2v\" [a.v.v1] v1v = \"fycj\" [[a]] b = \"asdf\" [a.s] x = 5 c = \"hehe\"">>
  +
  +
  +
  +
  +
  +
  +% <<"[[a]] x = 1 [a.v] y = 2 [a.v.f] z =3">>
  +% <<"[[a]] x = 1 [a.b] y = 1 [a.f] z = 1 [a.b.c] m =2">>
positive.code: %% Internal functions
  %% ===================================================================
  
  % tuple_2_binary({Name, Attrs}) ->
  %     tuple_to_toml()
  
  % tuple_to_toml({Name, Attrs}) ->
  %     tuple_to_toml(none, {Name, Attrs}).
  
  % tuple_to_toml(none, {Name, Attrs}) ->
  %     tuple_to_toml(Name, Attrs, [], <<"[", Name/binary, "]">>);
  % tuple_to_toml(FatherName, {Name, Attrs}) ->
  %     tuple_to_toml(Name, Attrs, [], <<"[", FatherName/binary, ".", Name/binary, "]">>).
  
  % tuple_to_toml(Name, [{Key, Value}|T], ChildBinList, Result) when is_list(Value) ->
  %     {ok, ChildBin} = tuple_to_toml(Name, {Key, Value}),
  %     tuple_to_toml(Name, T, [ChildBin|ChildBinList], Result);
  % tuple_to_toml(Name, [H|T], ChildBinList, Result) ->
  %     {ok, Bin} = key_value_to_toml(H),
  %     NewResult = <<Result/binary, " ", Bin/binary>>,
  %     tuple_to_toml(Name, T, ChildBinList, NewResult);
  % tuple_to_toml(Name, [], [H|T], Result) ->
  %     NewResult = <<Result/binary, " ", H/binary>>,
  %     tuple_to_toml(Name, [], T, NewResult);
  % tuple_to_toml(_, _, _, Result) ->
  %     {ok, Result}.
  
  
  
  % { \"fruit\": [
  %     {
  %       \"name\": \"apple\",
  %       \"physical\": {
  %         \"color\": \"red\",
  %         \"shape\": \"round\"
  %       },
  %       \"variety\": [
  %         { \"name\": \"red delicious\" },
  %         { \"name\": \"granny smith\" }
  %       ]
  %     },
  %     {
  %       \"name\": \"banana\",
  %       \"variety\": [
  %         { \"name\": \"plantain\" }
  %       ]
  %     }
  %   ]
  % }
  
  
  % [{<<"fruit">>,
  %   [[{<<"name">>,<<"apple">>},
  %     {<<"physical">>,
  %      [{<<"color">>,<<"red">>},{<<"shape">>,<<"round">>}]},
  %     {<<"variety">>,
  %      [[{<<"name">>,<<"red delicious">>}],
  %       [{<<"name">>,<<"granny smith">>}]]}],
  %    [{<<"name">>,<<"banana">>},
  %     {<<"variety">>,[[{<<"name">>,<<"plantain">>}]]}]]}]
  
  
  
  
  
  % {<<"a">>, [{<<"b">>, 3}]}
  % <<"[[a]] b = 3">>
  
  
  % [{<<"a">>, [{<<"b">>, 5}]},
  
negative.code: -module (toml).
  
  -export ([term_2_binary/1, binary_2_term/1]).
  -compile (export_all).
  
  
  
  