Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

enum.cc File Reference

#include "enum.h"
#include "enum_i.h"

Include dependency graph for enum.cc:

Include dependency graph

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...


Function Documentation

Type parse_enum Ptree   tree,
Abstract_scope   scope,
Ptree   name_for_anon
 

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().


Generated on Mon Feb 10 17:33:31 2003 for VFiasco Semantics Compiler by doxygen1.2.15