--- parser3/src/include/Attic/pa_value.h 2001/02/25 08:12:21 1.28 +++ parser3/src/include/Attic/pa_value.h 2001/02/25 14:47:12 1.32 @@ -1,5 +1,5 @@ /* - $Id: pa_value.h,v 1.28 2001/02/25 08:12:21 paf Exp $ + $Id: pa_value.h,v 1.32 2001/02/25 14:47:12 paf Exp $ */ /* @@ -15,9 +15,6 @@ //#include "pa_voperator.h" #define NAME_NAME "NAME" -#define PARENTS_NAME "PARENTS" -#define STATIC_NAME "STATIC" -#define STATICS_NAME "STATICS" class Value; class VClass; @@ -86,7 +83,7 @@ public: // Value // all: for error reporting after fail(), etc virtual const char *type() const =0; - /*const*/ String *name() const { return fname; } + /*const*/ String& name() const { return *fname; } // string: value // unknown: "" @@ -101,25 +98,21 @@ public: // Value // hash: (key)=value // object_class: (field)=STATIC.value;(STATIC)=hash;(method)=method_ref with self=object_class - // object_instance: (field)=value;(STATIC)=hash;(method)=method_ref + // object_instance: (field)=value;(CLASS)=vclass;(method)=method_ref // operator_class: (field)=value - static values only - // wcontext: transparent - // frame: my or self_transparent // codeframe: wcontext_transparent - virtual Value *get_element(const String& name) { failed("is '%s', can not get element from it"); return 0; } + // methodframe: my or self_transparent + virtual Value *get_element(const String& name) { failed("type is '%s', can not get element from it"); return 0; } // hash: (key)=value // object_class, operator_class: (field)=value - static values only // object_instance: (field)=value - // wcontext: transparent - // frame: my or self_transparent // codeframe: wcontext_transparent - virtual void put_element(const String& name, Value *value) { failed("is '%s', can not put element to it"); } + // methodframe: my or self_transparent + virtual void put_element(const String& name, Value *value) { failed("type is '%s', can not put element to it"); } // object_class, object_instance: object_class - // frame: transparent - // wcontext: transparent - // codeframe: wcontext_transparent + // wcontext: none yet | transparent virtual VClass *get_class() { return 0; } public: // usage