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

EbnfTerminalNode Class Reference

#include <ebnf_la_node.hh>

Inheritance diagram for EbnfTerminalNode:

Inheritance graph
Collaboration diagram for EbnfTerminalNode:

Collaboration graph
List of all members.

Public Methods

 EbnfTerminalNode (TokenDesc &terminal_, const Position &pos_)
 EbnfTerminalNode (const EbnfTerminalNode &o)
virtual EbnfNodeoperator[] (int index)
virtual int getChildCount ()
virtual EbnfNodeclone ()
virtual void dump (ostream &os) const

Public Attributes


Detailed Description

Represents an expansion that matches exactly one terminal.

Definition at line 470 of file ebnf_la_node.hh.

Constructor & Destructor Documentation

EbnfTerminalNode::EbnfTerminalNode ( TokenDesc & terminal_,
const Position & pos_ ) [inline]

Definition at line 474 of file ebnf_la_node.hh.

Referenced by clone().

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

Definition at line 480 of file ebnf_la_node.hh.

Member Function Documentation

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

Returns the index'th child of this node.

0 <= index <= getChildCount()

Reimplemented from EbnfNode.

Definition at line 486 of file ebnf_la_node.hh.

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

Returns the number of children nodes of this node.

Reimplemented from EbnfNode.

Definition at line 492 of file ebnf_la_node.hh.

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

Virtual copy creation.

Reimplemented from EbnfNode.

Definition at line 497 of file ebnf_la_node.hh.

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

Reimplemented from EbnfNode.

Definition at line 135 of file

Member Data Documentation

TokenDesc & EbnfTerminalNode::terminal

Points to the TokenDesc object that describes the token matched by this expansion.

Definition at line 514 of file ebnf_la_node.hh.

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