substantial refactoring of api and decoder internals

This commit is contained in:
alisdair sullivan 2010-06-20 17:00:08 -07:00
parent c3bdc3b681
commit cff4d17561
9 changed files with 304 additions and 718 deletions

View file

@ -55,12 +55,9 @@
%% this probably doesn't work properly
-type jsx_parser() :: fun((json()) -> {[jsx_event(),...], jsx_parser()}
| {incomplete, jsx_parser()}
| {error, badjson}
).
-type jsx_parser() :: fun((json()) -> jsx_parser_result()).
-type parser_result() :: {jsx_event(), fun(() -> parser_result())}
-type jsx_parser_result() :: {event, jsx_event(), fun(() -> jsx_parser_result())}
| {incomplete, jsx_parser()}
| {error, badjson}.