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