Documentation ¶
Index ¶
- func IsEOF(item Item) bool
- func IsNumber(r rune) bool
- func IsSpace(r rune) bool
- type Item
- type Lexer
- func (l *Lexer) Accept(valid string) (bool, error)
- func (l *Lexer) AcceptFunc(f func(rune) bool) (bool, error)
- func (l *Lexer) AcceptRun(valid string) (n int, err error)
- func (l *Lexer) AcceptRunFunc(f func(rune) bool) (n int, err error)
- func (l *Lexer) Backup()
- func (l *Lexer) EOF() bool
- func (l *Lexer) Emit(itemType string)
- func (l *Lexer) Errorf(next StateFunc, format string, args ...any) StateFunc
- func (l *Lexer) Fatalf(format string, args ...any) StateFunc
- func (l *Lexer) Ignore()
- func (l *Lexer) Next() (r rune, err error)
- func (l *Lexer) NextItem() (item Item)
- func (l *Lexer) Peek() (r rune, err error)
- func (l *Lexer) Run() []byte
- type StateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.