Ola Backstrom
2943116c08
Added typespecs on all exported functions
...
Made sure all exported types do have a typespec is useful in build scenarios
where the erlang compile options
[warnings_as_errors, warn_missing_spec]
are used.
A few type errors found by Dialyzer are corrected too.
modified: src/jsx.erl
modified: src/jsx_config.erl
modified: src/jsx_config.hrl
modified: src/jsx_decoder.erl
modified: src/jsx_parser.erl
modified: src/jsx_to_json.erl
modified: src/jsx_to_term.erl
modified: src/jsx_verify.erl
2013-09-19 17:04:38 +02:00
Joseph Crowe
b623efe2e8
Fix type json_term/0 to match reality.
2013-09-02 08:54:10 +01:00
alisdair sullivan
e50af6e109
v1.4.3
2013-08-27 05:09:19 +00:00
alisdair sullivan
0bbe56c700
check for incomplete valid input before checking for malformed utf8
2013-08-27 05:02:37 +00:00
alisdair sullivan
af11b97879
undo `optimized' ordering of string parsing clauses in decoder
2013-08-27 04:09:10 +00:00
alisdair sullivan
fe2bd15184
rename 'sloppy_existing_atom' to 'attempt_atom'
2013-07-05 03:11:01 +00:00
alisdair sullivan
5dd62e27b5
Merge pull request #37 from macintux/friendlier-existing-atom
...
Add sloppy_existing_atom as a configuration option for labels
2013-07-04 20:05:51 -07:00
John Daily
1da0c567ba
Add sloppy_existing_atom as a configuration option for labels
2013-07-03 21:51:26 -04:00
alisdair sullivan
8487a2afc0
add proper error state to encoder object parsing
...
fixes #36
2013-06-24 11:32:03 -06:00
alisdair sullivan
352d6b21cb
v1.4.2
2013-06-04 01:19:39 +00:00
alisdair sullivan
3df6a1dab6
swap badarg' error for
function_clause' error in jsx:format/x
2013-06-04 01:14:11 +00:00
alisdair sullivan
15e7ec7130
add `{raw, <<"...">>}' handling to parser
...
this is an experimental feature to support the elixir wrapper for
jsx. interface may still change
2013-04-10 21:57:21 -07:00
alisdair sullivan
c84fe9345f
remove superfluous clause in encoder
2013-04-10 21:01:20 -07:00
alisdair sullivan
f0f43c4aba
v1.4.1
2013-03-11 19:10:08 -07:00
alisdair sullivan
0441224998
update license dates
2013-03-10 20:30:24 -07:00
alisdair sullivan
7f7d824116
fix edge case involving dirty_strings
2013-03-10 20:26:46 -07:00
alisdair sullivan
96ca5d4d63
coding style
2013-03-10 19:58:13 -07:00
alisdair sullivan
5e54bb3458
perf enhancements in string
2013-03-10 19:54:43 -07:00
alisdair sullivan
1747f28377
whitespace
2013-03-10 19:49:46 -07:00
alisdair sullivan
1bb7c46120
simplify handling of dirty strings
2013-03-10 19:49:06 -07:00
alisdair sullivan
a34b567ae4
add test for escaped strings and dirty strings interaction
2013-03-10 19:10:23 -07:00
alisdair sullivan
8cf3a9d144
breakout initialdecimal state to improve binary matching
2013-03-10 19:02:20 -07:00
alisdair sullivan
30108f5872
inline singlequote and doublequote and move them in match order
2013-03-10 18:15:55 -07:00
alisdair sullivan
56153d76da
Merge branch 'moarclean' into develop
2013-03-10 18:05:39 -07:00
alisdair sullivan
9475ac5dd9
fix binary optimization hurdles
2013-03-10 18:05:18 -07:00
alisdair sullivan
06a289c975
begin breaking out complex states to substates
2013-03-10 17:34:50 -07:00
alisdair sullivan
1190d6cf34
shuffle some string clauses for slightly better performance
2013-03-06 23:34:46 -08:00
alisdair sullivan
292c692191
fix bug that prevented escaping of quotes in dirty strings when preceeded by an even number of forward slashes
2013-03-06 23:15:19 -08:00
alisdair sullivan
58a9a5110f
update version number
2013-03-06 02:24:45 -08:00
alisdair sullivan
d8524ffe50
add test for dirty_strings with escaped quotes
2013-03-06 02:22:16 -08:00
alisdair sullivan
89d3cbbd36
rename jsx_utils jsx_config
2013-03-06 01:37:08 -08:00
alisdair sullivan
c4405e45a8
move clean_string to an include file and inline it in parser and encoder, move tests to jsx_test.hrl
2013-03-06 01:28:39 -08:00
alisdair sullivan
dd302eb7b4
extend resume api to parser
2013-03-05 21:10:33 -08:00
alisdair sullivan
07836d5d58
update types of jsx exported functions
2013-03-05 20:02:52 -08:00
alisdair sullivan
f8c749497f
updated comments in decoder
2013-03-05 19:40:57 -08:00
alisdair sullivan
4dcb929491
Merge branch 'fixed_comments' into develop
2013-03-05 19:21:10 -08:00
alisdair sullivan
1bb6822ac2
fix manual incomplete state in done
2013-03-05 19:20:57 -08:00
alisdair sullivan
1398a747de
collapse and simplify comment states and move comment errors to error site
2013-03-05 19:19:16 -08:00
alisdair sullivan
d04f231a0e
change incomplete from a macro to a proper function
2013-03-05 18:50:00 -08:00
alisdair sullivan
21bdf35ecb
add resume/6 function to jsx_decoder and move ?incomplete over to using it, still not ready to be exposed however
2013-03-05 18:21:34 -08:00
alisdair sullivan
b0512add5d
inline maybe_replace in decoder
2013-03-05 17:39:29 -08:00
alisdair sullivan
0b3b168cfc
style alterations
2013-03-05 17:37:24 -08:00
alisdair sullivan
a5bf353b21
test incremental parsing for jsx_parser and fix bug with naked values
2013-03-05 17:33:48 -08:00
alisdair sullivan
267977bf6e
replace <<16#ffff/utf8>> with <<239, 191, 191>> to allow certain tests to run on R14x
2013-03-05 16:36:49 -08:00
alisdair sullivan
df04f091f7
change returned config from record to list in error and incomplete handler
2013-03-04 23:48:34 -08:00
alisdair sullivan
2d7b690a91
add incomplete_handler and tests
2013-03-04 23:13:23 -08:00
alisdair sullivan
ca89432e7a
extend error_handler to parser
2013-03-04 22:13:52 -08:00
alisdair sullivan
d796dffa05
trap and process string encoding errors properly
2013-03-04 21:51:43 -08:00
alisdair sullivan
da9bf969e2
extend error_handler to encoding
2013-03-04 21:21:45 -08:00
alisdair sullivan
3162891832
change error_handler function signature to /3 from /6
2013-03-04 20:53:03 -08:00