Handles the following part of the grammar: '(' E ')'
| 186 | |
| 187 | // Handles the following part of the grammar: '(' E ')' |
| 188 | static Condition* Parentheses(const char** str, Condition* c, char openPar, char closePar) |
| 189 | { |
| 190 | if (next == openPar) |
| 191 | { |
| 192 | scan(str); |
| 193 | |
| 194 | if (!c) return 0; |
| 195 | |
| 196 | c->lhs = Connect(str); |
| 197 | |
| 198 | if (next == closePar) |
| 199 | { |
| 200 | scan(str); |
| 201 | return c; |
| 202 | } |
| 203 | else |
| 204 | { |
| 205 | return 0; |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | return 0; |
| 210 | } |
| 211 | |
| 212 | /* |
| 213 | * Check for primitives |