Annotation of parser3/src/include/pa_vjunction.h, revision 1.4

1.1       paf         1: /*
1.4     ! paf         2:   $Id: pa_vjunction.h,v 1.3 2001/03/08 12:19:20 paf Exp $
1.1       paf         3: */
                      4: 
                      5: #ifndef PA_VJUNCTION_H
                      6: #define PA_VJUNCTION_H
                      7: 
                      8: #include "pa_value.h"
                      9: 
                     10: class VJunction : public Value {
                     11: public: // VJunction
                     12: 
                     13:        // all: for error reporting after fail(), etc
1.3       paf        14:        const char *type() const { return "fjunction"; }
1.4     ! paf        15: 
        !            16:        // clone
        !            17:        Value *clone() { return NEW VJunction(fjunction); };
1.1       paf        18: 
1.3       paf        19:        // fjunction: method, root,self,rcontext, code
                     20:        Junction *get_junction() { return &fjunction; }
1.1       paf        21: 
                     22: public: // usage
                     23: 
                     24:        VJunction(Junction& ajunction) : Value(ajunction.pool()),
1.3       paf        25:                fjunction(ajunction) {
1.1       paf        26:        }
                     27: 
                     28: private:
                     29: 
1.3       paf        30:        Junction& fjunction;
1.1       paf        31: };
                     32: 
                     33: 
                     34: #endif

E-mail: