为了理解其中的原理,我们必须简要了解解析器组合子的实现。
To understand how this all works, we have to take a brief dive into the parser combinator implementation.
麻生将面对前防卫大臣小池百合子的挑战,她尝试把不满小泉的人聚集起来。
Mr Aso will face a challenge from Yuriko Koike, a former defence minister, who will try to rally disaffected Koizumi followers behind her.
要将它更改为生成 case 类 AST 层次结构的实例(Expr 对象),组合子的返回类型必须更改为 Parser[Expr]。
To change it to produce instances of our case class AST hierarchy (Expr objects), the return type of the combinators has to be changed to be Parser[Expr].
应用推荐