///////////////////////////////////////////////////////////////////////////
| 688 | |
| 689 | //////////////////////////////////////////////////////////////////////////////// |
| 690 | bool Eval::identifyOperator(const std::string& op, char& type, unsigned int& precedence, |
| 691 | char& associativity) const { |
| 692 | for (const auto& opr : operators) { |
| 693 | if (opr.op == op) { |
| 694 | type = opr.type; |
| 695 | precedence = opr.precedence; |
| 696 | associativity = opr.associativity; |
| 697 | return true; |
| 698 | } |
| 699 | } |
| 700 | |
| 701 | return false; |
| 702 | } |
| 703 | |
| 704 | //////////////////////////////////////////////////////////////////////////////// |
| 705 | std::string Eval::dump(std::vector<std::pair<std::string, Lexer::Type>>& tokens) const { |
nothing calls this directly
no outgoing calls
no test coverage detected