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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top