I need an algorithm that parse an expression and translate into C# expression. For example an input string looks like:
MSG[CORRECTION] AND (NOT TIMERRUN[CYCLE] OR TIME[SHIFT]>120)
and after translate:
message.Tag =="CORRECTION" && (!timers["CYCLE"].IsRunning || timers["SHIFT"].value>120)
Currently I use Regex replace to translate, but I'd like a more elegant and more stable solution. I don't want evaluate the expressions, only translate them. The best solution would be a library. Thanks.