#include <enum.h>
Inheritance diagram for Enum_symbol:
Public Methods | |
Enum_symbol () | |
~Enum_symbol () | |
Symbol::Kind | get_kind () const |
Ptree * | process_value (Ptree *tree, Ptree *previous, Abstract_scope *scope) |
Process an enumerator definition. More... | |
Private Attributes | |
std::vector< Variable_symbol * > | values |
We use the following representation for enums:
Definition at line 23 of file enum.h.
|
Definition at line 19 of file enum.cc. References Symbol::set_status(), and Symbol::st_Declared. |
|
|
|
Implements Symbol. Definition at line 33 of file enum.cc. References Symbol::k_Enum. |
|
Process an enumerator definition.
Definition at line 45 of file enum.cc. References Abstract_scope::add_symbol(), compile_error(), Expr_result::do_integral_promotions(), expect_ptree(), Ptree::First(), Expr_result::get_tree(), Type_symbol::get_type(), Expr_result::get_type(), Ptree::GetLength(), Ptree::GetPosition(), Source::instance(), Type::is_int(), Ptree::IsLeaf(), Ptree::List(), ntName, s_None, Ptree::Second(), Ptree::Third(), Ptree::ToString(), and values. Referenced by parse_enum(). |
|
Definition at line 24 of file enum.h. Referenced by process_value(). |