Versions in this module Expand all Collapse all v0 v0.1.2 Sep 12, 2024 Changes in this version + const EOF + type Range = directives.Range + type Scanner struct + Path string + func New(text, path string) *Scanner + func (s *Scanner) Advance() error + func (s *Scanner) Annotate(err error) error + func (s *Scanner) Backtrack() + func (s *Scanner) Current() rune + func (s *Scanner) Offset() int + func (s *Scanner) Range() Range + func (s *Scanner) RangeContinue(desc string) + func (s *Scanner) RangeEnd() + func (s *Scanner) RangeStart(desc string) + func (s *Scanner) ReadAlternative(ss []string) (Range, error) + func (s *Scanner) ReadCharacter(r rune) (Range, error) + func (s *Scanner) ReadCharacterWith(desc string, pred func(rune) bool) (Range, error) + func (s *Scanner) ReadN(n int) (Range, error) + func (s *Scanner) ReadString(str string) (Range, error) + func (s *Scanner) ReadUntil(desc string, pred func(r rune) bool) (Range, error) + func (s *Scanner) ReadWhile(pred func(r rune) bool) (Range, error) + func (s *Scanner) ReadWhile1(desc string, pred func(r rune) bool) (Range, error)