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

ProductionSpec Class Reference

#include <production_spec.hh>

Collaboration diagram for ProductionSpec:

Collaboration graph
[legend]
List of all members.

Public Methods

 ProductionSpec (const string &name_, const string &retType_, const Position &retTypePos_, const string &formalArgs_, const Position &formalArgsPos_, const string &exceptList_, const Position &exceptListPos_, const string &preambleCode_, const Position &preambleCodePos_, EbnfLaNode *expansion_, const Position &pos_)
 ProductionSpec (const ProductionSpec &o)
void dump (ostream &os) const

Public Attributes

string name
CodeChunk retType
CodeChunk formalArgs
CodeChunk exceptList
CodeChunk preambleCode
EbnfLaNodeexpansion
Position pos

Detailed Description

This class contains data about a production.

Definition at line 66 of file production_spec.hh.


Constructor & Destructor Documentation

ProductionSpec::ProductionSpec ( const string & name_,
const string & retType_,
const Position & retTypePos_,
const string & formalArgs_,
const Position & formalArgsPos_,
const string & exceptList_,
const Position & exceptListPos_,
const string & preambleCode_,
const Position & preambleCodePos_,
EbnfLaNode * expansion_,
const Position & pos_ ) [inline]
 

Definition at line 70 of file production_spec.hh.

ProductionSpec::ProductionSpec ( const ProductionSpec & o ) [inline]
 

Definition at line 84 of file production_spec.hh.


Member Function Documentation

void ProductionSpec::dump ( ostream & os ) const
 

Definition at line 44 of file production_spec.cc.

Referenced by ParserSpec::dump().


Member Data Documentation

string ProductionSpec::name
 

The production's name.

Definition at line 97 of file production_spec.hh.

CodeChunk ProductionSpec::retType
 

Contains the string to be sued as the return type specifier in the generated code.

Definition at line 103 of file production_spec.hh.

CodeChunk ProductionSpec::formalArgs
 

Contains the string to be sued as the list of formal arguments in the generated code.

Definition at line 109 of file production_spec.hh.

CodeChunk ProductionSpec::exceptList
 

Contains the string to be used as the list of exceptions thrown by the productions's method in the generated code.

Definition at line 115 of file production_spec.hh.

CodeChunk ProductionSpec::preambleCode
 

Contains the code found in the first user code block (if any) of the produxction.

Definition at line 121 of file production_spec.hh.

EbnfLaNode * ProductionSpec::expansion
 

The EBNF expansion of th production.

Definition at line 126 of file production_spec.hh.

Position ProductionSpec::pos
 

The position wihin the input grammar file where this production was found

Definition at line 131 of file production_spec.hh.


The documentation for this class was generated from the following files:
Generated at Tue Jul 9 21:08:03 2002 for CppCC by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001