1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

1318 Commits

Author SHA1 Message Date
73e479e171 Update website: binaries + version bump. 2012-10-21 20:16:26 +01:00
758da604cd add install and uninstall rules in Makefile 2012-10-21 20:55:50 +02:00
95a0074edf Check in a bunch of autogenerated files.
These seem not to build with the version of bison, etc. on OS X.
This is a hack for now, I'll fix the OS X build when I get access
to a mac.
2012-10-21 19:52:16 +01:00
32e1b114df Add a 'keys' function. Fixes #4. 2012-10-20 00:26:37 +01:00
afec2544f1 A string interpolation syntax that I don't hate. Also tests.
You can interpolate values into strings using \(this syntax), e.g.

    "best \("str" + "ing") ever"
2012-10-20 00:09:20 +01:00
6828ec9852 Merge pull request #6 from stroan/numeric-comparison-binops
Add <,>,<=,>= binops
2012-10-11 07:47:42 -07:00
b3557429eb Make comp binops nonassoc 2012-10-10 23:00:24 +01:00
0618e61e0b Add <,>,<=,>= binops 2012-10-07 22:34:12 +01:00
a2643cc0d5 Allow underscores in IDENT tokens. Fixes #3.
IDENT syntax now includes ASCII letters and underscores, so
'.foo_bar' now works. Non-ASCII letters won't work in IDENT
tokens (it's impossible to tell which non-ascii characters are
"letters" without full unicode tables), so '.données' is still
a syntax error (the workaround is '.["données"]', since you can
put anything you like in a string).
2012-09-22 14:03:46 +01:00
359d5f33bd Add a bunch of commandline options for controlling I/O format.
Also docs for the above. Closes #1.
2012-09-20 19:31:14 +01:00
fcd7cf4ddd More broken links :( 2012-09-19 10:54:58 +01:00
1f4a5d8d9f Make URLs relative to not break on github-pages 2012-09-19 10:48:23 +01:00
92ab193369 Make the <title>s of the doc pages less messy. 2012-09-19 01:15:49 +01:00
fc57cf702c No HTTPS for me, sadly. 2012-09-19 01:12:33 +01:00
f51eca20f5 Fix some issues with relative URLs on Github Pages. 2012-09-19 01:10:47 +01:00
9887cb57b2 Add a rake task to compile docs into static html. 2012-09-19 01:03:05 +01:00
040604b7db Use a theme from Bootswatch for docs. 2012-09-19 01:00:25 +01:00
26c7132237 Ensure 'make tarball' creates the required directories. 2012-09-19 00:36:37 +01:00
483f6f2134 Add some release stuff to Makefile. 2012-09-19 00:34:49 +01:00
c463877e17 Add binaries and update download docs. 2012-09-19 00:08:02 +01:00
71ab537ee9 Initialise some variables to keep gcc happy. 2012-09-18 23:46:23 +01:00
134b062be7 Fix a parsing bug for \uXXXX escapes (some invalid escapes were accepted).
Found by gcc -O -Wall identifying a use of uninitialised variables.
2012-09-18 23:45:30 +01:00
3898f744dc Add a README 2012-09-18 23:40:19 +01:00
305059ff9f Usage messages if jq is run with no arguments.
Beats segfaulting.
2012-09-18 23:37:46 +01:00
5863160112 Implement the 'add' builtin promised by the docs' examples. 2012-09-18 23:32:24 +01:00
fbf7bc835b More docs + docs cleanup 2012-09-18 23:17:27 +01:00
04e85e11de Print Unicode characters unescaped by default. 2012-09-18 22:47:19 +01:00
20e45f363c Separate the tests and the main program. 2012-09-18 22:17:13 +01:00
46af5238ce Add a COPYING file with too many words in it. 2012-09-18 17:59:09 +01:00
cf134909fd Documentation. Copious. 2012-09-18 17:51:53 +01:00
a4eea165bb Move everything around - delete old Haskell code, clean up build. 2012-09-18 17:44:43 +01:00
25cbab056b Slightly better string interpolation. 2012-09-18 13:22:22 +01:00
8041ce3119 Add the builtin 'select' function. 2012-09-18 12:58:39 +01:00
8f0c91c032 Add a missing file from prev commit 2012-09-18 12:58:29 +01:00
940f8c4270 Builtin functions defined in jq. 2012-09-18 10:17:38 +01:00
5b9bb64a88 -Werror was a little overzealous.
Older versions of gcc warn about random things. -Werror makes the
built fail on such compilers.
2012-09-18 09:43:44 +01:00
7d8d97933f Builtin function 'type'. 2012-09-17 23:06:48 +01:00
f13865d7a1 Fix a precedence bug.
a == b or c == d should obviously parse as (a==b) or (c==d).
2012-09-17 22:37:51 +01:00
49cf2e67fe Recursive functions + bugfix for stack reallocation. 2012-09-17 22:32:06 +01:00
cbdeddbab8 Make the code compile with warnings-as-errors.
-Wextra found a bona-fide bug: signed/unsigned comparison in a
stack overflow check.
2012-09-17 22:04:58 +01:00
eab9c4e587 Fix debugging code in execute.c so that debug jq compiles again. 2012-09-17 21:43:10 +01:00
830610cef8 Make "not" a builtin function rather than syntax.
Fixes a really awkward grammar issue.
2012-09-17 21:08:43 +01:00
297a0679d1 Redefine true and false. Define empty, distict from null.
This might be the most philosophical commit. I shall ponder it.

true, false, null, empty now defined as bytecoded builtins rather
than calls out to C functions.
2012-09-17 20:59:34 +01:00
fe33150b7f Merge branch 'master' of github:stedolan/jq
Conflicts:
	c/builtin.c
2012-09-17 20:49:41 +01:00
3db27b01a1 First pass at string interpolation.
Requires a lexer hack, but a surprisingly un-hideous one. The lexer
maintains a stack of bracket characters so that it can match
parens/brackets/braces to tell where a subexp nested in a string
actually ends.
2012-09-17 20:41:57 +01:00
326771f4b4 Add a "tostring" function. 2012-09-17 20:14:07 +01:00
9c15ad2021 Support rendering a JSON value to a string buffer. 2012-09-17 20:11:12 +01:00
84ea129f26 Better support for appending strings in JV. 2012-09-17 19:41:41 +01:00
50ebb036c4 Bind builtin functions in a slightly less ugly way. 2012-09-16 17:08:56 +01:00
539156430a Builtin function 'length', for arrays/objects/strings. 2012-09-16 11:08:42 +01:00