1
1
mirror of https://github.com/wader/fq.git synced 2024-11-23 09:56:07 +03:00
fq/internal/gojqextra
Mattias Wadman be0ef80c8d interp,fq: Make bit operators normal functions
Uses same rule as jq math functions, 1 arg uses input, more than one all passed as args.
So "bnot 1" -> "1 | bnot", "1 bsl 1" -> "bsl(1; 1)"

Don't think it's worth changing the jq syntax for this and also it could make fq
scripts no compatiblr with other jq tools. Non-10 base number literals are still allowed
but should probably not be used in scripts, only in repl and with cli.
2022-01-09 01:06:36 +01:00
..
error.go interp,fq: Make bit operators normal functions 2022-01-09 01:06:36 +01:00
math.go Add to/bytes/bits[range] 2021-10-17 14:43:37 +02:00
regexp.go Add *grep/1/2 and find/1/2 2021-10-13 01:27:04 +02:00
totype.go interp,decode: Refactor out Scalar from Value and merge Array/Struct into Compound 2021-11-05 17:29:22 +01:00
types.go interp,gojqextra: Make buffers values even more lazy and error early on non-scalar calls 2021-11-29 14:51:00 +01:00