Setting AutoWhitespace to false #27
-
Teo, Thank you for the work on this library. Is there a simple change that can be applied to the calculator sample so that autoWhiteSpace is set to false? It seems with autoWhiteSpace set to false, the calculator sample should parse "1+2" and should report an error with "1 + 2" However, when I add: expression.AutoWhitespace false after the opScope setting, "1 + 2" parses without an error. Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @jcooper0, thanks for using Farkle. I didn't quite understand your problem, but if I am guessing correctly, you have added In this case the behavior is expected, because the calculator is not using the C# sample project at all, but rather the F# one. You should modify |
Beta Was this translation helpful? Give feedback.
Hello @jcooper0, thanks for using Farkle.
I didn't quite understand your problem, but if I am guessing correctly, you have added
.AutoWhitespace(false)
toFarkle.Samples.CSharp.SimpleMaths
, then ran theFarkle.Samples.Calculator
project, entered an expression with spaces, and it nevertheless succeeded?In this case the behavior is expected, because the calculator is not using the C# sample project at all, but rather the F# one. You should modify
SimpleMaths.fs
from theFarkle.Samples.FSharp
project to change the behavior of the calculator.