【发布时间】:2014-01-29 20:38:22
【问题描述】:
为什么这个简单的 scala 组合器解析器示例会失败?
def test: Parser[String] = "< " ~> ident <~ " >"
当我提供以下字符串时:
"< a >"
我收到此错误:
[1.8] failure: ` >' expected but `&' found
< a >
^
为什么它会在太空中绊倒?
【问题讨论】:
标签: scala parsing combinators