我一直在开发一个编译器,但是在切换到PowerPack 1.9.9.9和VS2010的发布版本后,我无法编译以下行:
let lexbuf = Lexing.from_string text
我得到了以下两个错误:
"The value, constructor, namespace or type 'from_string' is not defined",很明显它试图告诉我什么,但解决方法是什么呢?
我的猜测是这个函数已被重命名为fromString
(因为,通常情况下,带有下划线的函数例如of_seq
现在都会采用camelCase
写法)。
Lexing.LexBuffer<_>.FromString ?