1
1
mirror of https://github.com/wader/fq.git synced 2024-12-25 14:23:18 +03:00
fq/pkg/interp/.jq-lsp.jq
Mattias Wadman 1ddea1ada3 interp,format: Refactor registry usage and use function helpers
Move registry to interp and add support for functions and filesystems.
This will be used later for allow formats to add own functions and fq code.

Add gojqextra function helpers to have more comfortable API to add functions.
Takes care of argument type casting and JQValue:s and some more things.

Refactor interp package to use new function helper and registry. Probably
fixes a bunch of JQValue bugs and other type errors.

Refactor out some mpeg nal things to mpeg format.

Refactor interp jq code into display.q and init.jq.

Remove undocumented aes_ctr funciton, was a test. Hopefully will add more crypto things laster.
2022-07-16 19:24:13 +02:00

31 lines
846 B
Plaintext

# read by jq-lsp to add additional builtins
def _can_display: empty;
def _decode($format; $opts): empty;
def _display($opts): empty;
def _eval($expr; $opts): empty;
def _extkeys: empty;
def _exttype: empty;
def _format_func($format; $func): empty;
def _global_state: empty;
def _global_state($v): empty;
def _hexdump($opts): empty;
def _is_completing: empty;
def _match_binary($regexp; $flags): empty;
def _print_color_json($opts): empty;
def _query_fromstring: empty;
def _query_tostring: empty;
def _readline: empty;
def _readline($opts): empty;
def _registry: empty;
def _stdio_info($name): empty;
def _stdio_read($name; $l): empty;
def _stdio_write($name): empty;
def _tobits($opts): empty;
def _tovalue($opts): empty;
def open: empty;
def scope: empty;
# used by help.jq
def tojq: empty;
# used by funcs.jq iprint
def toradix($base): empty;