removed example eep0018 decoder/encoder, broke it off into it's own project, also fixed a weird type spec error i'd overlooked

This commit is contained in:
alisdair sullivan 2010-06-28 18:14:14 -07:00
parent 6fe6685f08
commit dd86f9a041
3 changed files with 2 additions and 182 deletions

View file

@ -25,7 +25,7 @@
-author("alisdairsullivan@yahoo.ca").
%% the core parser api
-export([parser/0, parser/1, opts/0]).
-export([parser/0, parser/1]).
%% types for function specifications
-include("jsx_types.hrl").
@ -38,9 +38,6 @@
encoding = auto
}).
opts() ->
io:format("~p~n", [#opts{}]).
-spec parser() -> jsx_parser().
-spec parser(Opts::jsx_opts()) -> jsx_parser().

View file

@ -31,7 +31,7 @@
-type jsx_opt() :: {comments, true | false}
| {escaped_unicode, ascii | codepoint | none}
| {multi_term, true | false | whitespace | binary()}
| {encoding, auto | utf8 | utf16 | utf16le | utf32 | utf32le }.
| {encoding, auto | utf8 | utf16 | {utf16, little} | utf32 | {utf32, little} }.
%% events emitted by the parser and component types
@ -57,7 +57,6 @@
-type jsx_parser() :: fun((json()) -> jsx_parser_result()).
-type jsx_parser_result() :: {event, jsx_event(), fun(() -> jsx_parser_result())}
| {incomplete, jsx_parser(), fun(() -> jsx_parser_result())}
| {error, badjson}.