Annotation of parser3/src/types/pa_vjunction.h, revision 1.4
1.3 paf 1: /** @file
1.4 ! paf 2: Parser: @b junction class decl.
1.3 paf 3:
1.1 paf 4: Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
1.3 paf 5:
1.2 paf 6: Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
1.1 paf 7:
1.4 ! paf 8: $Id: pa_vjunction.h,v 1.3 2001/04/26 14:55:35 paf Exp $
1.1 paf 9: */
10:
11: #ifndef PA_VJUNCTION_H
12: #define PA_VJUNCTION_H
13:
14: #include "pa_value.h"
15:
1.4 ! paf 16: /// junction is method+self+context, implemented with Junction
1.1 paf 17: class VJunction : public Value {
18: public: // VJunction
19:
20: // all: for error reporting after fail(), etc
21: const char *type() const { return "junction"; }
22:
23: // fjunction: method, root,self,rcontext, code
24: Junction *get_junction() { return &fjunction; }
25:
26: public: // usage
27:
28: VJunction(Junction& ajunction) : Value(ajunction.pool()),
29: fjunction(ajunction) {
30: }
31:
32: private:
33:
34: Junction& fjunction;
35: };
36:
37:
38: #endif
E-mail: