Documentation
¶
Overview ¶
Package analyzer implements complexity analysis for regex patterns.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer struct {
// contains filtered or unexported fields
}
Analyzer performs complexity analysis on regex patterns.
func NewAnalyzer ¶
NewAnalyzer creates a new analyzer with the given options.
type ComplexityScore ¶
type ComplexityScore struct {
Score int // 0-100 scale
Complexity string // O(1), O(n), O(n²), O(2^n)
Description string // Human-readable description
TimeClass string // constant, linear, polynomial, exponential
Degree int // For polynomial: degree (2=quadratic, 3=cubic)
Issues []string // List of contributing issues
Metrics map[string]interface{} // Detailed metrics
}
ComplexityScore contains complexity analysis results (internal format).
Click to show internal directories.
Click to hide internal directories.