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

bassim / super-expressive-php / 20877397467
93%
master: 93%

Build:
Build:
LAST BUILD BRANCH: feature/regex-parser
DEFAULT BRANCH: master
Ran 10 Jan 2026 11:09AM UTC
Jobs 1
Files 12
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

10 Jan 2026 11:08AM UTC coverage: 92.972% (-0.3%) from 93.29%
20877397467

Pull #13

github

bassim
Refactor RegexParser with clean architecture

Major refactoring to improve code quality and maintainability:

New structure:
- Parser/Lexer.php: Tokenization with declarative token matching
- Parser/Token.php: Value object for tokens
- Parser/Node.php: Base class for AST nodes
- Parser/Quantifier.php: Encapsulates quantifier logic
- Parser/Nodes/*: Specific node types (Simple, Literal, CharSet, Container, Flag)

Benefits:
- Single Responsibility: Each class has one job
- Declarative: Mappings in const arrays instead of long switch statements
- Testable: Components can be tested independently
- Extensible: Adding new node types is straightforward

RegexParser reduced from ~900 to 233 lines.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Pull Request #13: Add RegexParser to convert regex strings to SuperExpressive code

323 of 349 new or added lines in 11 files covered. (92.55%)

754 of 811 relevant lines covered (92.97%)

15.56 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
93.94
src/Parser/Nodes/CharSetNode.php
2
85.71
src/RegexParseException.php
9
90.91
src/RegexParser.php
13
91.45
src/Parser/Lexer.php
Jobs
ID Job ID Ran Files Coverage
1 20877397467.1 10 Jan 2026 11:08AM UTC 12
92.97
GitHub Action Run
Source Files on build 20877397467
  • Tree
  • List 12
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #13
  • PR Base - master (#20870953100)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc