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

Method parseExponent

src/Eval.cpp:549–561  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////// Exponent --> Primitive ["^" Primitive]

Source from the content-addressed store, hash-verified

547////////////////////////////////////////////////////////////////////////////////
548// Exponent --> Primitive ["^" Primitive]
549bool 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected