trex-re 0.1.0__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 (104) hide show
  1. trex_re-0.1.0/CHANGELOG.md +38 -0
  2. trex_re-0.1.0/Cargo.lock +875 -0
  3. trex_re-0.1.0/Cargo.toml +369 -0
  4. trex_re-0.1.0/LICENSE-MIT +21 -0
  5. trex_re-0.1.0/PKG-INFO +97 -0
  6. trex_re-0.1.0/README.md +325 -0
  7. trex_re-0.1.0/_corpus/prior_en.txt +5291 -0
  8. trex_re-0.1.0/build.rs +150 -0
  9. trex_re-0.1.0/kernels/compress.cu +378 -0
  10. trex_re-0.1.0/kernels/scan.cu +172 -0
  11. trex_re-0.1.0/pyproject.toml +27 -0
  12. trex_re-0.1.0/python/Cargo.toml +29 -0
  13. trex_re-0.1.0/python/README.md +80 -0
  14. trex_re-0.1.0/python/src/lib.rs +1992 -0
  15. trex_re-0.1.0/python/tests/test_trex.py +529 -0
  16. trex_re-0.1.0/src/action.rs +357 -0
  17. trex_re-0.1.0/src/ast.rs +2434 -0
  18. trex_re-0.1.0/src/bpe.rs +319 -0
  19. trex_re-0.1.0/src/builder.rs +319 -0
  20. trex_re-0.1.0/src/byte_dfa.rs +336 -0
  21. trex_re-0.1.0/src/byte_lex.rs +1268 -0
  22. trex_re-0.1.0/src/byte_nfa.rs +772 -0
  23. trex_re-0.1.0/src/byte_simd.rs +2425 -0
  24. trex_re-0.1.0/src/bytepat.rs +1112 -0
  25. trex_re-0.1.0/src/canon.rs +115 -0
  26. trex_re-0.1.0/src/captures.rs +782 -0
  27. trex_re-0.1.0/src/checksum.rs +591 -0
  28. trex_re-0.1.0/src/cli_files.rs +5171 -0
  29. trex_re-0.1.0/src/cli_follow.rs +777 -0
  30. trex_re-0.1.0/src/cli_lines.rs +425 -0
  31. trex_re-0.1.0/src/cli_rules.rs +401 -0
  32. trex_re-0.1.0/src/cli_window.rs +281 -0
  33. trex_re-0.1.0/src/context.rs +1392 -0
  34. trex_re-0.1.0/src/cursor.rs +1929 -0
  35. trex_re-0.1.0/src/curvature.rs +382 -0
  36. trex_re-0.1.0/src/custom.rs +1389 -0
  37. trex_re-0.1.0/src/decoded.rs +356 -0
  38. trex_re-0.1.0/src/dual_grain.rs +351 -0
  39. trex_re-0.1.0/src/e8.rs +385 -0
  40. trex_re-0.1.0/src/echo.rs +771 -0
  41. trex_re-0.1.0/src/edit.rs +73 -0
  42. trex_re-0.1.0/src/encoding.rs +673 -0
  43. trex_re-0.1.0/src/ends_simd.rs +349 -0
  44. trex_re-0.1.0/src/engine.rs +6313 -0
  45. trex_re-0.1.0/src/entanglement.rs +233 -0
  46. trex_re-0.1.0/src/explain.rs +822 -0
  47. trex_re-0.1.0/src/files.rs +801 -0
  48. trex_re-0.1.0/src/flow.rs +807 -0
  49. trex_re-0.1.0/src/follow.rs +301 -0
  50. trex_re-0.1.0/src/fxhash.rs +315 -0
  51. trex_re-0.1.0/src/gauge.rs +120 -0
  52. trex_re-0.1.0/src/geodesic.rs +209 -0
  53. trex_re-0.1.0/src/gpu/coder.rs +879 -0
  54. trex_re-0.1.0/src/gpu.rs +2862 -0
  55. trex_re-0.1.0/src/grammar.rs +1573 -0
  56. trex_re-0.1.0/src/gravity.rs +758 -0
  57. trex_re-0.1.0/src/holography.rs +322 -0
  58. trex_re-0.1.0/src/index.rs +641 -0
  59. trex_re-0.1.0/src/infer/build.rs +3386 -0
  60. trex_re-0.1.0/src/infer/marks.rs +504 -0
  61. trex_re-0.1.0/src/infer.rs +706 -0
  62. trex_re-0.1.0/src/isa.rs +148 -0
  63. trex_re-0.1.0/src/kind_route.rs +955 -0
  64. trex_re-0.1.0/src/lexer.rs +3171 -0
  65. trex_re-0.1.0/src/lib.rs +236 -0
  66. trex_re-0.1.0/src/library.rs +1021 -0
  67. trex_re-0.1.0/src/magnitude.rs +390 -0
  68. trex_re-0.1.0/src/main.rs +2837 -0
  69. trex_re-0.1.0/src/nfa.rs +5209 -0
  70. trex_re-0.1.0/src/observation.rs +466 -0
  71. trex_re-0.1.0/src/orbit.rs +568 -0
  72. trex_re-0.1.0/src/out.rs +17 -0
  73. trex_re-0.1.0/src/paint.rs +999 -0
  74. trex_re-0.1.0/src/parallel_lex.rs +2507 -0
  75. trex_re-0.1.0/src/parser.rs +2238 -0
  76. trex_re-0.1.0/src/pattern_set.rs +1278 -0
  77. trex_re-0.1.0/src/prefilter.rs +8221 -0
  78. trex_re-0.1.0/src/prior_cache.rs +319 -0
  79. trex_re-0.1.0/src/profile.rs +1008 -0
  80. trex_re-0.1.0/src/quantity.rs +999 -0
  81. trex_re-0.1.0/src/records.rs +519 -0
  82. trex_re-0.1.0/src/relation.rs +555 -0
  83. trex_re-0.1.0/src/report.rs +639 -0
  84. trex_re-0.1.0/src/resonator.rs +993 -0
  85. trex_re-0.1.0/src/rewrite.rs +2297 -0
  86. trex_re-0.1.0/src/rule_scan.rs +740 -0
  87. trex_re-0.1.0/src/seam/coder.rs +2649 -0
  88. trex_re-0.1.0/src/seam.rs +2280 -0
  89. trex_re-0.1.0/src/shape.rs +576 -0
  90. trex_re-0.1.0/src/spectral.rs +2226 -0
  91. trex_re-0.1.0/src/streaming.rs +1032 -0
  92. trex_re-0.1.0/src/stress.rs +371 -0
  93. trex_re-0.1.0/src/supertoken.rs +388 -0
  94. trex_re-0.1.0/src/tandem.rs +127 -0
  95. trex_re-0.1.0/src/templates.rs +545 -0
  96. trex_re-0.1.0/src/token.rs +622 -0
  97. trex_re-0.1.0/src/tokutil.rs +54 -0
  98. trex_re-0.1.0/src/topology.rs +254 -0
  99. trex_re-0.1.0/src/trace.rs +364 -0
  100. trex_re-0.1.0/src/typed.rs +4572 -0
  101. trex_re-0.1.0/src/window.rs +1596 -0
  102. trex_re-0.1.0/wiki/content/docs/reference/axes/context.md +106 -0
  103. trex_re-0.1.0/wiki/content/docs/reference/axes/shape.md +220 -0
  104. trex_re-0.1.0/wiki/content/docs/reference/library-api.md +181 -0
