我采取了这些步骤:
download windows binary Mercury 14.01 (Visual Studio 2013 32bit)
(this is near the bottom of http://dl.mercurylang.org/index.html)
double click the downloaded file (it's a .exe file), it installed into 'C:\mercury-14.01-vs2013\
add 'C:\mercury-14.01-vs2013\bin' to Path
open a cmd.exe window
create file hello.m from Ralph Beckett's intro
add the hello.m file to 'C:\mercury-14.01-vs2013\bin' (illogical, Captain)
in the cmd.exe window type 'mmc --make hello'
但 Windows 会为 Microsoft 管理控制台弹出一个对话框。
如何在 .m 文件上调用 Melbourne Mercury 14 编译器?之前的 stackoverflow 问题是针对 Mercury 11.07.1 的,它指的是 Mercury 14 中没有的 README 文件。
Mercury 适合我希望的跨平台工具链:
exploratory Prolog -> Mercury -> .NET -> Xamarin.Forms in Visual Studio -> all app stores
平台:Windows 10、Mercury 14、Visual Studio Community 2017