new interruptable api, examples broken for the hojillionth time

This commit is contained in:
alisdair sullivan 2010-06-11 21:57:42 -07:00
parent e690d7723a
commit 4286892861
3 changed files with 186 additions and 199 deletions

View file

@ -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}.