blob: 767b6d53ce25ad3e8f68e6a3f63144bed99142f4 [file] [log] [blame]
// +build ignore,OMIT
package main // idents.go
import (
"fmt"
"os"
"text/scanner"
)
func main() {
var s scanner.Scanner
s.Init(os.Stdin)
for {
switch s.Scan() {
case scanner.EOF:
return // all done
case scanner.Ident:
fmt.Println(s.TokenText())
}
}
}