blob: 70054836d988321184a464c8ad3a6bffe41a05fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/* -*- c++ -*- */
//=============================================================================
/**
* @file structure.h
*
* Concrete visitor for the STRUCTURE class
* This one provides the generic visitor for the Structure node.
*
* @author Aniruddha Gokhale
*/
//=============================================================================
#ifndef _BE_VISITOR_STRUCTURE_STRUCTURE_H_
#define _BE_VISITOR_STRUCTURE_STRUCTURE_H_
/**
* @class be_visitor_structure
*
* @brief be_visitor_structure
*
* This is the base visitor for structure
*/
class be_visitor_structure : public be_visitor_scope
{
public:
/// constructureor
be_visitor_structure (be_visitor_context *ctx);
/// destructureor
~be_visitor_structure (void);
/// visit structure. We provide code for this method in the derived class
virtual int visit_structure (be_structure *node);
// =visit operations on syntactically valid elements in our scope
/// visit field
virtual int visit_field (be_field *node);
};
#endif /* _BE_VISITOR_STRUCTURE_STRUCTURE_H_ */
|