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

1.1       paf         1: /*
1.8     ! paf         2:        Parser
        !             3:        Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
        !             4:        Author: Alexander Petrosyan <paf@design.ru>
        !             5: 
        !             6:        $Id: pa_string.C,v 1.35 2001/03/10 12:12:51 paf Exp $
1.1       paf         7: */
                      8: 
                      9: #ifndef PA_VJUNCTION_H
                     10: #define PA_VJUNCTION_H
                     11: 
                     12: #include "pa_value.h"
                     13: 
                     14: class VJunction : public Value {
                     15: public: // VJunction
                     16: 
                     17:        // all: for error reporting after fail(), etc
1.7       paf        18:        const char *type() const { return "junction"; }
1.1       paf        19: 
1.3       paf        20:        // fjunction: method, root,self,rcontext, code
                     21:        Junction *get_junction() { return &fjunction; }
1.1       paf        22: 
                     23: public: // usage
                     24: 
                     25:        VJunction(Junction& ajunction) : Value(ajunction.pool()),
1.3       paf        26:                fjunction(ajunction) {
1.1       paf        27:        }
                     28: 
                     29: private:
                     30: 
1.3       paf        31:        Junction& fjunction;
1.1       paf        32: };
                     33: 
                     34: 
                     35: #endif

E-mail: