Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
func NewFromString ¶
func NewFromString(input string, opts ...OptionFunc) *Lexer
func (*Lexer) RegisterCustomTokens ¶ added in v1.7.0
type OptionFunc ¶
type OptionFunc func(o *Option)
func WithCustomTokens ¶ added in v1.7.0
func WithCustomTokens(idents ...string) OptionFunc
func WithFile ¶
func WithFile(filename string) OptionFunc
Click to show internal directories.
Click to hide internal directories.