(self, left, op, right)
| 372 | return ' '.join([OPS[op], right]) |
| 373 | |
| 374 | def BuildBinaryOperation(self, left, op, right): |
| 375 | if op == 'ne': |
| 376 | neg_result = self.BuildBinaryOperation(left, 'eq', right) |
| 377 | return self.BuildUnaryOperation('neg', neg_result) |
| 378 | OPS = { |
| 379 | 'eq': 'STREQUAL', |
| 380 | 'le': 'LESS_EQUAL', |
| 381 | 'lt': 'LESS', |
| 382 | 'ge': 'GREATER_EQUAL', |
| 383 | 'gt': 'GREATER', |
| 384 | 'and': 'AND', |
| 385 | 'or': 'OR', |
| 386 | } |
| 387 | return ' '.join([left, OPS[op], right]) |
| 388 | |
| 389 | def BuildIdentifier(self, token): |
| 390 | return self._CMakeVarRef(token) |
no test coverage detected