(scan)
| 1220 | |
| 1221 | BINARIES = ['==', '!='] |
| 1222 | def ParseOperatorExpression(scan): |
| 1223 | left = ParseAtomicExpression(scan) |
| 1224 | if not left: return None |
| 1225 | while scan.HasMore() and (scan.Current() in BINARIES): |
| 1226 | op = scan.Current() |
| 1227 | scan.Advance() |
| 1228 | right = ParseOperatorExpression(scan) |
| 1229 | if not right: |
| 1230 | return None |
| 1231 | left = Operation(left, op, right) |
| 1232 | return left |
| 1233 | |
| 1234 | |
| 1235 | def ParseConditionalExpression(scan): |
no test coverage detected
searching dependent graphs…