]>
granicus.if.org Git - jq/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Stephen Dolan [Mon, 10 Sep 2012 14:04:19 +0000 (15:04 +0100)]
Make jv_invalid() first-class values capable of holding an error.
Stephen Dolan [Mon, 10 Sep 2012 12:06:46 +0000 (13:06 +0100)]
When comparing two objects for equality, we don't need to recurse
into e.g. array elements if the two objects are the same array.
Stephen Dolan [Mon, 10 Sep 2012 09:23:15 +0000 (10:23 +0100)]
Make a main program that doesn't spam debugging info.
Stephen Dolan [Sun, 9 Sep 2012 18:17:07 +0000 (19:17 +0100)]
Make the '+' operator merge objects.
Stephen Dolan [Sun, 9 Sep 2012 17:09:05 +0000 (18:09 +0100)]
Bugfix for expanding objects.
Stephen Dolan [Sun, 9 Sep 2012 14:35:34 +0000 (15:35 +0100)]
Print bad number values (Inf,NaN) "correctly".
Stephen Dolan [Thu, 6 Sep 2012 20:44:46 +0000 (21:44 +0100)]
null and string literals now exist, so add tests
Stephen Dolan [Thu, 6 Sep 2012 20:36:11 +0000 (21:36 +0100)]
UTF8 coding utilities and unicode escaping in jv_dump()'d strings.
Beyond the Basic Multilingual Plane, dead Cthulhu waits dreaming.
Stephen Dolan [Tue, 4 Sep 2012 19:56:44 +0000 (20:56 +0100)]
Make the test harness not segfault when a test fails (!)
Stephen Dolan [Tue, 4 Sep 2012 19:43:40 +0000 (20:43 +0100)]
Add a Boolean "not" operator.
Not wholly convinced this is a good idea, maybe "not" should be a
builtin function instead? 'not (.a == .b)' vs. '.a == .b | not'
Stephen Dolan [Tue, 4 Sep 2012 19:38:59 +0000 (20:38 +0100)]
Short-circuiting Boolean "and" and "or" operators.
Stephen Dolan [Tue, 4 Sep 2012 19:34:43 +0000 (20:34 +0100)]
Move some unicode handling stuff to a separate file.
Stephen Dolan [Tue, 4 Sep 2012 15:05:24 +0000 (16:05 +0100)]
Add "elif" to if-then-else constructs.
Stephen Dolan [Tue, 4 Sep 2012 14:34:34 +0000 (15:34 +0100)]
if-then-else and defined-or operators
Stephen Dolan [Mon, 3 Sep 2012 16:26:52 +0000 (17:26 +0100)]
Fix some confusion between "null" and "invalid".
Stephen Dolan [Mon, 3 Sep 2012 16:18:10 +0000 (17:18 +0100)]
Fix a memory leak in JV and add more tests
Stephen Dolan [Mon, 3 Sep 2012 15:50:38 +0000 (16:50 +0100)]
Perl-style autovivification.
.foo.bar = 1 will cause objects to be created if they don't exist.
Stephen Dolan [Mon, 3 Sep 2012 15:42:58 +0000 (16:42 +0100)]
squash a debug printf
Stephen Dolan [Mon, 3 Sep 2012 15:16:14 +0000 (16:16 +0100)]
JV_KIND_INVALID values to represent failed lookups, etc + various tests.
Stephen Dolan [Mon, 3 Sep 2012 15:14:52 +0000 (16:14 +0100)]
Support "null" in JQ programs
Stephen Dolan [Mon, 3 Sep 2012 14:33:59 +0000 (15:33 +0100)]
Make assignment work again: = and |= operators.
Stephen Dolan [Mon, 3 Sep 2012 14:32:50 +0000 (15:32 +0100)]
Disallow a + before numbers (makes parsing easier, agrees with JSON)
Stephen Dolan [Mon, 3 Sep 2012 12:57:53 +0000 (13:57 +0100)]
Modify number formatting so that 1e-3 renders as 0.001, not .001
Stephen Dolan [Mon, 3 Sep 2012 12:36:12 +0000 (13:36 +0100)]
Literal strings and better literal numbers.
Stephen Dolan [Mon, 3 Sep 2012 00:12:42 +0000 (01:12 +0100)]
Remove globals from parser, use explicit structure.
Stephen Dolan [Sun, 2 Sep 2012 21:24:27 +0000 (22:24 +0100)]
Mark a constant array const in jvp_dtoa.c
Stephen Dolan [Sun, 2 Sep 2012 21:08:36 +0000 (22:08 +0100)]
Fix behaviour of stack at program termination.
Stephen Dolan [Sun, 2 Sep 2012 20:45:27 +0000 (21:45 +0100)]
Move from Jansson to JV - proper freeing of memory
A few more tests, now passes valgrind.
Stephen Dolan [Sun, 2 Sep 2012 16:24:17 +0000 (17:24 +0100)]
Clean up build a little and add .gitignore.
Stephen Dolan [Sun, 2 Sep 2012 16:20:13 +0000 (17:20 +0100)]
Move from Jansson to JV - interpreter loop
Passes tests, but leaks some memory.
Stephen Dolan [Sun, 2 Sep 2012 15:31:59 +0000 (16:31 +0100)]
Move from Jansson to JV - everything but the interpreter loop
Passes valgrind --leak-check=full.
Stephen Dolan [Sat, 1 Sep 2012 23:24:23 +0000 (00:24 +0100)]
Validation for empty objects
Now (correctly) fails to parse {,}
Stephen Dolan [Sat, 1 Sep 2012 18:16:43 +0000 (19:16 +0100)]
First pass at a JSON parser
Stephen Dolan [Sat, 1 Sep 2012 17:24:17 +0000 (18:24 +0100)]
Fix a memory leak when inserting into an object with an already-present key
Stephen Dolan [Sat, 1 Sep 2012 16:56:34 +0000 (17:56 +0100)]
Minor changes to dtoa.c to make it easier to work with.
- Change memory allocation to thread a context structure through
the code rather than using globals (which would require a
-lpthread and some locking to become threadsafe).
- Remove a few configuration options (the "private memory" space,
and K&R style headers).
- Prefix exported symbols with jvp_ to prevent libc conflicts.
- Add jvp_dtoa.h
- Include netlib's g_fmt.c into dtoa.c
- Add a few not-strictly-necessary initialisations in order to
compile cleanly with gcc -Wall
Stephen Dolan [Sat, 1 Sep 2012 15:50:25 +0000 (16:50 +0100)]
Import a copy of David Gay's dtoa.c
Stephen Dolan [Tue, 28 Aug 2012 17:38:30 +0000 (18:38 +0100)]
Fix a bug in lexical scoping, add tests
Stephen Dolan [Tue, 28 Aug 2012 17:09:43 +0000 (18:09 +0100)]
Reference-counted copy-on-write JSON library.
Comes with tests and, presumably, bugs.
Stephen Dolan [Mon, 27 Aug 2012 10:19:42 +0000 (11:19 +0100)]
Remove syntax distinction between builtin and user calls
Stephen Dolan [Mon, 27 Aug 2012 09:11:55 +0000 (10:11 +0100)]
first pass at assignment
Stephen Dolan [Sun, 26 Aug 2012 13:25:56 +0000 (14:25 +0100)]
2nd order functions
Stephen Dolan [Wed, 22 Aug 2012 18:21:35 +0000 (19:21 +0100)]
Fix a revolting hack
Stephen Dolan [Wed, 22 Aug 2012 18:05:53 +0000 (19:05 +0100)]
bugfix for backtracking over RET insns, and a truly evil testcase
Stephen Dolan [Tue, 21 Aug 2012 17:24:38 +0000 (18:24 +0100)]
Closures over variables
Stephen Dolan [Tue, 21 Aug 2012 17:14:13 +0000 (18:14 +0100)]
First pass at functions + tests
Stephen Dolan [Tue, 21 Aug 2012 11:35:36 +0000 (12:35 +0100)]
frame layout refactor
Stephen [Mon, 20 Aug 2012 14:53:20 +0000 (15:53 +0100)]
Stacks grow down now
Stephen [Thu, 16 Aug 2012 00:16:08 +0000 (01:16 +0100)]
an addition operator, of sorts
Stephen [Thu, 16 Aug 2012 00:00:30 +0000 (01:00 +0100)]
Most of a C implementation of jq
Stephen Dolan [Wed, 18 Jul 2012 19:57:59 +0000 (20:57 +0100)]
initial