]> gitweb.factorcode.org Git - factor.git/commit
Add a test suite for json.reader. Fix bugs in json.reader: failure to parse when...
authorJoe Groff <arcata@gmail.com>
Sat, 31 May 2008 05:46:15 +0000 (22:46 -0700)
committerJoe Groff <arcata@gmail.com>
Sat, 31 May 2008 15:00:43 +0000 (08:00 -0700)
commitb1bc993799f7b46a69b35fc9e77e6cb7c93a8f5e
tree4fb16d54477483c6e738b686ff3546323551b574
parent114fb0d83e6e9e3449e3eca929366c60140b9b65
Add a test suite for json.reader. Fix bugs in json.reader: failure to parse when more than one character of whitespace between tokens, failure to parse escape codes in strings, misinterpretation of "e+02" as a negative exponent, failure to handle leading whitespace, and failure to handle "+" as the first character of a number. Change json.reader to parse JSON booleans into Factor t and f, and to parse JSON null into the json-null symbol.
extra/json/reader/reader-tests.factor [new file with mode: 0644]
extra/json/reader/reader.factor