Commit graph

912 commits

Author SHA1 Message Date
alisdair sullivan
06bb658e35 formatting fixes
cleanup line spacing
2013-09-20 22:02:14 -07:00
alisdair sullivan
292406d4fd Merge pull request #40 from olabackstrom/develop
Added typespecs on all exported functions, and fixed
2013-09-20 22:00:13 -07:00
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
alisdair sullivan
a39baa4efc Merge pull request #39 from JosephCrowe/develop
Fix type json_term/0 to match reality.
2013-09-02 17:48:20 -07: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
e57cc7cefc update .gitignore 2013-08-27 05:03:29 +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
4cf557a848 remove unesscessary line from README 2013-07-10 05:26:19 +00:00
alisdair sullivan
f8aaac9779 Merge pull request #38 from patrickgombert/develop
Add empty rebar.config so that Mix in Elixir projects can build this project as a dependency
2013-07-08 17:44:15 -07:00
Patrick Gombert
e9cdeda7c8 Add empty rebar.config so that Mix in Elixir projects can build this project as a dependency 2013-07-08 10:27:02 -05: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
41b6652e84 fix inaccurate example in README 2013-06-04 01:14:55 +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
453d4078e0 remove erlang style comments from LICENSE 2013-04-18 14:47:51 -07: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
679ff24ad2 more README tweaks 2013-03-29 19:25:19 -07:00
alisdair sullivan
f63d464afb juggle order of README intro 2013-03-29 19:23:45 -07:00
alisdair sullivan
d3a6c3fa90 hat tip to travis for integration testing 2013-03-29 19:20:32 -07:00
alisdair sullivan
6346f1ce88 reintroduce travis-ci build indicator 2013-03-29 19:18:20 -07:00
alisdair sullivan
5cab23bf61 rename jsx_bench.escript -> jsxbench 2013-03-29 19:12:14 -07:00
alisdair sullivan
495837441c change extension on markdown files
rename README.markdown -> README.md and CHANGES.markdown -> CHANGES.md
2013-03-29 19:10:53 -07:00
alisdair sullivan
663b62c90c simplify build process and configuration
remove largely irrelevent rebar config and provide alternate build
config for hipe compiler. update README to reflect changes
2013-03-29 19:06:19 -07:00
alisdair sullivan
95d392d12e remove bin dir, move script to base dir 2013-03-21 00:33:13 -07:00
alisdair sullivan
bc65b6ce27 who likes manually wrapping their lines? this guy ^ 2013-03-16 19:17:39 -07:00
alisdair sullivan
e851793664 minor content edits in README 2013-03-16 19:09:54 -07:00
alisdair sullivan
a3ab40aa88 add r16b to travis config 2013-03-12 22:13:48 -07:00
alisdair sullivan
f0f43c4aba v1.4.1 2013-03-11 19:10:08 -07:00
alisdair sullivan
6cfe5d6661 Merge pull request #30 from macintux/macintux-readme-fix
Invert the description of encode
2013-03-11 00:51:58 -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
John Daily
940b2453cf Invert the description of encode 2013-03-08 16:39:36 -05: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