Scala combinator parser, what does >> mean?
问题 I am little bit confusing about ">>" in scala. Daniel said in Scala parser combinators parsing xml? that it could be used to parameterize the parser base on result from previous parser. Could someone give me some example/hint ? I already read scaladoc but still not understand it. thanks 回答1: As I said, it serves to parameterize a parser, but let's walk through an example to make it clear. Let's start with a simple parser, that parses a number follow by a word: def numberAndWord = number ~