Versions in this module Expand all Collapse all v0 v0.2.3 Jul 15, 2022 v0.2.2 Feb 27, 2018 Changes in this version + type Action func(scan *Scanner, match *machines.Match) (interface{}, error) + type Lexer struct + func NewLexer() *Lexer + func (l *Lexer) Add(regex []byte, action Action) + func (l *Lexer) Compile() error + func (l *Lexer) CompileDFA() error + func (l *Lexer) CompileNFA() error + func (l *Lexer) Scanner(text []byte) (*Scanner, error) + type Scanner struct + TC int + Text []byte + func (s *Scanner) Next() (tok interface{}, err error, eos bool) + func (s *Scanner) Token(typ int, value interface{}, m *machines.Match) *Token + type Token struct + EndColumn int + EndLine int + Lexeme []byte + StartColumn int + StartLine int + TC int + Type int + Value interface{} + func (t *Token) Equals(other *Token) bool + func (t *Token) String() string