Commit cbcd752
[ruby/strscan] Implement StringScanner for TruffleRuby in pure Ruby
(ruby/strscan#195)
* Fixes ruby/strscan#194.
* This is a fresh new implementation from scratch, contributed directly
to ruby/strscan, under BSD-2-Clause.
This was implemented using the strscan tests, specs from ruby/spec and
the documentation
(https://docs.ruby-lang.org/en/master/StringScanner.html).
* lib/strscan.rb now handles the loading for all implementations.
* Test on TruffleRuby 33 to ensure it keeps working on older TruffleRuby
releases,
which do not have the necessary Primitives used by this new
implementation.
---------
ruby/strscan@3908e0ddb0
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 64e1036 commit cbcd752
5 files changed
Lines changed: 447 additions & 21 deletions
File tree
- ext/strscan
- lib
- strscan
- test/strscan
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments