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

1.1       paf         1: /*
                      2:        Parser
                      3:        Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
1.2     ! paf         4:        Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
1.1       paf         5: 
1.2     ! paf         6:        $Id: pa_vjunction.h,v 1.1 2001/03/11 07:52:45 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
                     18:        const char *type() const { return "junction"; }
                     19: 
                     20:        // fjunction: method, root,self,rcontext, code
                     21:        Junction *get_junction() { return &fjunction; }
                     22: 
                     23: public: // usage
                     24: 
                     25:        VJunction(Junction& ajunction) : Value(ajunction.pool()),
                     26:                fjunction(ajunction) {
                     27:        }
                     28: 
                     29: private:
                     30: 
                     31:        Junction& fjunction;
                     32: };
                     33: 
                     34: 
                     35: #endif

E-mail: