/////////////////////////////////////////////////////////////////////////// Exponent --> Primitive ["^" Primitive]
| 547 | //////////////////////////////////////////////////////////////////////////////// |
| 548 | // Exponent --> Primitive ["^" Primitive] |
| 549 | bool Eval::parseExponent(std::vector<std::pair<std::string, Lexer::Type>>& infix, |
| 550 | unsigned int& i) const { |
| 551 | if (i < infix.size() && parsePrimitive(infix, i)) { |
| 552 | while (i < infix.size() && infix[i].second == Lexer::Type::op && infix[i].first == "^") { |
| 553 | ++i; |
| 554 | if (!parsePrimitive(infix, i)) return false; |
| 555 | } |
| 556 | |
| 557 | return true; |
| 558 | } |
| 559 | |
| 560 | return false; |
| 561 | } |
| 562 | |
| 563 | //////////////////////////////////////////////////////////////////////////////// |
| 564 | // Primitive --> "(" Logical ")" | Variant |
nothing calls this directly
no outgoing calls
no test coverage detected