func newScanner(r io.Reader) *scanner {
	return &scanner{r: bufio.NewReader(r), pos: TokenPos{Char: 0, Lines: []int{}}}
}
newScanner returns a new instance of Scanner.
package asyncpi
import (
	"bufio"
	"bytes"
	"io"
)
type scanner struct {
	r   *bufio.Reader
	pos TokenPos
}