Diff for /parser3/src/include/Attic/pa_wcontext.h between versions 1.16 and 1.21

version 1.16, 2001/02/25 13:23:01 version 1.21, 2001/03/06 15:02:47
Line 13  class WContext : public Value { Line 13  class WContext : public Value {
 public: // Value  public: // Value
   
         // all: for error reporting after fail(), etc          // all: for error reporting after fail(), etc
         const char *type() const { return "WContext"; }          const char *type() const { return "wcontext"; }
         // WContext: accumulated string          // WContext: accumulated string
         String *get_string() { return &string; };          String *get_string() { return &string; };
   
           // WContext: none yet | transparent
           VClass *get_class() { return fvalue?fvalue->get_class():0; }
           // wcontext: transparent
           VAliased *get_aliased() { return fvalue?fvalue->get_aliased():0; }
   
 public: // WContext  public: // WContext
   
         // appends a string to result          // appends a string to result
Line 28  public: // WContext Line 33  public: // WContext
   
 public: // usage  public: // usage
   
         WContext(Pool& apool, Value *avalue) : Value(apool),           WContext(Pool& apool, Value *avalue, bool aconstructing) : Value(apool), 
                 fvalue(avalue),                  fvalue(avalue),
                   fconstructing(aconstructing),
                 string(*new(apool) String(apool)) {                  string(*new(apool) String(apool)) {
         }          }
   
           bool constructing() { return fconstructing; }
   
         // retrives the resulting value          // retrives the resulting value
         Value *object() const {          Value *object() const {
                 return fvalue;                  return fvalue;
Line 46  public: // usage Line 54  public: // usage
 protected:  protected:
         Value *fvalue;          Value *fvalue;
 private:  private:
           bool fconstructing;
         String& string;          String& string;
 };  };
   

Removed from v.1.16  
changed lines
  Added in v.1.21


E-mail: