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.
Files changed (71) hide show
  1. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.gitignore +1 -0
  2. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/memories/architecture.md +6 -3
  3. jsonatapy-2.2.9/CHANGELOG.md +1058 -0
  4. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/Cargo.lock +47 -28
  5. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/Cargo.toml +5 -4
  6. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/PKG-INFO +44 -13
  7. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/README.md +42 -11
  8. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/bindings/c/README.md +7 -1
  9. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/bindings/c/examples/smoke.c +25 -1
  10. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/bindings/c/jsonata.h +13 -0
  11. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/pyproject.toml +3 -3
  12. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/__init__.py +14 -1
  13. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/ast.rs +17 -4
  14. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/ast_transform.rs +56 -149
  15. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/bin/jsonata/error_format.rs +1 -9
  16. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/bin/jsonata/main.rs +14 -6
  17. jsonatapy-2.2.9/src/builtins.rs +1679 -0
  18. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/capi.rs +85 -40
  19. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/compiler.rs +13 -18
  20. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/datetime.rs +88 -46
  21. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/evaluator.rs +2060 -4426
  22. jsonatapy-2.2.9/src/expression.rs +180 -0
  23. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/functions.rs +466 -468
  24. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/lazy.rs +93 -28
  25. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/lib.rs +164 -96
  26. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/parser.rs +181 -46
  27. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/signature.rs +266 -71
  28. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/value.rs +43 -30
  29. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/vm.rs +65 -89
  30. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/study/cli_fixtures.json +1 -1
  31. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/tests/cli_test.rs +5 -1
  32. jsonatapy-2.2.9/tests/fixtures/builtin_arity.json +1 -0
  33. jsonatapy-2.2.9/tests/fixtures/builtin_differential.json +1 -0
  34. jsonatapy-2.2.9/tests/fixtures/builtin_signatures.json +65 -0
  35. jsonatapy-2.2.9/tests/fixtures/fastpath_differential.json +1 -0
  36. jsonatapy-2.2.9/tests/fixtures/fastpath_known_divergences.json +5 -0
  37. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/tests/integration_test.rs +1242 -23
  38. jsonatapy-2.2.9/tests/lambda_closure_suite.rs +586 -0
  39. jsonatapy-2.2.7/CHANGELOG.md +0 -362
  40. jsonatapy-2.2.7/src/parser/README.md +0 -321
  41. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.gitmodules +0 -0
  42. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/.gitignore +0 -0
  43. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/memories/conventions.md +0 -0
  44. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/memories/core.md +0 -0
  45. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/memories/memory_maintenance.md +0 -0
  46. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/memories/suggested_commands.md +0 -0
  47. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/memories/task_completion.md +0 -0
  48. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/memories/tech_stack.md +0 -0
  49. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/.serena/project.yml +0 -0
  50. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/LICENSE +0 -0
  51. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/benches/evaluator_bench.rs +0 -0
  52. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/examples/evaluator_demo.rs +0 -0
  53. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/examples/host_functions.rs +0 -0
  54. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/examples/parser_demo.rs +0 -0
  55. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/examples/simd_json_bench.rs +0 -0
  56. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/__main__.py +0 -0
  57. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/_cli/__init__.py +0 -0
  58. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/_cli/bindings.py +0 -0
  59. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/_cli/error_format.py +0 -0
  60. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/_cli/mcp_server.py +0 -0
  61. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/_cli/resolve.py +0 -0
  62. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/_cli/run.py +0 -0
  63. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/python/jsonatapy/py.typed +0 -0
  64. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/bin/jsonata/bindings.rs +0 -0
  65. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/src/bin/jsonata/resolve.rs +0 -0
  66. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/study/cli_fixtures_testdata.json +0 -0
  67. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/study/cli_spec.md +0 -0
  68. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/tests/cli_fixtures_test.rs +0 -0
  69. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/tests/datetime_picture_suite.rs +0 -0
  70. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/tests/host_functions_test.rs +0 -0
  71. {jsonatapy-2.2.7 → jsonatapy-2.2.9}/tests/parent_and_focus_binding_suite.rs +0 -0
@@ -71,3 +71,4 @@ benchmarks/javascript/package-lock.json
71
71
  # Temporary files
72
72
  *.tmp
73
73
  *.bak
74
+ *.exe
@@ -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`) → `vm::Vm::new(bc).run(...)`.
49
- `JsonataExpression` (lib.rs) caches `bytecode: OnceCell<Option<BytecodeProgram>>`; all 4 evaluate
50
- entrypoints try the VM first and fall back to the tree-walker.
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):