Documentation ¶
Index ¶
- type Error
- type Scanner
- func (s *Scanner) ClearErrors()
- func (s *Scanner) Error(pos token.Pos, msg string) *Error
- func (s *Scanner) Errors() token.ErrorList
- func (s *Scanner) File() *token.File
- func (s *Scanner) Init(file *token.File, src io.Reader)
- func (s *Scanner) PosEnd() (token.Pos, token.Pos)
- func (s *Scanner) Position(pos token.Pos) token.Position
- func (s *Scanner) Scan() (token.Token, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func (*Scanner) Init ¶
(re)initialize internal buffers, then set io.Reader does NOT clear accumulated errors
Click to show internal directories.
Click to hide internal directories.