(scan)
| 1233 | |
| 1234 | |
| 1235 | def ParseConditionalExpression(scan): |
| 1236 | left = ParseOperatorExpression(scan) |
| 1237 | if not left: return None |
| 1238 | while scan.HasMore() and (scan.Current() == 'if'): |
| 1239 | scan.Advance() |
| 1240 | right = ParseOperatorExpression(scan) |
| 1241 | if not right: |
| 1242 | return None |
| 1243 | left= Operation(left, 'if', right) |
| 1244 | return left |
| 1245 | |
| 1246 | |
| 1247 | LOGICALS = ["&&", "||", ","] |
no test coverage detected
searching dependent graphs…