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

Source Class Reference

Parsed source code in memory-resident database. More...

#include <source.h>

Collaboration diagram for Source:

Collaboration graph
[legend]
List of all members.

Public Methods

void parse (const char *filename)
void parse (const char *filename, Program *program)
void dump ()
Parserparser ()
Ptreetranslate (Walker *w)
Programprogram ()

Static Public Methods

Source & instance ()

Private Methods

 Source (const Source &)
 Declaration of undefined copy constructor. More...

 Source ()
 ~Source ()

Private Attributes

Program_src_prog
Lex_lex
Parser_parser
PtreeArray _def

Friends

class Loki::CreateUsingNew< Source >

Detailed Description

Parsed source code in memory-resident database.

This is a singleton class.

Definition at line 27 of file source.h.


Constructor & Destructor Documentation

Source::Source const Source &    [private]
 

Declaration of undefined copy constructor.

Source::Source   [private]
 

Definition at line 22 of file source.cc.

Source::~Source   [private]
 

Definition at line 29 of file source.cc.


Member Function Documentation

void Source::dump  
 

Definition at line 71 of file source.cc.

References _def, PtreeArray::All(), and Ptree::Display2().

Source & Source::instance   [static]
 

Definition at line 14 of file source.cc.

Referenced by find_leaf(), Template_class_symbol::get_specialisation(), main(), Init_handler::make_constructor_call(), parse_class(), process(), Init_handler::process_brace(), Init_handler::process_class(), process_function_body(), Enum_symbol::process_value(), and visit_template().

void Source::parse const char *    filename,
Program   program
 

Definition at line 47 of file source.cc.

References _def, _lex, _parser, _src_prog, PtreeArray::Append(), Parser::NumOfErrors(), and Parser::rProgram().

void Source::parse const char *    filename
 

Definition at line 35 of file source.cc.

Referenced by main(), and process().

Parser * Source::parser  
 

Definition at line 79 of file source.cc.

References _parser.

Program * Source::program  
 

Definition at line 104 of file source.cc.

References _src_prog.

Referenced by find_leaf().

Ptree * Source::translate Walker   w
 

Definition at line 87 of file source.cc.

References _def, PtreeArray::All(), PtreeArray::Append(), and Walker::Translate().

Referenced by Ptree_visitor< Returntype >::visit().


Friends And Related Function Documentation

friend class Loki::CreateUsingNew< Source > [friend]
 

Definition at line 30 of file source.h.


Member Data Documentation

PtreeArray Source::_def [private]
 

Definition at line 39 of file source.h.

Referenced by dump(), parse(), and translate().

Lex* Source::_lex [private]
 

Definition at line 37 of file source.h.

Referenced by parse().

Parser* Source::_parser [private]
 

Definition at line 38 of file source.h.

Referenced by parse(), and parser().

Program* Source::_src_prog [private]
 

Definition at line 36 of file source.h.

Referenced by parse(), and program().


The documentation for this class was generated from the following files:
Generated on Mon Feb 10 17:36:40 2003 for VFiasco Semantics Compiler by doxygen1.2.15