• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moonbitlang / core / 6972
89%

Build:
DEFAULT BRANCH: main
Ran 11 Oct 2026 04:35PM UTC
Jobs 1
Files 440
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Oct 2026 04:30PM UTC coverage: 89.519% (+0.04%) from 89.476%
6972

push

github

web-flow
feat(regex): run string.Regex on the compiler's tagged DFA construction (#4371)

Replace the engine behind `@string.Regex` with a priority-ordered tagged NFA
determinised lazily into a tagged DFA, the construction the compiler uses for
`lexmatch` and `=~`, so that a regex gives the same result compiled or at
run time.

- Repetitions whose body can match the empty string now give the result
  compile-time `lexmatch` gives; nothing else changes.
- DFA states are cached under a budget (16M words) instead of without
  limit. States store only the tags each thread has set; states that differ
  only in register names share one cached copy when the cache is full, and
  the transitions that move registers are kept.
- Remove `internal/regex_engine/automata` and the match preference nodes of
  the internal AST, which the new engine does not use.
- Add the compile-time `lexmatch` results for 520 patterns as a table the
  runtime engine must reproduce, a Pike VM oracle, and cache tests.

316 of 319 new or added lines in 5 files covered. (99.06%)

1 existing line in 1 file now uncovered.

16741 of 18701 relevant lines covered (89.52%)

377485.1 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
98.13
string/internal/regex_engine/dfa.mbt

Coverage Regressions

Lines Coverage ∆ File
1
91.67
-8.33% internal/regex_engine/shared_types/category.mbt
Jobs
ID Job ID Ran Files Coverage
1 6972.1 11 Oct 2026 04:35PM UTC 440
89.52
GitHub Action Run
Source Files on build 6972
  • Tree
  • List 440
  • Changed 9
  • Source Changed 8
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0aed2378 on github
  • Prev Build on main (#6964)
  • Next Build on main (#6975)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc