How to parse a boolean expression and load it into a class?
TL;DR: If you want to see the code, jump to the second portion of the answer. I would build a tree from the expression to parse and then traverse it depth first. You can refer to the wikipedia article about Binary Expression Trees to get a feel for what I’m suggesting. Start by adding the … Read more