Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferScanner ¶
type BufferScanner struct {
// contains filtered or unexported fields
}
Wrap Scanner with a buffer
func NewBufferScanner ¶
func NewBufferScanner(s *Scanner) *BufferScanner
func (*BufferScanner) Peek ¶
func (bs *BufferScanner) Peek() TokenText
Peek() return next token but it's still there return scan result and set cached is true
func (*BufferScanner) Scan ¶
func (bs *BufferScanner) Scan() TokenText
Scan() return next token and it's gone if cached is true -> return buffer and set cached is false if cached is false -> return scanner result and stores it in buffer
Click to show internal directories.
Click to hide internal directories.