Beispiel #1
0
    inline INT_T execute_normal(std::vector<INT_T> &context) {
      INT_T tmp = 0;
      if (left_ != nullptr) {
        tmp = left_->execute_normal(context);
      }

      IntAtom *ia = reinterpret_cast<IntAtom*>(right_);
      return tmp + ia->value();
    }
Beispiel #2
0
 inline INT_T execute_normal(std::vector<INT_T> &context) {
   context[index_] = expr_->execute_normal(context);
   return 0;
 }