Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArbitraryRegexp ¶
func ToScanOption ¶
func ToScanOption(x string) (node.ScanOption, error)
func ToScanOptions ¶
func ToScanOptions(xs ...string) ([]node.ScanOption, error)
Types ¶
type Expectation ¶
type Expectation struct {
SubString string
Span Span
Expressions []string
Groups []Group `json:",omitempty"`
NamedGroups []NamedGroup `json:",omitempty"`
}
func TestMatchesToExpectations ¶
func TestMatchesToExpectations(xs ...*scanner.Match) []*Expectation
func (*Expectation) Normalize ¶
func (ex *Expectation) Normalize()
func (*Expectation) String ¶
func (ex *Expectation) String() string
type NamedGroup ¶
func (NamedGroup) String ¶
func (g NamedGroup) String() string
type Test ¶
type Test struct {
Name string
Expressions []string
Input string
Options []string
Want []*Expectation
}
type TestRegexp ¶
Simplest regexp generator
Click to show internal directories.
Click to hide internal directories.