(scan)
| 1246 | |
| 1247 | LOGICALS = ["&&", "||", ","] |
| 1248 | def ParseLogicalExpression(scan): |
| 1249 | left = ParseConditionalExpression(scan) |
| 1250 | if not left: return None |
| 1251 | while scan.HasMore() and (scan.Current() in LOGICALS): |
| 1252 | op = scan.Current() |
| 1253 | scan.Advance() |
| 1254 | right = ParseConditionalExpression(scan) |
| 1255 | if not right: |
| 1256 | return None |
| 1257 | left = Operation(left, op, right) |
| 1258 | return left |
| 1259 | |
| 1260 | |
| 1261 | def ParseCondition(expr): |
no test coverage detected
searching dependent graphs…