Parsing Range Expressions

Posted by sameer karjatkar on Stack Overflow See other posts from Stack Overflow or by sameer karjatkar
Published on 2010-06-09T06:26:06Z Indexed on 2010/06/09 6:32 UTC
Read the original article Hit count: 187

Filed under:

I have a string (R(46 - 9900)) AND ( NOT (R(48 - 9900))) where R denotes Range . If you evaluate the expression it results in R(46-47) , considering the logical operators (AND,NOT).

I have a requirement where I need to parse such a string and evaluate it to a correct result . I have to use C++ as a programming tool to achieve this result .

Can anyone suggest a few guide lines as to how do I proceed on this ?

© Stack Overflow or respective owner

Related posts about parse