FsLex 随最新 PowerPack 发生变化?

发布于 2024-09-11 02:44:25 字数 199 浏览 3 评论 0原文

我已经在编译器上工作了一段时间,但在更改为 PowerPack 1.9.9.9 和 VS2010 的发行版本后,我无法编译以下行:

let lexbuf = Lexing.from_string text

我收到以下两个错误:

“值、构造函数、命名空间或类型‘from_string’未定义”很明显它想告诉我什么,但解决方案是什么?

I've been working on a compiler for a while but after changing to PowerPack 1.9.9.9 and the release version of VS2010 I'm no unable to compile the following line:

let lexbuf = Lexing.from_string text

I get the following two error:

"The value, constructor, namespace or type 'from_string' is not defined" pretty obviopus what it's trying to tell me but what's the resolution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

宛菡 2024-09-18 02:44:25

我的快速猜测是这个函数已被重命名为 fromString (因为,一般来说,带有下划线的函数,例如 of_seq 现在是用 camelCase 编写的)。

My quick guess is that this function has been renamed to fromString (because, in general, functions with underscores such as of_seq are now written in camelCase).

夏九 2024-09-18 02:44:25

Lexin.LexBuffer<_>.FromString ?

Lexing.LexBuffer<_>.FromString ?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文