Documentation ¶
Index ¶
- Constants
- type Range
- type 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)
Constants ¶
View Source
const EOF = rune(-1)
EOF is a rune representing the end of a file
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Range ¶
type Range = directives.Range
type Scanner ¶
type Scanner struct { Path string // contains filtered or unexported fields }
Scanner is a scanner.
func (*Scanner) RangeContinue ¶
func (*Scanner) RangeStart ¶
func (*Scanner) ReadCharacter ¶
ReadCharacter consumes the given rune.
func (*Scanner) ReadCharacterWith ¶
ReadCharacter consume a rune satisfying the predicate.
func (*Scanner) ReadString ¶
ReadString parses the given string.
Click to show internal directories.
Click to hide internal directories.