Versions in this module Expand all Collapse all v1 v1.0.2 Dec 16, 2021 Changes in this version type L + func (l *L) PeekMany(n int) rune v1.0.1 Dec 15, 2021 Changes in this version + func NewRuneStack() runeStack + func NewStateStack() stateStack + type L struct + Err error + ErrorHandler func(e string) + Input string + Position int + Rewind runeStack + Start int + StartState StateFunc + StateRecord stateStack + Tokens chan Token + func New(src string, Start StateFunc) *L + func (l *L) Backup() bool + func (l *L) BackupEmit(t TokenType) + func (l *L) BackupToEmission() bool + func (l *L) BackupToEmissionEmit(t TokenType) + func (l *L) Current() string + func (l *L) Emit(t TokenType) + func (l *L) Error(e string) + func (l *L) Ignore() + func (l *L) IgnoreCharacter() + func (l *L) Next() rune + func (l *L) NextToken() (*Token, bool) + func (l *L) Peek() rune + func (l *L) RunLexer() + func (l *L) RunLexerSync() + func (l *L) Take(chars string) bool + func (l *L) TakeMany(chars string) + func (l *L) TakeManyPattern(p *regexp.Regexp) + func (l *L) TakePattern(p *regexp.Regexp) bool + type StateFunc func(*L) StateFunc + type Token struct + End int + Start int + Type TokenType + Value string + func (t Token) String() string + type TokenType int + const EOFToken + const ErrorToken