jsonatapy 2.2.7__tar.gz → 2.2.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.gitignore +1 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/memories/architecture.md +6 -3
- jsonatapy-2.2.9/CHANGELOG.md +1058 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/Cargo.lock +47 -28
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/Cargo.toml +5 -4
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/PKG-INFO +44 -13
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/README.md +42 -11
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/bindings/c/README.md +7 -1
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/bindings/c/examples/smoke.c +25 -1
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/bindings/c/jsonata.h +13 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/pyproject.toml +3 -3
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/__init__.py +14 -1
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/ast.rs +17 -4
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/ast_transform.rs +56 -149
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/bin/jsonata/error_format.rs +1 -9
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/bin/jsonata/main.rs +14 -6
- jsonatapy-2.2.9/src/builtins.rs +1679 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/capi.rs +85 -40
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/compiler.rs +13 -18
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/datetime.rs +88 -46
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/evaluator.rs +2060 -4426
- jsonatapy-2.2.9/src/expression.rs +180 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/functions.rs +466 -468
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/lazy.rs +93 -28
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/lib.rs +164 -96
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/parser.rs +181 -46
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/signature.rs +266 -71
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/value.rs +43 -30
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/vm.rs +65 -89
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/study/cli_fixtures.json +1 -1
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/tests/cli_test.rs +5 -1
- jsonatapy-2.2.9/tests/fixtures/builtin_arity.json +1 -0
- jsonatapy-2.2.9/tests/fixtures/builtin_differential.json +1 -0
- jsonatapy-2.2.9/tests/fixtures/builtin_signatures.json +65 -0
- jsonatapy-2.2.9/tests/fixtures/fastpath_differential.json +1 -0
- jsonatapy-2.2.9/tests/fixtures/fastpath_known_divergences.json +5 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/tests/integration_test.rs +1242 -23
- jsonatapy-2.2.9/tests/lambda_closure_suite.rs +586 -0
- jsonatapy-2.2.7/CHANGELOG.md +0 -362
- jsonatapy-2.2.7/src/parser/README.md +0 -321
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.gitmodules +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/.gitignore +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/memories/conventions.md +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/memories/core.md +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/memories/memory_maintenance.md +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/memories/suggested_commands.md +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/memories/task_completion.md +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/memories/tech_stack.md +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/project.yml +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/LICENSE +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/benches/evaluator_bench.rs +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/examples/evaluator_demo.rs +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/examples/host_functions.rs +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/examples/parser_demo.rs +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/examples/simd_json_bench.rs +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/__main__.py +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/_cli/__init__.py +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/_cli/bindings.py +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/_cli/error_format.py +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/_cli/mcp_server.py +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/_cli/resolve.py +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/_cli/run.py +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/py.typed +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/bin/jsonata/bindings.rs +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/bin/jsonata/resolve.rs +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/study/cli_fixtures_testdata.json +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/study/cli_spec.md +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/tests/cli_fixtures_test.rs +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/tests/datetime_picture_suite.rs +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/tests/host_functions_test.rs +0 -0
- {jsonatapy-2.2.7 → jsonatapy-2.2.9}/tests/parent_and_focus_binding_suite.rs +0 -0
|
@@ -45,9 +45,12 @@ site (grep `unwrap_or(JValue::Null)` / `JValue::Null =>` near field-access code)
|
|
|
45
45
|
### Compilation pipeline (bytecode fast path)
|
|
46
46
|
`evaluator::try_compile_expr(ast)` → `CompiledExpr` (IR) → `compiler::BytecodeCompiler::compile`
|
|
47
47
|
→ `BytecodeProgram` (flat `Vec<Instr>`) → `peephole()` folds (`PushData+GetField` →
|
|
48
|
-
`GetDataField`, `GetVar+GetField` → `GetVarField`, elides `Not+Not`) →
|
|
49
|
-
`
|
|
50
|
-
|
|
48
|
+
`GetDataField`, `GetVar+GetField` → `GetVarField`, elides `Not+Not`) →
|
|
49
|
+
`vm::Vm::with_options(bc, options).run(...)`.
|
|
50
|
+
`JsonataExpression` (lib.rs) caches `bytecode: OnceCell<Option<BytecodeProgram>>`; all 5 evaluate
|
|
51
|
+
entrypoints funnel through `run_eval`, which tries the VM first and falls back to the tree-walker.
|
|
52
|
+
The `vm`/`compiler` modules exist only under the `python`, `capi`, or `bench` features (cfg-gated
|
|
53
|
+
in lib.rs) — a default-feature build, including the Rust CLI, always uses the tree-walker.
|
|
51
54
|
|
|
52
55
|
Key correctness rules baked into the compiler/VM (violate these and specific test-suite groups
|
|
53
56
|
regress):
|