--- parser3/src/include/Attic/pa_vjunction.h 2001/03/06 15:02:47 1.2 +++ parser3/src/include/Attic/pa_vjunction.h 2001/03/08 16:54:25 1.4 @@ -1,5 +1,5 @@ /* - $Id: pa_vjunction.h,v 1.2 2001/03/06 15:02:47 paf Exp $ + $Id: pa_vjunction.h,v 1.4 2001/03/08 16:54:25 paf Exp $ */ #ifndef PA_VJUNCTION_H @@ -11,20 +11,23 @@ class VJunction : public Value { public: // VJunction // all: for error reporting after fail(), etc - const char *type() const { return "junction"; } + const char *type() const { return "fjunction"; } - // junction: method, root,self,rcontext, code - Junction *get_junction() { return &junction; } + // clone + Value *clone() { return NEW VJunction(fjunction); }; + + // fjunction: method, root,self,rcontext, code + Junction *get_junction() { return &fjunction; } public: // usage VJunction(Junction& ajunction) : Value(ajunction.pool()), - junction(ajunction) { + fjunction(ajunction) { } private: - Junction& junction; + Junction& fjunction; };