David Tolnay
e17ccf2297
Support numbers and boolean in join ( fix #930 )
2015-10-25 12:40:15 -07:00
David Tolnay
6c31850e86
If-then-else documentation for forking conditional ( fix #942 )
2015-10-17 21:15:24 -07:00
David Tolnay
c8dc164566
Support lowercase name in from_entries ( fix #990 )
2015-10-17 20:50:40 -07:00
David Tolnay
4490d9d1f6
Support NaN in path expressions ( fix #962 )
2015-09-24 10:33:34 -07:00
David Tolnay
58f082d74f
Delete negative indices in array ( fix #954 )
2015-09-21 20:33:06 -07:00
David Tolnay
154d0ee4a8
Fix assert fail if object literal key is not a string ( fix #953 )
2015-09-21 12:47:06 -07:00
Joel Nothman
83e8ec587f
utf8bytelength: count UTF8 string bytelength
...
[Builtin name changed, and it only works on string inputs. -Nico]
2015-09-13 01:01:24 -05:00
David Tolnay
b8f71d3659
Fix assert fail when delpaths is given non-array ( fix #901 )
2015-08-16 19:44:16 -07:00
David Tolnay
58a053d7de
Fix memory leak in non-constant module declaration
2015-08-13 21:42:35 -07:00
David Tolnay
7b5c6a9224
Fix assert fail on invalid import path ( fix #899 )
2015-08-13 21:42:35 -07:00
David Tolnay
5479d7f2dc
Fix assert fail on non-object import metadata ( fix #900 )
2015-08-13 21:42:35 -07:00
Nicolas Williams
9a3f802d20
Fix #896 , double-free in setpath
2015-08-11 17:46:15 -05:00
David Tolnay
a47b32999b
Fix range(value;stream) ( fix #886 )
2015-08-06 23:05:03 -07:00
Santiago Lapresta
3d49fc59dd
Implement flatten/0 in terms of flatten/1
2015-07-24 21:55:43 -07:00
David Tolnay
16e8d0b1ab
detect invalid path expression ( fix #862 )
2015-07-24 20:23:07 -07:00
David Tolnay
66ef8e2c24
Resolve shift/reduce conflict of 'def' vs '|'
...
This was an important conflict. In the following expression:
def a: 0; . | a
Bison needs to decide between these two equally valid
parses:
(def a: 0; .) | a
def a: 0; (. | a)
For jq we want the second one, because the first results in
"a/0 is not defined". In the current parser the first parse
is a reduce and the second parse is a shift. Since Bison
prefers to shift in shift/reduce conflicts, we accidentally
got the correct behavior.
This commit adds a precedence level FUNCDEF which is lower
precedence than '|', meaning we explicitly choose the
correct parse.
Of course many unit tests already cover this case, but I
added one specifically for it.
2015-07-19 09:42:01 -07:00
Nicolas Williams
579518c78d
Use include for import into namespace
2015-07-10 10:19:33 -05:00
David Tolnay
6e27de4f74
strftime wrong day-of-week ( fix #838 )
2015-07-01 20:37:16 -07:00
Nicolas Williams
fd4f4f2087
Make --run-tests' jv_test() quiet
2015-06-28 13:39:32 -05:00
Nicolas Williams
32c4759e6b
Add more basic number tests
2015-06-27 23:15:16 -05:00
Nicolas Williams
aaf305868c
Restore import into caller's namespace
2015-06-26 23:40:37 -05:00
David Tolnay
1146b8b84a
separate jq, oniguruma, sh, and man tests
2015-06-18 23:55:43 -05:00