Diff for /parser3/src/main/execute.C between versions 1.85 and 1.87

version 1.85, 2001/03/10 14:05:36 version 1.87, 2001/03/10 15:44:31
Line 29  char *opcode_name[]={ Line 29  char *opcode_name[]={
         "WITH_SELF",    "WITH_ROOT",    "WITH_READ",    "WITH_WRITE",          "WITH_SELF",    "WITH_ROOT",    "WITH_READ",    "WITH_WRITE",
         "GET_CLASS",          "GET_CLASS",
         "CONSTRUCT_VALUE",  "CONSTRUCT_DOUBLE",          "CONSTRUCT_VALUE",  "CONSTRUCT_DOUBLE",
         "WRITE",          "WRITE",  "STRING__WRITE",
         "GET_ELEMENT",  "GET_ELEMENT__WRITE",          "GET_ELEMENT",  "GET_ELEMENT__WRITE",
         "CREATE_EWPOOL",        "REDUCE_EWPOOL",          "CREATE_EWPOOL",        "REDUCE_EWPOOL",
         "CREATE_RWPOOL",        "REDUCE_RWPOOL",          "CREATE_RWPOOL",        "REDUCE_RWPOOL",
Line 66  void dump(int level, const Array& ops) { Line 66  void dump(int level, const Array& ops) {
                 op.cast=ops.quick_get(i);                  op.cast=ops.quick_get(i);
                 fprintf(stderr, "%*s%s", level*4, "", opcode_name[op.code]);                  fprintf(stderr, "%*s%s", level*4, "", opcode_name[op.code]);
   
                 if(op.code==OP_VALUE) {                  if(op.code==OP_VALUE || op.code==OP_STRING__WRITE) {
                         Value *value=static_cast<Value *>(ops.quick_get(++i));                          Value *value=static_cast<Value *>(ops.quick_get(++i));
                         fprintf(stderr, " \"%s\" %s", value->get_string()->cstr(), value->type());                          fprintf(stderr, " \"%s\" %s", value->get_string()->cstr(), value->type());
                 }                  }
Line 116  void Request::execute(const Array& ops) Line 116  void Request::execute(const Array& ops)
                                         root, frame, frame, local_ops);                                          root, frame, frame, local_ops);
                                                                   
                                 Value *value=NEW VJunction(j);                                  Value *value=NEW VJunction(j);
                                 ///value->set_name(frame->name());  
   
                                 // store param                                  // store param
                                 frame->store_param(value);                                  frame->store_param(value);
Line 182  void Request::execute(const Array& ops) Line 181  void Request::execute(const Array& ops)
                                 write(*value);                                  write(*value);
                                 break;                                  break;
                         }                          }
                   case OP_STRING__WRITE:
                           {
                                   VString *vstring=static_cast<VString *>(ops.quick_get(++i));
                                   fprintf(stderr, " \"%s\"", vstring->value().cstr());
                                   write(vstring->value());
                                   break;
                           }
                                                   
                 case OP_GET_ELEMENT:                  case OP_GET_ELEMENT:
                         {                          {
Line 618  Value& Request::autocalc(Value& value, c Line 624  Value& Request::autocalc(Value& value, c
                 return value;                  return value;
 }  }
   
 char *Request::execute_static(VClass& vclass, String& method_name, bool return_cstr) {  char *Request::execute_static_method(VClass& vclass, String& method_name, bool return_cstr) {
         Value *value=vclass.get_element(method_name);          Value *value=vclass.get_element(method_name);
         if(value) { // found some 'METHOD_NAME' element          if(value) { // found some 'METHOD_NAME' element
                 Junction *junction=value->get_junction();                  Junction *junction=value->get_junction();

Removed from v.1.85  
changed lines
  Added in v.1.87


E-mail: