blob: b96a7d6955cf7965b78a4558634579b5b4eb6d3a (
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
44
45
|
/* -*- C++ -*- */
//=============================================================================
/**
* @file enum_ch.h
*
* Concrete visitor for Enums generating code in the client header.
*
* @author Aniruddha Gokhale
*/
//=============================================================================
#ifndef _BE_VISITOR_ENUM_ENUM_CH_H_
#define _BE_VISITOR_ENUM_ENUM_CH_H_
/**
* @class be_visitor_enum_ch
*
* @brief be_visitor_enum_ch
*
* This is the base visitor for enum for the header file
*/
class be_visitor_enum_ch : public be_visitor_scope
{
public:
/// constructor
be_visitor_enum_ch (be_visitor_context *ctx);
/// destructor
~be_visitor_enum_ch () override = default;
/// visit enum.
int visit_enum (be_enum *node) override;
// =visit operations on syntactically valid elements in our scope
/// visit enum_val
int visit_enum_val (be_enum_val *node) override;
/// generate a comma after each element is processed
int post_process (be_decl *) override;
};
#endif /* _BE_VISITOR_ENUM_ENUM_CH_H_ */
|