summaryrefslogtreecommitdiffstats
path: root/bytecode.c
AgeCommit message (Collapse)Author
2014-12-31Further module system revamp (fix #659)Nicolas Williams
To import a module now use: # Import module.jq file: import "relative/path/to/module" as foo; # Use the module's defs as foo::<def-name> To import a JSON file: # Read file.json: import "relative/path/to/file" as $foo; # # Use as $foo::foo Using `-L` now drops the builtin library path and appends the requested path to the empty array (or the result of an earlier `-L`). Support for the `$JQ_LIBRARY_PATH` environment variable has been removed.
2014-07-01Teach disassembler about TAIL_CALL_JQNicolas Williams
2014-06-30TCO to the max!Nicolas Williams
Close #446. Currently tested by disassembling and tracing various recursive jq programs by hand under valgrind. An improved test framework that can test for errors and specific bytecode patterns is in development.
2013-06-18Fold opcode.{c,h} into bytecode.{c,h}Stephen Dolan
2013-06-15Fixup API to get closer to a libjqNicolas Williams
2013-05-16Better debug info for struct bytecode.Stephen Dolan
--debug-dump-disasm produces more comprehensible output now.
2012-12-18Add wrappers for malloc/realloc/free. See #43.Stephen Dolan
2012-12-04Refactor function argument passing into what it always should have been.Stephen Dolan
Most visible change is that error messages when a function is called with the wrong number of arguments are much better.
2012-12-03General cleanup - rename a few things, delete dead code.Stephen Dolan
2012-12-02Clean up calls to C functions, unify opcodesStephen Dolan
2012-09-18Move everything around - delete old Haskell code, clean up build.Stephen Dolan