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

EbnfNonterminalNode Class Reference

#include <ebnf_la_node.hh>

Inheritance diagram for EbnfNonterminalNode:

Inheritance graph
Collaboration diagram for EbnfNonterminalNode:

Collaboration graph
List of all members.

Public Methods

 EbnfNonterminalNode (const string &targetVar_, const Position &targetVarPos_, const string &nontermName_, const string &actualArgs_, const Position &argsPos_, const Position &pos_)
 EbnfNonterminalNode (const EbnfNonterminalNode &o)
virtual EbnfNodeoperator[] (int index)
virtual int getChildCount ()
virtual EbnfNodeclone ()
virtual void dump (ostream &os) const

Public Attributes

CodeChunk targetVar
string nontermName
CodeChunk actualArgs

Detailed Description

Represents an expansion that matches whatever another production does.

Definition at line 397 of file ebnf_la_node.hh.

Constructor & Destructor Documentation

EbnfNonterminalNode::EbnfNonterminalNode ( const string & targetVar_,
const Position & targetVarPos_,
const string & nontermName_,
const string & actualArgs_,
const Position & argsPos_,
const Position & pos_ ) [inline]

Definition at line 401 of file ebnf_la_node.hh.

Referenced by clone().

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

Definition at line 410 of file ebnf_la_node.hh.

Member Function Documentation

EbnfNode & EbnfNonterminalNode::operator[] ( int index ) [inline, virtual]

Returns the index'th child of this node.

0 <= index <= getChildCount()

Reimplemented from EbnfNode.

Definition at line 416 of file ebnf_la_node.hh.

int EbnfNonterminalNode::getChildCount ( ) [inline, virtual]

Returns the number of children nodes of this node.

Reimplemented from EbnfNode.

Definition at line 422 of file ebnf_la_node.hh.

EbnfNode * EbnfNonterminalNode::clone ( ) [inline, virtual]

Virtual copy creation.

Reimplemented from EbnfNode.

Definition at line 427 of file ebnf_la_node.hh.

void EbnfNonterminalNode::dump ( ostream & os ) const [virtual]

Reimplemented from EbnfNode.

Definition at line 122 of file

Member Data Documentation

CodeChunk EbnfNonterminalNode::targetVar

If the result of calling the production's method should be stored in a variable, this field contains the name of that variable, otherwise it contains an empty string.

Definition at line 445 of file ebnf_la_node.hh.

string EbnfNonterminalNode::nontermName

The name of the production to call.

Definition at line 450 of file ebnf_la_node.hh.

CodeChunk EbnfNonterminalNode::actualArgs

A string containing the C++ list of actual arguments to be passed to the called production.

Definition at line 456 of file ebnf_la_node.hh.

EbnfLaNode * EbnfNonterminalNode::nonterm

Whis will point to the reffered production's expansion after fixup. BE careful with this as it is possible to be NULL, if the production that is refferred has no expansion (eg. pure code productions).

Definition at line 463 of file ebnf_la_node.hh.

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