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

bassim / super-expressive-php / 20877397467

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

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.91
/src/RegexParser.php


Source Not Available

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