Commit graph

153 commits

Author SHA1 Message Date
alisdair sullivan
2ee96eb356 tests updated to reflect parser changes, eep0018 and format module still contain failing tests 2011-07-22 21:36:14 -07:00
alisdair sullivan
3bf5506292 unifies options to encoder/decoder to allow abstraction over various different built in iterators 2011-07-21 06:14:48 -07:00
alisdair sullivan
e7025efe50 is_json inputs now line up with format inputs 2011-07-17 20:55:54 -07:00
alisdair sullivan
9cee07212f add encoder/0 to jsx.erl 2011-07-17 20:55:54 -07:00
alisdair sullivan
746d8e469c renames jsx_opts to jsx_decoder_opts 2011-07-17 20:55:54 -07:00
alisdair sullivan
7079a6ead7 whitespace fixes for contributed patch 2011-07-04 21:07:50 -07:00
amtal
b9d10181ab switched to error/2 from error/1 in exported funcs
Passing a list of arguments in the second parameter, makes them
show up in the stack trace in place of the function arity number.

For referentially transparent functions (which foo_to_bar tend to
be) failures can then be reproduced from just the stack trace!

If using error/1, you must rely on some higher layer to add enough
info to reproduce the crash.
2011-06-23 14:41:51 -07:00
alisdair sullivan
e4cbe15fa7 fixes broken build from premature push, oops 2011-05-04 01:00:29 -07:00
alisdair sullivan
b2d923cbcb api change, parser/0,1 deprecated, replaced with decoder/0,1 2011-04-26 23:40:12 -07:00
alisdair sullivan
6481bae328 removes useless eventify function 2011-04-16 22:25:02 -07:00
alisdair sullivan
e22ec34000 moves encoding detection to jsx_utils 2011-04-16 22:18:59 -07:00
alisdair sullivan
216a71895a removes all edoc machinery 2011-03-22 19:02:28 -07:00
alisdair sullivan
a6e7490a2b options are now proplist style, so [comments] implies [{comments, true}] et cetera 2011-03-07 14:02:51 -08:00
alisdair sullivan
7e8e5a9a48 removed test for removed function 2011-02-28 12:29:28 -08:00
alisdair sullivan
8ed4b1a405 new test for read_file/1, /2 2011-02-21 19:47:20 -08:00
alisdair sullivan
dd46f4394b commented rethrown exceptions 2010-09-28 12:52:58 -07:00
alisdair sullivan
a4d48fd8d9 backed out ill conceived change to options 2010-09-27 14:52:16 -07:00
alisdair sullivan
5bcdca948a wrapped calls to jsx_eep0018 so that badarg exceptions are raised in the public api, rather than in internal modules 2010-09-27 14:27:39 -07:00
alisdair sullivan
a99644a926 modified error return value from {error, badjson} to {error, {badjson, Bin}} where Bin is the input from the point of the error 2010-09-27 14:07:36 -07:00
alisdair sullivan
d67f830def incremented version number and added CHANGES 2010-09-22 23:12:54 -07:00
alisdair sullivan
fa4e2f533b moved contents of jsx_test to jsx module to adhere to law of conversation of module names 2010-09-21 08:05:08 -07:00
alisdair sullivan
aa3385a31d added type specs to all publically exported functions 2010-09-15 21:30:25 -07:00
alisdair sullivan
cf38a9a466 fixed typo in edoc comments 2010-08-26 06:36:10 -07:00
alisdair sullivan
a86dec09ef major whitespace updates to get line lengths down to < 80 characters whenever possible (a few tests ignore this). srx/jsx_test.erl was not touched because it's shortly to be replaced 2010-08-25 23:17:10 -07:00
alisdair sullivan
ac5e0e4fe3 removed author tag from modules 2010-08-25 21:40:16 -07:00
alisdair sullivan
203ec6e5e0 removed types and specs, since they are not supported in the default erlang's some linux distros supply 2010-08-25 21:28:13 -07:00
alisdair sullivan
4d8246dcdc updated edoc 2010-08-23 13:42:22 -07:00
alisdair sullivan
1f1cb04cfd moved option parsing into the decoder module,trying to get as much implementation outside the interface module as possible 2010-08-23 13:36:53 -07:00
alisdair sullivan
24af6c36cb minor updates to edocs 2010-08-20 18:25:06 -07:00
alisdair sullivan
6ff74e6d59 edoc documentation added 2010-08-19 23:30:22 -07:00
alisdair sullivan
c098b06e88 general cleanup of modules, moved most types, specs, defines and records to header files and did some minor reformatting to adhere to style guidelines 2010-08-19 18:22:34 -07:00
alisdair sullivan
485c4d74ea fixed a misleading comment about eventify 2010-08-12 20:55:07 -07:00
alisdair sullivan
45b9bc1dd0 moved function that fakes the jsx parser iterator to jsx so any client program can take advantage of it 2010-08-12 20:08:39 -07:00
alisdair sullivan
b016087ceb more type fixes 2010-08-11 23:11:12 -07:00
alisdair sullivan
6120455a22 updated modules to use the new eep0018() type 2010-08-11 22:33:50 -07:00
alisdair sullivan
d73ce1eae8 removed superfluous tests 2010-08-10 12:31:05 -07:00
alisdair sullivan
1617c878f5 abandoning branch for now, work is in intermediate state 2010-08-10 11:04:14 -07:00
alisdair sullivan
83243c22f4 commit to allow merge of master 2010-08-06 17:59:44 -07:00
alisdair sullivan
330a1916b8 unified eep0018 encoder and decoders into single module 2010-08-06 17:58:10 -07:00
alisdair sullivan
ca1d605e95 intermediate commit on way to eunit 2010-08-06 17:55:19 -07:00
alisdair sullivan
57c85a4185 fixed compiler warning for unused variable in jsx:load_tests(Path) 2010-08-06 06:19:22 -07:00
alisdair sullivan
54754c4ffb tests and such 2010-08-05 21:05:08 -07:00
alisdair sullivan
3ea3eba7b3 first attempt at integrating json lib with jsx lib 2010-08-03 20:29:49 -07:00
alisdair sullivan
4c378791f9 first step moving json project into jsx tree, compiles, but not tested 2010-08-03 14:16:56 -07:00
alisdair sullivan
640156033e whitespace changes 2010-08-01 20:05:28 -07:00
alisdair sullivan
42a18cfcd9 major change to api, {incomplete, Next, Force} replaced by {incomplete, Next/1} where Next/1 accepts 'end_stream' to replicate what Force/1 used to do 2010-07-27 00:05:45 -07:00
alisdair sullivan
a83a0a4ebc reworked build system to use rebar, tests still use external script, moved jsx_decoder.erl template to /priv from /src 2010-07-26 18:04:23 -07:00
alisdair sullivan
dd86f9a041 removed example eep0018 decoder/encoder, broke it off into it's own project, also fixed a weird type spec error i'd overlooked 2010-06-28 18:14:14 -07:00
alisdair sullivan
11e0adc05e opts now uses a record definition, rather than a handwritten tuple 2010-06-26 07:27:38 -07:00
alisdair sullivan
0a96a059a1 added test for multi_terms 2010-06-24 15:55:08 -07:00