William Langford
3a8c8f4747
Add alternation destructuring operator ?//
...
This is a first pass to show the implementation.
It needs tests and evaluation, but doesn't break any existing tests.
NOT READY FOR MERGING
2017-03-26 05:36:22 -05:00
Nicolas Williams
2fcb257168
getpath/1 should be a path expression ( fix #1358 )
...
It needs to be possible to do something like
getpath($paths[]) += 1
meaning: increment all the paths in . that are listed in $paths[].
In order to do this getpath() needs to update the jq->path and
jq->value_at_path as necessary.
2017-02-28 21:54:30 -06:00
Nicolas Williams
8ea21a54ad
Add halt, halt_error builtins ( fix #386 )
2017-02-26 16:34:56 -06:00
Nicolas Williams
a03ae02f44
Fix memory leak
2017-02-26 16:33:50 -06:00
Nicolas Williams
b279713e47
fixup
2017-02-26 16:12:57 -06:00
Nicolas Williams
e8abc0a2f6
jq_compile_args(): allow object args to be object
2017-02-25 19:13:28 -06:00
David Tolnay
0c93eb3379
Move source files to src/
2015-08-23 20:36:11 -07:00