Commit graph

37 commits

Author SHA1 Message Date
alisdair sullivan
1c5f54574c reduced redundancy in callback handling, also renamed callback function to the more clear fold 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
80112bce4a and the license 2010-05-31 21:00:16 -07:00
alisdair sullivan
297d90907b unedited, bad, terrible readme, to be fixed later 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
c16351ad12 cleaned up prettifier, now catches exceptions 2010-05-31 21:00:16 -07:00
alisdair sullivan
4fdd939327 whitespace 2010-05-31 21:00:15 -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
537ad61223 updated examples to match new decoder api 2010-05-31 21:00:06 -07:00
alisdair sullivan
41292d4077 comments on tail_clean 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
1e476f1797 changed handling of explicit termination to be more efficient 2010-05-31 21:00:06 -07:00
alisdair sullivan
a87a59fbff renamed pretty_printer and added a very basic parser to examples 2010-05-31 21:00:06 -07:00
alisdair sullivan
e9ddde9fb7 removed redundant initialization function, pushed to api level 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
6662a1ee98 wrote a pretty printer as an example 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
d42acf4411 fixed a nasty performance regression caused by a misordered clause 2010-05-31 21:00:05 -07:00
alisdair sullivan
fca157c116 almost complete coverage of decoder achieved via test cases, fixed one outstanding comments bug 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
3b3e33c6e3 fixes revealed by cover 2010-05-31 21:00:05 -07:00
alisdair sullivan
89f26ed1c9 autodetection actually works now 2010-05-31 21:00:04 -07:00
alisdair sullivan
d777717062 decoders for utf16 and utf32, both big and little endian 2010-05-31 21:00:04 -07:00
alisdair sullivan
7ffb26e7c2 fixed dumb illegal atom mistake 2010-05-31 21:00:04 -07:00
alisdair sullivan
e3f5637da1 should now be possible to autodirect utf encoding 2010-05-31 21:00:04 -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
alisdair sullivan
baf8561780 moved the opts record back to private header file 2010-05-31 21:00:04 -07:00
alisdair sullivan
b38c9878c6 fixed a bunch of places where i missed a bug with comments 2010-05-31 21:00:04 -07:00
alisdair sullivan
a932422d17 public interface begun 2010-05-31 21:00:04 -07:00
alisdair sullivan
7468313ffc moved opts record def from jsx_common.hrl to a public jsx.hrl header file
actually included the new header, oops
2010-05-31 21:00:00 -07:00
alisdair sullivan
5c36ec18d7 added naked (unwrapped) values option and rewrote the handling of comments to reduce line count and be slightly clearer 2010-05-31 20:59:49 -07:00
alisdair sullivan
121fe34474 first working version 2010-05-18 12:16:25 -07:00