github.com/skycoinproject/nex@v0.0.0-20191231010827-3bb2d0c49bc5/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 }