pieterderycke / Jace

Jace.NET is a calculation engine for the .NET platform.
MIT License
436 stars 94 forks source link

Invalid token error when using Jace in specific CultureInfo programs #18

Closed johnnyontheweb closed 9 years ago

johnnyontheweb commented 9 years ago

I get "Invalid token" error when I use Jace in specific CultureInfo programs. For example, I get this error on the character "," in a in if clause when I use the Italian Culture.

johnnyontheweb commented 9 years ago

Solve adding the line: System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; in Jace.Tokenizer.TokenReader.Read.