MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / identifyOperator

Method identifyOperator

src/Eval.cpp:690–702  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

688
689////////////////////////////////////////////////////////////////////////////////
690bool 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////////////////////////////////////////////////////////////////////////////////
705std::string Eval::dump(std::vector<std::pair<std::string, Lexer::Type>>& tokens) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected