func main() { bs, err := ioutil.ReadAll(os.Stdin) errors.Fatal(err) for _, x := range lexer.Matches(os.Args[1], string(bs)) { fmt.Printf("%s\n", x) } }
func (self *Lexer) ForceRegex(re string, m RegexSet) *BasicState { res, err := self.Regex(re, m) if err != nil { println(re, err.Error()) } bwlerrors.Fatal(err) return res }
func (self *Lexer) ForceRegex(re string, m RegexSet) *BasicState { res, err := self.Regex(re, m) errors.Fatal(err) return res }