OK, doing a bit of thread necromancy here (3 weeks, still acceptable here?)
Puneet, I might have something for you. IIUC, you want to parse expressions that are
- an association of boolean expressions (&&, ||, !)
- each boolean expression is an equation (=, <=, >, etc)
- each equation lhs or rhs is an arithmetic expression (+, -, *, /)
- atoms in an arithmetic expression can be numbers or variablesIs that it?
You do realize that any parse tree will for these constructs will be quite deep, right? I mean, 10-levels deep or somesuch.