Documentation
¶
Index ¶
- func New(tokens ...Token) string
- type Flag
- type Pattern
- func Character() Pattern
- func Digit() Pattern
- func Either(ps ...Pattern) Pattern
- func Letter() Pattern
- func LineEnd() Pattern
- func LineStart() Pattern
- func Literally(literal string) Pattern
- func Lowercase() Pattern
- func Maybe(p Pattern) Pattern
- func MaybeSome(p Pattern) Pattern
- func Newline() Pattern
- func NotDigit() Pattern
- func NotLetter() Pattern
- func NotLowercase() Pattern
- func NotUppercase() Pattern
- func NotWhitespace() Pattern
- func NotWord() Pattern
- func NotWordBoundary() Pattern
- func OneOf(chars ...rune) Pattern
- func Some(p Pattern) Pattern
- func Tab() Pattern
- func TextEnd() Pattern
- func TextStart() Pattern
- func Uppercase() Pattern
- func Whitespace() Pattern
- func Word() Pattern
- func WordBoundary() Pattern
- type Repeater
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Flag ¶
func CaseIgnored ¶
func CaseIgnored() Flag
func Multilined ¶
func Multilined() Flag
func Singlelined ¶
func Singlelined() Flag
type Pattern ¶
type Pattern interface {
Token
With(...Flag) Pattern
Or(Pattern) Pattern
Then(Pattern) Pattern
Grouped() Pattern
GroupedAs(name string) Pattern
Lazily() Pattern
}
func NotLowercase ¶
func NotLowercase() Pattern
func NotUppercase ¶
func NotUppercase() Pattern
func NotWhitespace ¶
func NotWhitespace() Pattern
func NotWordBoundary ¶
func NotWordBoundary() Pattern
func Whitespace ¶
func Whitespace() Pattern
func WordBoundary ¶
func WordBoundary() Pattern
Click to show internal directories.
Click to hide internal directories.