Documentation ¶
Index ¶
Examples ¶
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
}
A Scanner tokenizes runes from an io.Reader.
Example ¶
package main import ( "io" "github.com/DeedleFake/wdte/scanner" ) var r io.Reader func main() { s := scanner.New(r) for s.Scan() { /* Do something with s.Tok(). */ } if err := s.Err(); err != nil { panic(err) } }
Output:
func (*Scanner) Pos ¶
Pos returns the line and column of the input that the scanner is currently on.
Click to show internal directories.
Click to hide internal directories.