Skip to content
Browse files

Cosmetics

  • Loading branch information...
1 parent 655e9cc commit 7c00990320dbea601c220287ed966e8eccdce862 Shunichi Shinohara committed Jun 14, 2011
Showing with 6 additions and 24 deletions.
  1. +5 −5 README.rst
  2. +1 −19 src/eini.erl
View
10 README.rst
@@ -18,11 +18,11 @@ Input file::
Result form::
[
- {<<"title1">>,
- [{<<"key">>, <<"value">>},
- {<<"key2">>, <<"value2">>}]},
- {<<"title2">>,
- [{<<"key">>, <<"value">>}]}
+ {title1,
+ [{key, <<"value">>},
+ {key2, <<"value2">>}]},
+ {title2,
+ [{key, <<"value">>}]}
].
View
20 src/eini.erl
@@ -20,28 +20,10 @@
-author('shino@accense.com').
-export([parse/1]).
+
%% for debug use
-export([lex/1, parse_tokens/1]).
-%% TODO(shino): Add spec's
-
-%% Input:
-%%
-%% [title1]
-%% key = value
-%% key2 = value2
-%% [title2]
-%% key = value
-%%
-%% Result form:
-%%
-%% [
-%% {<<"title1">>, [{<<"key">>, <<"value">>},
-%% {<<"key2">>, <<"value2">>}}],
-%% {<<"title2">>, [{<<"key">>, <<"value">>}]}
-%% ].
-%%
-
-type sections() :: [section()].
-type section() :: {Title::atom(), [property()]}.
-type property() :: {Key::atom(), Value::binary()}.

0 comments on commit 7c00990

Please sign in to comment.
Something went wrong with that request. Please try again.