Versions in this module Expand all Collapse all v0 v0.7.0 Apr 28, 2021 Changes in this version + func IsZeroPosition(p Position) bool + func PositionsEqual(p1, p2 Position) bool v0.6.5 Jun 13, 2019 Changes in this version + const Comment + const EOF + const Float + const GoTokens + const HashComment + const Ident + const Int + const KeyWord + const RawString + const Regex + const ScanChars + const ScanComments + const ScanFloats + const ScanHashComments + const ScanIdents + const ScanInts + const ScanRawStrings + const ScanRegexen + const ScanStdSizes + const ScanStrings + const ScanTimespans + const SkipComments + const StdSize + const String + const Timespan + func ScanRegexenAfter(tokens ...int) *reAfter + func TokenString(tok rune) string + type Double struct + Rune rune + Token int + type Doubles []*Double + type ErrFunc func(string) + type Keyword struct + Token int + Word string + type KeywordMap map[string]int + type Keywords []*Keyword + type Option interface + type Position = ts.Position + func ZeroPosition() Position + type RunePair struct + Left rune + Right rune + Token int + type RunePairs []*RunePair + type ScanMode int + type Scanner struct + func New(src Source, options ...Option) *Scanner + func (s *Scanner) Disable(mode ...ScanMode) + func (s *Scanner) Enable(mode ...ScanMode) + func (s *Scanner) Next() rune + func (s *Scanner) Peek() rune + func (s *Scanner) Position() Position + func (s *Scanner) Regex() *regexp.Regexp + func (s *Scanner) Scan() (tok rune) + func (s *Scanner) StdSize() stdsize.Value + func (s *Scanner) Text() string + func (s *Scanner) Timespan() *timespan.Timespan + func (s *Scanner) Token() int + func (s *Scanner) TokenString(tok rune) string + type Source interface + Name func() string