new interruptable api, examples broken for the hojillionth time
This commit is contained in:
parent
e690d7723a
commit
4286892861
3 changed files with 186 additions and 199 deletions
|
@ -44,7 +44,6 @@
|
|||
| start_array
|
||||
| end_array
|
||||
| end_json
|
||||
| reset
|
||||
| {key, unicode_string()}
|
||||
| {string, unicode_string()}
|
||||
| {integer, unicode_string()}
|
||||
|
@ -59,4 +58,9 @@
|
|||
-type jsx_parser() :: fun((json()) -> {[jsx_event(),...], jsx_parser()}
|
||||
| {incomplete, jsx_parser()}
|
||||
| {error, badjson}
|
||||
).
|
||||
).
|
||||
|
||||
|
||||
-type parser_result() :: {jsx_event(), fun(() -> parser_result())}
|
||||
| {incomplete, jsx_parser()}
|
||||
| {error, badjson}.
|
Loading…
Add table
Add a link
Reference in a new issue