substantial refactoring of api and decoder internals
This commit is contained in:
parent
c3bdc3b681
commit
cff4d17561
9 changed files with 304 additions and 718 deletions
|
@ -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}.
|
Loading…
Add table
Add a link
Reference in a new issue