Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FsLex changed with latest PowerPack?

Tags:

f#

fslex

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?

like image 968
Rune FS Avatar asked Mar 06 '26 00:03

Rune FS


2 Answers

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).

like image 143
Tomas Petricek Avatar answered Mar 08 '26 18:03

Tomas Petricek


Lexing.LexBuffer<_>.FromString ?

like image 37
desco Avatar answered Mar 08 '26 18:03

desco



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!