Commit graph

21 commits

Author SHA1 Message Date
alisdair sullivan
813058e2fb changed end_of_json to end_json 2010-06-10 20:32:15 -07:00
alisdair sullivan
5460796e33 changed end of stream token 2010-06-07 16:10:29 -07:00
alisdair sullivan
ef952ceee8 converted jsx_test to etap, fixed resulting bugs with autodetection 2010-06-01 23:33:56 -07:00
alisdair sullivan
7c2c0596c7 fixed swap of two variables 2010-06-01 20:57:58 -07:00
alisdair sullivan
8faa7089f8 updated tests, which are shortly to be rewritten completely 2010-06-01 19:43:21 -07:00
alisdair sullivan
c25ad16f13 possible new api 2010-05-31 21:00:20 -07:00
alisdair sullivan
60943446c0 now ethically opposed to special casing forced termination. users can just append whitespace 2010-05-31 21:00:20 -07:00
alisdair sullivan
7e6124fc88 explicit termination is no longer an option. the decoder now terminates whenever it reaches the end of an unambiguous json term and returns a function that accepts either more input to continue decoding or the empty binary to force termination.
examples are currently broken, but the test suite has been updated to reflect the new api.
2010-05-31 21:00:16 -07:00
alisdair sullivan
7d5ccfd86f removed the default callback handler, replaced it with an anonymous function. also added a shortcut for a decoder with the default handler but custom opts 2010-05-31 21:00:16 -07:00
alisdair sullivan
7e6b71cdf4 fixed tests, which i broke somehow 2010-05-31 21:00:16 -07:00
alisdair sullivan
86333b8e7f did you know the module definition must be the first non-whitespace, non-comment line in a module? i did not 2010-05-31 21:00:16 -07:00
alisdair sullivan
feaef7380c changed api of jsx_parser 2010-05-31 21:00:06 -07:00
alisdair sullivan
8e05d0c1a6 added license/copywrite to all code 2010-05-31 21:00:06 -07:00
alisdair sullivan
550f628564 updated test suite to match new decoder 2010-05-31 21:00:06 -07:00
alisdair sullivan
5d014bbef8 minor api change and refactoring of pretty_printer.erl 2010-05-31 21:00:05 -07:00
alisdair sullivan
bdc173a6e4 changed the end of input character to a unicode non character 2010-05-31 21:00:05 -07:00
alisdair sullivan
079aa7ccf6 fixed a nasty performance regression caused by a misordered clause 2010-05-31 21:00:05 -07:00
alisdair sullivan
6515f9981d added option for explicit termination requirement when parsing streams 2010-05-31 21:00:05 -07:00
alisdair sullivan
ab67abd01a rewrote test harness to use eunit and make it easier to add future tests 2010-05-31 21:00:04 -07:00
alisdair sullivan
f5f1f588d4 wrote a primitive test harness, need to convert to etap tho 2010-05-31 21:00:04 -07:00
alisdair sullivan
1753512b10 added first (primitive) tests, fixed a few bugs in decoder 2010-05-31 21:00:04 -07:00