#include "enum.h"
#include "enum_i.h"
Include dependency graph for enum.cc:
Go to the source code of this file.
Functions | |
Type | parse_enum (Ptree *tree, Abstract_scope *scope, Ptree *name_for_anon) |
Parse an enumeration definition. More... |
|
Parse an enumeration definition. Returns the generated type. Tree is ["enum" name-or-nil brace-or-missing] Definition at line 92 of file enum.cc. References Abstract_scope::add_symbol(), Ptree::Car(), Ptree::Cdr(), compile_error(), expect_ptree(), Ptree::First(), Symbol::get_kind(), Symbol_name::get_name(), Type_symbol::get_type(), Symbol::is_defined(), Symbol_name::is_qualified(), Symbol_name::is_template(), Ptree::IsLeaf(), Symbol::k_Enum, Abstract_scope::lookup_here(), Enum_symbol::process_value(), Ptree::Second(), Type_symbol::set_defined(), Symbol_pair::tag, Ptree::Third(), and Ptree::ToString(). Referenced by Type_reader::read_type(). |