P25 NumberParser 的类型参数写反了,应该是:
class NumberParser extends Parsec[Char, Double] { val parser: Decimal = decimal override def apply(s: State[Char]): Try[Double] = { parser ? s map {result => _.toDouble} } }
4
社区成员
6
社区内容
加载中
试试用AI创作助手写篇文章吧