gpt4 book ai didi

ocaml - camlp4 : there is no quotation expander available

转载 作者:行者123 更新时间:2023-12-05 00:38:39 26 4
gpt4 key购买 nike

文件test.ml仅包含一行:

let foo = <:expr< foo >>

然后我使用以下命令行将camlp4应用于该文件:
camlp4o pa_extend.cmo test.ml

输出是:
File "test.ml", line 1, characters 12-24:
While finding quotation "expr" in a position of "expr":
There is no quotation expander available.
Camlp4: Uncaught exception: Not_found

我希望对文件进行预处理,并对报价进行适当扩展。我在这里忘记了什么?

最佳答案

如果 ocaml >= 3.10,则不应使用 pa_extend.cmo但新的报价模块。它们被包装在 camlp4of可以直接使用而不是 camlp4 的可执行文件(或 camlp4rf 修改语法)。

关于ocaml - camlp4 : there is no quotation expander available,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5323453/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com