github.com/couchbaselabs/nex@v0.0.0-20230419191105-421cb5932838/test/lc.nex (about) 1 /\n/{ nLines++; nChars++ } 2 /./{ nChars++ } 3 // 4 package main 5 import ("fmt";"os") 6 func main() { 7 var nLines, nChars int 8 NN_FUN(NewLexer(os.Stdin)) 9 fmt.Printf("%d %d\n", nLines, nChars) 10 }