1
1
mirror of https://github.com/wader/fq.git synced 2024-12-28 08:02:28 +03:00
fq/pkg/interp
Mattias Wadman 26d9650b0e interp: Refactor radix* into toradix($base)/fromradix($base)
There is also toradix($base; $table)/fromradix($base; $table) for custom symbols and bases.
Add radix tests

Part of cleaning up all convert/tranformation functions into to/from*.

Remove number_to_bytes as with better binary support it can be written as:
1234 | tobytes | [.[range(.size)]] and soon as 1234 | tobytes | explode
2022-02-11 01:28:39 +01:00
..
testdata interp: Refactor radix* into toradix($base)/fromradix($base) 2022-02-11 01:28:39 +01:00
args_test.jq repl: completion in jq 2021-09-12 13:08:56 +02:00
args.jq repl: completion in jq 2021-09-12 13:08:56 +02:00
assert.jq interp: Cleanup stdio usage and functions 2022-01-05 21:41:11 +01:00
binary.go binary,decode,doc: Rename buffer to binary and add some documentation 2022-02-08 22:20:28 +01:00
binary.jq binary,decode,doc: Rename buffer to binary and add some documentation 2022-02-08 22:20:28 +01:00
bitops.go interp,fq: Make bit operators normal functions 2022-01-09 01:06:36 +01:00
decode.go binary,decode,doc: Rename buffer to binary and add some documentation 2022-02-08 22:20:28 +01:00
decode.jq interp: Add missing default opts for tovalue 2022-02-07 17:11:51 +01:00
decorator.go bitio,decode: Refactor bitio usage and make buffer slicing more correct 2022-02-04 21:41:53 +01:00
dump.go binary,decode,doc: Rename buffer to binary and add some documentation 2022-02-08 22:20:28 +01:00
formats.jq interp: Add torepr/0 that converts decode value into what it reptresents 2022-01-12 17:33:58 +01:00
fqtest_test.go mod: Use proper path and dont use replace 2021-09-12 13:08:50 +02:00
funcs_test.jq interp: Refactor radix* into toradix($base)/fromradix($base) 2022-02-11 01:28:39 +01:00
funcs.go binary,decode,doc: Rename buffer to binary and add some documentation 2022-02-08 22:20:28 +01:00
funcs.jq interp: Refactor radix* into toradix($base)/fromradix($base) 2022-02-11 01:28:39 +01:00
grep.jq interp: Add grep_by/1 to recursively match using a filter 2022-01-24 18:26:25 +01:00
internal.jq interp: Add stderr again for jq compat 2022-01-07 11:30:09 +01:00
interp.go binary,decode,doc: Rename buffer to binary and add some documentation 2022-02-08 22:20:28 +01:00
interp.jq binary,decode,doc: Rename buffer to binary and add some documentation 2022-02-08 22:20:28 +01:00
match.go binary,decode,doc: Rename buffer to binary and add some documentation 2022-02-08 22:20:28 +01:00
match.jq binary,decode,doc: Rename buffer to binary and add some documentation 2022-02-08 22:20:28 +01:00
options.jq interp: Support force decode as -o force=true 2022-02-05 17:24:42 +01:00
preview.go bitio,decode: Refactor bitio usage and make buffer slicing more correct 2022-02-04 21:41:53 +01:00
query_test.jq repl: use map in _query_slurp_wrap 2021-09-12 13:08:55 +02:00
query.go interp: Move jq function impls closer to where they belong 2021-11-16 11:43:11 +01:00
query.jq repl: completion in jq 2021-09-12 13:08:56 +02:00
repl.jq repl: Make prompt for array and iter more jqish 2022-01-10 20:02:43 +01:00
testjq.sh make: Move testjq.sh into pkg/interp 2021-11-12 00:23:16 +01:00