github.com/blynn/nex@v0.0.0-20210330102341-1a3320dab988/test/rob.nex (about) 1 /[^\n]*\n/ < { isrobot = false; isrob = false } 2 /robot/ { isrobot = true } 3 /rob/ { isrob = true } 4 > { if isrob && !isrobot { fmt.Print(lex.Text()) } } 5 // 6 package main 7 import ("fmt";"os") 8 func main() { 9 var isrobot, isrob bool 10 lex := NewLexer(os.Stdin) 11 NN_FUN(lex) 12 }