Parser Routine in C#

  • Thread starter Thread starter David
  • Start date Start date
D

David

I need to write a small routine in C# that will parse/decode/evaluate
a complex if statement that will be entered by a user.

, ex. "a= 1 and b = 2 and ((c = 3 and d = 4) or (e = 1 and f = 3))

I know that this is compiler 101, but I have not done this is 20 years
and need some points on how to proceed. I remember using a tree.

Code examples in VB, C++, etc. would be great. All I need is a
direction and I go from there.

Thanks
 
Back
Top