Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in TokenStringDFA #105

Open
anth-git opened this issue Apr 21, 2023 · 0 comments
Open

Bug in TokenStringDFA #105

anth-git opened this issue Apr 21, 2023 · 0 comments

Comments

@anth-git
Copy link

TokenStringDFA methods use Char.ToLower() instead of Char.ToLowerInvariant().
This is problem for example in Turkish culture, because capital letter I is converted to dotless ı, and an expression cannot be tokenized:

Steps to reproduce

Thread.CurrentThread.CurrentCulture = new CultureInfo("tr-TR");
_expressionContext.CompileGeneric<double>("IF (R < 0.8; 1; 2)");

->

Flee.Parsing.ParseException: unexpected character 'I', on line: 1 column: 1
   at Flee.Parsing.Tokenizer.NextToken() in ...\Flee-master\src\Flee\Parsing\Tokenizer.cs:line 207
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant