--- parser3/src/include/Attic/pa_value.h 2001/03/08 13:13:39 1.44 +++ parser3/src/include/Attic/pa_value.h 2001/03/08 16:54:25 1.46 @@ -1,5 +1,5 @@ /* - $Id: pa_value.h,v 1.44 2001/03/08 13:13:39 paf Exp $ + $Id: pa_value.h,v 1.46 2001/03/08 16:54:25 paf Exp $ */ /* @@ -85,6 +85,7 @@ public: // Value // all: for error reporting after fail(), etc virtual const char *type() const =0; String& name() const { return *fname; } + virtual Value *clone() const { failed("cloning '%s'"); return 0; } // unknown: false // others: true @@ -93,6 +94,7 @@ public: // Value // string: value // unknown: "" // double: value + // bool: must be 0: so in ^if(1>2) it would'nt become "FALSE" string which is 'true' // others: 0 virtual String *get_string() { return 0; } @@ -158,7 +160,7 @@ private: private: - void failed(char *action); + void failed(char *action) const; }; #endif