summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2012-09-17Better support for appending strings in JV.Stephen Dolan
2012-09-16Bind builtin functions in a slightly less ugly way.Stephen Dolan
2012-09-16Builtin function 'length', for arrays/objects/strings.Stephen Dolan
2012-09-16Hrm. Update operators (//=, +=, etc.) aren't very well thought out.Stephen Dolan
In complex cases, their behaviour is kinda weird. Here's a failing test for what I think they should do.
2012-09-11Add update operators (+=, -=, *=, /= and //=)Stephen Dolan
2012-09-11Make .[] capable of iteration over objects as well as arrays.Stephen Dolan
Also change an assert to a proper error message if it's given something silly like a number.
2012-09-11Pretty-printing of JSON values.Stephen Dolan
2012-09-11JSON stream parser.Stephen Dolan
Allow multiple values on input as concatenated JSON objects, possibly separated by whitespace.
2012-09-11More error handling - locations of refs to undefined symbols.Stephen Dolan
2012-09-11Better error handling and messages for invalid index/assign operations.Stephen Dolan
2012-09-11More error handling in the parser.Stephen Dolan
Add a special case in the lexer to detect unterminated strings. Add some error recovery in the parser for more copious error spam.
2012-09-11Proper error messages from lexer errors (e.g. bad characters).Stephen Dolan
2012-09-11Much, much better error reporting from the parser.Stephen Dolan
Getting proper locations through flex/bison was more effort than was advertised.
2012-09-10'==' operator, tests for equality and operator precedence.Stephen Dolan
2012-09-10String -> number conversions with "tonumber".Stephen Dolan
2012-09-10Multiplication and division operators.Stephen Dolan
It is an error to use these on anything but numbers. Maybe later implementing python/ruby-style ("a" * 100) might be handy.
2012-09-10Subtraction - as expected for numbers, ruby-style set diff for arrays.Stephen Dolan
2012-09-10String concatenation.Stephen Dolan
2012-09-10Sensible error messages when a silly addition is performed.Stephen Dolan
Fix a test to no longer perform an invalid addition.
2012-09-10jv_string_fmt (create printf-formatted JSON strings)Stephen Dolan
2012-09-10Plug a memory leak in jv_object_mergeStephen Dolan
2012-09-10Make jv_invalid() first-class values capable of holding an error.Stephen Dolan
2012-09-10When comparing two objects for equality, we don't need to recurseStephen Dolan
into e.g. array elements if the two objects are the same array.
2012-09-10Make a main program that doesn't spam debugging info.Stephen Dolan
2012-09-09Make the '+' operator merge objects.Stephen Dolan
2012-09-09Bugfix for expanding objects.Stephen Dolan
2012-09-09Print bad number values (Inf,NaN) "correctly".Stephen Dolan
2012-09-06null and string literals now exist, so add testsStephen Dolan
2012-09-06UTF8 coding utilities and unicode escaping in jv_dump()'d strings.Stephen Dolan
Beyond the Basic Multilingual Plane, dead Cthulhu waits dreaming.
2012-09-04Make the test harness not segfault when a test fails (!)Stephen Dolan
2012-09-04Add a Boolean "not" operator.Stephen Dolan
Not wholly convinced this is a good idea, maybe "not" should be a builtin function instead? 'not (.a == .b)' vs. '.a == .b | not'
2012-09-04Short-circuiting Boolean "and" and "or" operators.Stephen Dolan
2012-09-04Move some unicode handling stuff to a separate file.Stephen Dolan
2012-09-04Add "elif" to if-then-else constructs.Stephen Dolan
2012-09-04if-then-else and defined-or operatorsStephen Dolan
2012-09-03Fix some confusion between "null" and "invalid".Stephen Dolan
2012-09-03Fix a memory leak in JV and add more testsStephen Dolan
2012-09-03Perl-style autovivification.Stephen Dolan
.foo.bar = 1 will cause objects to be created if they don't exist.
2012-09-03squash a debug printfStephen Dolan
2012-09-03JV_KIND_INVALID values to represent failed lookups, etc + various tests.Stephen Dolan
2012-09-03Support "null" in JQ programsStephen Dolan
2012-09-03Make assignment work again: = and |= operators.Stephen Dolan
2012-09-03Disallow a + before numbers (makes parsing easier, agrees with JSON)Stephen Dolan
2012-09-03Modify number formatting so that 1e-3 renders as 0.001, not .001Stephen Dolan
2012-09-03Literal strings and better literal numbers.Stephen Dolan
2012-09-03Remove globals from parser, use explicit structure.Stephen Dolan
2012-09-02Mark a constant array const in jvp_dtoa.cStephen Dolan
2012-09-02Fix behaviour of stack at program termination.Stephen Dolan
2012-09-02Move from Jansson to JV - proper freeing of memoryStephen Dolan
A few more tests, now passes valgrind.
2012-09-02Clean up build a little and add .gitignore.Stephen Dolan