@tishlang/tish-format 2.12.0 → 2.16.13

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. package/Cargo.toml +3 -0
  2. package/bin/tish-format +0 -0
  3. package/crates/tish/tests/integration_test.rs +80 -0
  4. package/crates/tish_ast/src/ast.rs +10 -0
  5. package/crates/tish_builtins/src/array.rs +529 -56
  6. package/crates/tish_builtins/src/collections.rs +114 -40
  7. package/crates/tish_builtins/src/string.rs +95 -8
  8. package/crates/tish_bytecode/src/chunk.rs +7 -0
  9. package/crates/tish_bytecode/src/compiler.rs +560 -64
  10. package/crates/tish_bytecode/src/lib.rs +1 -1
  11. package/crates/tish_bytecode/src/opcode.rs +154 -2
  12. package/crates/tish_bytecode/src/serialize.rs +2 -0
  13. package/crates/tish_bytecode/tests/append_local_string_builder.rs +63 -0
  14. package/crates/tish_bytecode/tests/math_unary_intrinsic.rs +47 -0
  15. package/crates/tish_compile/src/codegen.rs +17736 -5269
  16. package/crates/tish_compile/src/infer.rs +1707 -190
  17. package/crates/tish_compile/src/lib.rs +29 -4
  18. package/crates/tish_compile/src/resolve.rs +66 -5
  19. package/crates/tish_compile/src/types.rs +224 -28
  20. package/crates/tish_compile/tests/dump_codegen.rs +21 -0
  21. package/crates/tish_compile/tests/perf_codegen_169_173.rs +8 -17
  22. package/crates/tish_compile/tests/perf_codegen_173_part3.rs +61 -0
  23. package/crates/tish_compile/tests/perf_codegen_174.rs +160 -0
  24. package/crates/tish_compile/tests/perf_codegen_175.rs +190 -0
  25. package/crates/tish_compile/tests/perf_codegen_176.rs +60 -0
  26. package/crates/tish_compile/tests/perf_codegen_177.rs +167 -0
  27. package/crates/tish_compile/tests/perf_codegen_178.rs +114 -0
  28. package/crates/tish_compile/tests/perf_codegen_178_rec.rs +124 -0
  29. package/crates/tish_compile/tests/perf_codegen_181.rs +36 -0
  30. package/crates/tish_compile/tests/perf_codegen_320.rs +211 -0
  31. package/crates/tish_compile/tests/perf_codegen_module_const_forof.rs +40 -0
  32. package/crates/tish_compile_js/src/codegen.rs +33 -0
  33. package/crates/tish_compiler_wasm/src/resolve_virtual.rs +100 -2
  34. package/crates/tish_core/Cargo.toml +4 -0
  35. package/crates/tish_core/src/json.rs +104 -5
  36. package/crates/tish_core/src/lib.rs +174 -0
  37. package/crates/tish_core/src/shape.rs +4 -2
  38. package/crates/tish_core/src/value.rs +565 -35
  39. package/crates/tish_core/src/vmref.rs +14 -0
  40. package/crates/tish_eval/src/eval.rs +675 -76
  41. package/crates/tish_eval/src/natives.rs +19 -0
  42. package/crates/tish_eval/src/value.rs +76 -21
  43. package/crates/tish_ffi/src/lib.rs +11 -1
  44. package/crates/tish_ffi/tests/double_free.rs +35 -0
  45. package/crates/tish_fmt/Cargo.toml +1 -1
  46. package/crates/tish_fmt/src/lib.rs +75 -1
  47. package/crates/tish_lexer/src/lib.rs +76 -0
  48. package/crates/tish_lexer/src/token.rs +4 -0
  49. package/crates/tish_lint/src/lib.rs +126 -0
  50. package/crates/tish_lsp/README.md +2 -1
  51. package/crates/tish_lsp/src/main.rs +378 -28
  52. package/crates/tish_native/src/build.rs +41 -0
  53. package/crates/tish_parser/Cargo.toml +4 -0
  54. package/crates/tish_parser/src/lib.rs +27 -0
  55. package/crates/tish_parser/src/parser.rs +302 -20
  56. package/crates/tish_resolve/src/lib.rs +9 -0
  57. package/crates/tish_runtime/Cargo.toml +5 -0
  58. package/crates/tish_runtime/src/http.rs +28 -10
  59. package/crates/tish_runtime/src/http_fetch.rs +150 -1
  60. package/crates/tish_runtime/src/http_prefork.rs +72 -11
  61. package/crates/tish_runtime/src/lib.rs +523 -42
  62. package/crates/tish_runtime/src/timers.rs +49 -2
  63. package/crates/tish_ui/src/jsx.rs +3 -0
  64. package/crates/tish_vm/src/jit.rs +2514 -117
  65. package/crates/tish_vm/src/vm.rs +1227 -182
  66. package/package.json +1 -1
  67. package/platform/darwin-arm64/tish-fmt +0 -0
  68. package/platform/darwin-x64/tish-fmt +0 -0
  69. package/platform/linux-arm64/tish-fmt +0 -0
  70. package/platform/linux-x64/tish-fmt +0 -0
  71. package/platform/win32-x64/tish-fmt.exe +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tishlang/tish-format",
3
- "version": "2.12.0",
3
+ "version": "2.16.13",
4
4
  "description": "Tish code formatter",
5
5
  "license": "PIF",
6
6
  "repository": {
Binary file
Binary file
Binary file
Binary file
Binary file