VS2013专业版如何运行FParsec?
我尝试使用以下 nuget 包:
我尝试自己编译https://bitbucket.org/fparsec/main的源代码并使用生成的 dll:FParsec.dll和FParsecCS.dll。
但无论哪种方式,我总是在运行教程代码时遇到以下异常:
System.MissingMethodException
Method not found:
Microsoft.FSharp.Core.FSharpFunc`2<FParsec.CharStream`1<!!0>,FParsec.Reply`1<Double>> FParsec.CharParsers.pfloat()"
谁能提供让 FParsec 在 VS2013 上运行的分步解决方案?
这是我尝试运行的代码:
open FParsec
[<EntryPoint>]
let main args =
let str s = pstring s // This line works
let floatBetweenBrackets = str "[" >>. pfloat .>> str "]" // This line breaks
Console.ReadKey() |> ignore
0