@@ -0,0 +1,38 @@
1
+ # Changelog
2
+
3
+ All notable changes to trex are recorded here. The Rust crate (`trex-re` on
4
+ crates.io), the Python package (`trex-re` on PyPI) and the PowerShell module
5
+ (`Trex` on the PowerShell Gallery) share one version number and release
6
+ together. The format follows
7
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
8
+
9
+ ## [0.1.0] - 2026-09-29
10
+
11
+ The first release.
12
+
13
+ ### Added
14
+
15
+ - A pattern language over typed tokens: the lexer reads the input once into
16
+ 25 kinds of token (numbers, words, quoted strings, IP addresses, URLs,
17
+ emails, timestamps, versions, payment cards and the rest), and an atom such
18
+ as `\N` or `\E` matches one whole token. Matching runs by derivatives and
19
+ does not backtrack.
20
+ - Value predicates in a kind's own units (`\N{500..599}`, `\I{in:10.0.0.0/8}`,
21
+ `\T{age<24h}`), balanced bracket groups, and named registers that a later
22
+ `=name` must equal, exactly or up to case, shape, representation or a typed
23
+ relation.
24
+ - Custom atoms declared with `let`, `kind` and `shape` lines checked by `test`
25
+ lines, beside a shipped library of 75 named kinds and patterns.
26
+ - The `trex` command: `scan` over files, standard input and directory trees
27
+ walked under `.gitignore` rules; `rewrite` and `redact`, in place behind a
28
+ diff dry run; `head`, `tail`, `lines` and `--follow`; `top`, `count-by` and
29
+ `uniq`; the ten property axes; and `infer`, which builds a pattern from
30
+ examples and from `{name:text}` marks, reading `ConvertFrom-String`
31
+ templates.
32
+ - A CUDA backend in the default build for patterns that read only token kinds;
33
+ a machine without a device runs the same binary on the CPU.
34
+ - The Python package `trex-re`, imported as `trex`: one stable-ABI wheel per
35
+ platform for Python 3.11 and later.
36
+ - The PowerShell module `Trex`: 49 cmdlets writing matches, findings and
37
+ reports as objects, for PowerShell 7 and Windows PowerShell 5.1.
38
+ - The MIT license.