Documentation ¶
Index ¶
- func Start(emitter token.Emitter, inital State, input string)
- func StartWithFilenames(emitter token.Emitter, inital State, filenames ...string)
- type Lexer
- func (l *Lexer) Accept(valid string) bool
- func (l *Lexer) AcceptRun(valid string) bool
- func (l *Lexer) AcceptRunUntil(invalid string)
- func (l *Lexer) Backup()
- func (l *Lexer) Current() string
- func (l *Lexer) Emit(typ token.Type)
- func (l *Lexer) Errorf(format string, args ...interface{})
- func (l *Lexer) Ignore()
- func (l *Lexer) Next() rune
- func (l *Lexer) NextN(n int) string
- func (l *Lexer) Peek() rune
- func (l *Lexer) PeekN(n int) string
- func (l *Lexer) Run(state State)
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
Lexer lexer struct
func (*Lexer) AcceptRunUntil ¶
Click to show internal directories.
Click to hide internal directories.