dynamicexpresso / DynamicExpresso

C# expressions interpreter
http://dynamic-expresso.azurewebsites.net/
MIT License
2.02k stars 379 forks source link

When calculating an expression, an error is reported if the expression has [] in it. #337

Open landonzeng opened 2 days ago

landonzeng commented 2 days ago

Error in calculation of (-CWPT_007_P)+[1-(-0.3)]: Expression expected (at index 14). image image image

davideicardi commented 1 day ago

Can you post some actual text code to reproduce the problem?

metoule commented 1 day ago

You're using brackets as parenthesis, which is not supported:

(-23)+[1-(-0.3)]

should be

(-23)+(1-(-0.3))