3 //=============================================================================
7 * Concrete visitor for the STRUCTURE class
8 * This one provides the generic visitor for the Structure node.
10 * @author Aniruddha Gokhale
12 //=============================================================================
14 #ifndef _BE_VISITOR_STRUCTURE_STRUCTURE_H_
15 #define _BE_VISITOR_STRUCTURE_STRUCTURE_H_
18 * @class be_visitor_structure
20 * @brief be_visitor_structure
22 * This is the base visitor for structure
24 class be_visitor_structure
: public be_visitor_scope
28 be_visitor_structure (be_visitor_context
*ctx
);
31 ~be_visitor_structure () override
= default;
33 /// visit structure. We provide code for this method in the derived class
34 int visit_structure (be_structure
*node
) override
;
36 // =visit operations on syntactically valid elements in our scope
39 int visit_field (be_field
*node
) override
;
42 #endif /* _BE_VISITOR_STRUCTURE_STRUCTURE_H_ */