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

1.1       paf         1: /*
1.2     ! paf         2:   $Id: pa_vjunction.h,v 1.1 2001/02/24 11:20:32 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.2     ! paf        14:        const char *type() const { return "junction"; }
1.1       paf        15: 
                     16:        // junction: method, root,self,rcontext, code
                     17:        Junction *get_junction() { return &junction; }
                     18: 
                     19: public: // usage
                     20: 
                     21:        VJunction(Junction& ajunction) : Value(ajunction.pool()),
                     22:                junction(ajunction) {
                     23:        }
                     24: 
                     25: private:
                     26: 
                     27:        Junction& junction;
                     28: };
                     29: 
                     30: 
                     31: #endif

E-mail: