1 // Copyright 2015 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
17 // This is scanned code.
22 s
.Init(strings
.NewReader(src
))
23 s
.Filename
= "example"
24 for tok
:= s
.Scan(); tok
!= scanner
.EOF
; tok
= s
.Scan() {
25 fmt
.Printf("%s: %s\n", s
.Position
, s
.TokenText())
34 // example:4:2: someParsable