FsLex 随最新 PowerPack 发生变化?
我已经在编译器上工作了一段时间,但在更改为 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我的快速猜测是这个函数已被重命名为
fromString
(因为,一般来说,带有下划线的函数,例如of_seq
现在是用camelCase
编写的)。My quick guess is that this function has been renamed to
fromString
(because, in general, functions with underscores such asof_seq
are now written incamelCase
).Lexin.LexBuffer<_>.FromString ?
Lexing.LexBuffer<_>.FromString ?