I there any built in library in c# or automatic code generator which recieves configuration file and builds parser of calculaton tree from string if there is no could you please help me with advice Example: "-2+5>3" I would like to build calculation tree where < is root '+' is its right son 3 is left son '-2' is left son of the + and 5 is its right son. And the tree could do evaluation in this case true or false.
Thank you.
Take a look at sprache. It's a simple parser which would allow you to build the expression tree and then evaluating it should be the easy bit.
Have you looked at the System.Linq.Expressions? for example How to convert string into System.Linq.Expressions.Expression in C#?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With