在Fparsec V.0.8中,有FParser.CharParser.whitespace。但是在Fparsec 0.9.2中,没有FParser.CharParser.whitespace.Where是Fparsec v.0.9.2中的空格吗?
当我尝试编译项目“用F#在48小时内给自己写一个方案”(访问http://code.msdn.microsoft.com/Write-Yourself-a-Scheme-in-d50ae449)时,遇到了这个问题。
发布于 2013-05-04 15:25:33
我是FParser.CharParser.spaces。
您链接的代码在该行失败:
let spaces1 : LispParser<unit> = skipMany1 whitespace但是也有已经定义的spaces1,所以您只需删除该行,它就会编译。
看一看http://www.quanttec.com/fparsec/reference/charparsers.html#members.spaces
https://stackoverflow.com/questions/16370445
复制相似问题