Commit graph

1008 commits

Author SHA1 Message Date
alisdair sullivan
15863c9904 remove bin_opt_info from compile flags 2013-03-02 15:49:25 -08:00
alisdair sullivan
69b7022e4e restore binary matching optimizations by manually constructing binaries in some error clauses 2013-03-02 15:48:26 -08:00
alisdair sullivan
0014d36114 inline seq functions and replace all stray incidences of unseq'd accumulation 2013-03-02 15:12:29 -08:00
alisdair sullivan
cfbe07ee85 use seq functions for accumulation throughout 2013-03-02 15:01:32 -08:00
alisdair sullivan
6df04635b8 change seq macros to functions 2013-03-02 14:56:32 -08:00
alisdair sullivan
8ee653a6cf rewrite number handling to both reduce states and reduce complexity 2013-03-02 14:50:40 -08:00
alisdair sullivan
1646955038 refactor handling of string escapes adding test cases to catch edge cases with replaced utf8 2013-02-27 19:41:22 -08:00
alisdair sullivan
f47e89e54f add tests for single quoted strings in objects 2013-02-26 23:16:53 -08:00
alisdair sullivan
21a8d00739 refactor partial escape sequence detection 2013-02-26 21:27:40 -08:00
alisdair sullivan
a08f660d55 check bad_utf tests for incremental decoding 2013-02-26 21:11:31 -08:00
alisdair sullivan
9bf0ca50e9 nestable /* */ style comments 2013-02-26 18:41:53 -08:00
alisdair sullivan
8a8af8af84 apply resume stuffing technique to comments for mystery project x (better resume api) 2013-02-26 18:31:44 -08:00
alisdair sullivan
4236edbf95 reduce incomplete literal states further 2013-02-25 23:18:06 -08:00
alisdair sullivan
1c030b6eeb explain some magic number nonsense 2013-02-25 21:45:13 -08:00
alisdair sullivan
9627ceefab reduce literal states 2013-02-25 21:38:07 -08:00
alisdair sullivan
e69d62f375 fix sort of a bug with escape sequences 2013-02-25 21:32:27 -08:00
alisdair sullivan
04f9fedeeb add test to ensure incremental decoding works 2013-02-25 20:23:31 -08:00
alisdair sullivan
7f94b452fa update comments to make control code handling slightly more clear 2013-02-25 17:37:49 -08:00
alisdair sullivan
01a2f06a91 vastly simplify string decoding, still needs tests for incompletes/errors 2013-02-25 17:24:06 -08:00
alisdair sullivan
a57435aad3 add additional string tests to jsx_utils 2013-02-24 20:20:25 -08:00
alisdair sullivan
71767e4d28 add test for bom in decoder 2013-02-24 20:10:48 -08:00
alisdair sullivan
2e5bb4fd3b merge new_tests branch 2013-02-24 03:07:57 -08:00
alisdair sullivan
35020643e7 revert encoder to prior version 2013-02-24 02:57:35 -08:00
alisdair sullivan
3a383b6cb0 revert parser to former version 2013-02-24 02:46:11 -08:00
alisdair sullivan
ef566d8cd3 remove cases from clean_string 2013-02-24 02:42:29 -08:00
alisdair sullivan
82b7044d42 unescape tests for decoder 2013-02-24 02:28:33 -08:00
alisdair sullivan
fd9856341f bad utf tests for decoder 2013-02-24 02:14:47 -08:00
alisdair sullivan
57e10dfca6 additional decoder tests 2013-02-24 01:59:54 -08:00
alisdair sullivan
00b593c6ea add escape tests to decoder 2013-02-24 01:50:17 -08:00
alisdair sullivan
7b31bef0f6 more comprehensive string checking 2013-02-24 01:32:17 -08:00
alisdair sullivan
5d40e559c9 import old string parsing and fix parsing of single quoted strings 2013-02-24 01:07:16 -08:00
alisdair sullivan
257d7ee387 make tests more consistent in decoder 2013-02-24 00:54:16 -08:00
alisdair sullivan
6c51597f65 slightly generalize decoder for tests 2013-02-23 22:49:46 -08:00
alisdair sullivan
230be8ebc2 import better tests 2013-02-23 22:36:35 -08:00
alisdair sullivan
74a688c827 reformat clean_string tests 2013-02-23 22:21:35 -08:00
alisdair sullivan
9244845c37 fix order of comments test 2013-02-21 00:13:07 -08:00
alisdair sullivan
6b6f713f96 add some tests for single quoted strings 2013-02-21 00:05:12 -08:00
alisdair sullivan
488132aecb basic strings now FAST in decoder, escapes and bad utf nyi 2013-02-20 23:57:06 -08:00
alisdair sullivan
de76cf48a7 streamline string parsing implementation in encoders 2013-02-20 21:29:12 -08:00
alisdair sullivan
ceb7ce6586 shiny and new string cleaning for encoder and parser 2013-02-19 22:51:54 -08:00
alisdair sullivan
fbd90e4df7 tighten input/output of maybe_escape 2013-02-19 15:09:28 -08:00
alisdair sullivan
ff170d5f4e add maybe_escape/2 function for future use 2013-02-19 01:00:35 -08:00
alisdair sullivan
0392be060d add tests for strings that need unescaping in decoding 2013-02-19 00:26:53 -08:00
alisdair sullivan
4d60fa2a08 add special number tests for floats and integers that have different representation in erlang and json 2013-02-13 21:54:09 -08:00
alisdair sullivan
cea0cb55c7 add compound object test 2013-02-13 21:45:56 -08:00
alisdair sullivan
9e01e3a704 reduce test cases to saner set 2013-02-13 19:13:50 -08:00
alisdair sullivan
5c96222cbf add additional comment tests 2013-02-12 12:06:45 -08:00
alisdair sullivan
ff6a83598b replace all incidences of opts with config 2013-02-12 11:54:42 -08:00
alisdair sullivan
2f47fdd642 simplify exportation of tests, add strings to test suite 2013-02-11 19:06:44 -08:00
alisdair sullivan
eaf19cde9c extend tests to decoder, encoder and parser 2013-02-11 18:22:45 -08:00