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

ReEotNode Class Reference

#include <dfa_source_re.hh>

Inheritance diagram for ReEotNode:

Inheritance graph
Collaboration diagram for ReEotNode:

Collaboration graph
List of all members.

Public Methods

 ReEotNode (int tokId_, const Position &pos_)
virtual ReNodeclone ()
virtual int getChildCount ()
virtual ReNodeoperator[] (int index)
virtual void dump (ostream &os) const

Public Attributes

int tokId
int pos

Detailed Description

ReEotNode is a special node that will be automatically concatenated (by a cat-node) to each token's regexp tree. The Eot in the class' name stands for ``end of token''. Eot nodes are actually the nodes that ``identify'' each token in a lexical state, after all the regular expression that belong to a lexical state have been merged. For this reason, all the data about the token they represent (token name, token action, etc) will be stored in these nodes.

Definition at line 319 of file dfa_source_re.hh.

Constructor & Destructor Documentation

ReEotNode::ReEotNode ( int tokId_,
const Position & pos_ ) [inline]

Definition at line 323 of file dfa_source_re.hh.

Referenced by clone().

Member Function Documentation

ReNode * ReEotNode::clone ( ) [inline, virtual]

Creates a copy of the regexp parse tree rooted in this node.

Reimplemented from ReNode.

Definition at line 328 of file dfa_source_re.hh.

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

Returns the number of child nodes of this node.

Reimplemented from ReNode.

Definition at line 333 of file dfa_source_re.hh.

ReNode & ReEotNode::operator[] ( int index ) [inline, virtual]

Returns the index'th child of this node.

0 <= index <= getChildCount()

Reimplemented from ReNode.

Definition at line 338 of file dfa_source_re.hh.

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

Reimplemented from DfaSourceRe.

Definition at line 100 of file

Member Data Documentation

int ReEotNode::tokId

Definition at line 350 of file dfa_source_re.hh.

int ReEotNode::pos

Reimplemented from ReNode.

Definition at line 352 of file dfa_source_re.hh.

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