Stephen Dolan
5dac485458
Make jq --version print to stdout, not stderr
2013-06-03 23:22:59 +01:00
Stephen Dolan
2c4ccd122e
Better error handling for .foo case in parser. See #141 .
2013-06-03 23:12:31 +01:00
Stephen Dolan
b90ae078b8
Let the parser rather than the lexer handle invalid characters.
2013-06-03 23:12:31 +01:00
Stephen Dolan
cc8761dbde
Add command-line option to sort object keys.
...
Closes #79 .
2013-06-03 23:12:31 +01:00
Stephen Dolan
08cc591884
Clean up Makefile.am (distcheck, rebuild version.h less often)
2013-06-03 23:12:31 +01:00
Stephen Dolan
1bc4d04f43
Merge pull request #139 from 13ren/stopwarning
...
Stop warning on fgets, jq_test.c:42
2013-06-01 07:30:15 -07:00
Brendan Macmillan
d4018192a9
Stop warning on fgets, simple version
2013-06-01 11:12:28 +10:00
Brendan Macmillan
19ddbfeca9
Stop warning on fgets, complex version
2013-06-01 11:03:15 +10:00
Stephen Dolan
4fed6763fc
Squash a warning on some GCC versions
2013-05-31 12:15:58 +01:00
Stephen Dolan
73446a9cce
Support for printing object keys in sorted order.
...
No command-line option to enable this yet. See #79 .
2013-05-29 11:47:12 +01:00
Stephen Dolan
dcf1ac0d1f
Merge pull request #135 from 13ren/locfile_bugfix
...
Locfile bugfix
2013-05-29 03:38:15 -07:00
Stephen Dolan
364c58d13f
Merge pull request #130 from 13ren/libload_2
...
libload_2 (update to pull request #126 , for issue #112 )
2013-05-29 03:37:36 -07:00
Brendan Macmillan
8cfe11e4e2
Bugfix multiline off-by-one (locfile.c)
2013-05-29 15:23:08 +10:00
Brendan Macmillan
40378a18f7
locfile.h -> locfile.h + locfile.c
...
clean up includes of a few files
2013-05-29 15:17:01 +10:00
Brendan Macmillan
7fb5d8c973
Hack bugfix for multiline off-by-one (locfile.c)
2013-05-29 15:16:45 +10:00
Brendan Macmillan
6e373942e5
Load library from ~/.jq
2013-05-29 15:05:40 +10:00
Stephen Dolan
f0b982795c
Make jq --version report an actual git revision.
...
Closes #129 .
2013-05-24 23:35:38 +01:00
Stephen Dolan
cbd422d56e
Merge pull request #133 from nicowilliams/option_argfile-rebase0
...
Add --argfile variant of --arg (issue #117 )
2013-05-24 04:13:45 -07:00
Nicolas Williams
03598bb5d6
Add --argfile variant of --arg (issue #117 )
...
This is useful when one has a database (in JSON form) to query using jq
input data.
% echo '{"a":1, "c":5}' > db.json
% echo '"c"'|./jq --argfile f /tmp/a '$f[.]'
5
% echo '"a"'|./jq --argfile f /tmp/a '$f[.]'
1
% echo '"b"'|./jq --argfile f /tmp/a '$f[.]'
null
%
2013-05-23 13:52:06 -05:00
Stephen Dolan
983a53a643
'make clean' won't delete jq.1 if it can't be rebuilt.
...
See #131
2013-05-23 19:20:19 +01:00
Stephen Dolan
0535e724a2
jq 1.3 release
jq-1.3
2013-05-19 11:48:18 +01:00
Stephen Dolan
fd1ac5dd79
EACH need not make a backtrack point on the last iteration
2013-05-17 22:49:08 +01:00
Stephen Dolan
9b91eafac4
Make array construction use LOADVN (slightly faster)
2013-05-16 15:09:59 +01:00
Stephen Dolan
bc42812715
Remove the insane "fold" operation, replace with saner "reduce".
2013-05-16 15:07:53 +01:00
Stephen Dolan
8fbee891b3
Add LOADVN opcode.
...
Does a variable load, but sets the variable to be null afterwards.
2013-05-16 15:02:18 +01:00
Stephen Dolan
919292764a
Reverse function. Closes #94 .
2013-05-16 14:25:28 +01:00
Stephen Dolan
a1e4dfa324
Better debug info for struct bytecode.
...
--debug-dump-disasm produces more comprehensible output now.
2013-05-16 00:51:17 +01:00
Stephen Dolan
f8644c31a3
Only generate code for those builtin functions actually used.
...
Makes output of --debug-dump-disasm much simpler.
2013-05-15 01:37:15 +01:00
Stephen Dolan
1e2851cdb3
Remove the YIELD opcode (use RET instead)
2013-05-15 01:23:06 +01:00
Stephen Dolan
e83e51eb56
'length' function now measures string length in codepoints, not bytes.
2013-05-15 00:37:38 +01:00
Stephen Dolan
c496a924ce
Bugfix for array slices.
2013-05-15 00:22:44 +01:00
Stephen Dolan
81be37b236
Add the range function
2013-05-14 16:09:10 +01:00
Stephen Dolan
4d540b7102
Fix some documentation bugs
2013-05-13 20:26:44 +01:00
Stephen Dolan
33901b74b1
Array slicing. Closes #2 .
2013-05-13 20:16:19 +01:00
Stephen Dolan
a47cfa4757
Delete unnecessary _POSIX_SOURCE. Closes #89
2013-05-13 16:41:11 +01:00
Stephen Dolan
a625d2821e
Add to_entries, from_entries and with_entries functions.
...
Closes #97 .
2013-05-13 16:15:49 +01:00
Stephen Dolan
d8706fd460
Fix the //= operator.
...
Closes #62 .
2013-05-13 16:04:30 +01:00
Stephen Dolan
e13f24ab45
Better error handling for INSERT opcode
...
jq 'null | {(.a): 1}' no longer crashes.
2013-05-13 15:42:57 +01:00
Stephen Dolan
34a63246ab
Remove the is_backtrack_frame special case hack.
2013-05-13 15:37:57 +01:00
Stephen Dolan
8c708f3c7a
Refactor path logic.
2013-05-13 15:00:05 +01:00
Stephen Dolan
b0e65d149f
Fix a bug triggered by jv_array_slice.
2013-05-13 14:10:39 +01:00
Stephen Dolan
e29db8d272
Fix bug with path handling (used in assignments).
...
Closes #67
2013-05-11 18:10:21 +01:00
Stephen Dolan
7ca5127fcc
Merge branch 'autotools'
2013-05-11 15:21:23 +01:00
Stephen Dolan
4b1b9c219a
Delete some Autotools junk and update README.
...
Autotools autogenerated files that change frequently have been
removed, those that don't are still checked in.
2013-05-11 15:15:56 +01:00
Stephen Dolan
4a5405e4b8
Rake task to build website including source dist and binaries.
2013-05-11 14:57:58 +01:00
Stephen Dolan
d03149f4df
Rake task to build source distribution for website
2013-05-11 14:48:39 +01:00
Stephen Dolan
18cf4ad475
Add the docs to the distributed tarballs
2013-05-09 20:53:51 +01:00
Stephen Dolan
ba4bb136bb
Fix manpage build.
2013-05-09 20:43:26 +01:00
Stephen Dolan
e6494857fc
Add some build instructions for how to install doc dependencies.
...
jq can now build without Ruby, but you won't get a nice manpage.
2013-05-09 20:35:19 +01:00
Stephen Dolan
12d2d4d1f5
Don't build the manpage unless there's a working Ruby setup.
2013-05-09 15:22:38 +01:00