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

LexicalStateSpec Class Reference

#include <scanner_spec.hh>

Collaboration diagram for LexicalStateSpec:

Collaboration graph
[legend]
List of all members.

Public Methods

 LexicalStateSpec (string name_, DfaSourceRe *regexp_=NULL)
void dump (ostream &os) const

Public Attributes

string name
DfaSourceReregexp

Detailed Description

This structure describes a scanner's lexical state. It has a name and an associated regexp which is the "OR" combination of all the token regexps that were declared as accepted while the scanner is in this state.

Definition at line 74 of file scanner_spec.hh.


Constructor & Destructor Documentation

LexicalStateSpec::LexicalStateSpec ( string name_,
DfaSourceRe * regexp_ = NULL ) [inline]
 

Definition at line 81 of file scanner_spec.hh.


Member Function Documentation

void LexicalStateSpec::dump ( ostream & os ) const
 

Dumps this state into the given stream.

Definition at line 280 of file scanner_spec.cc.

Referenced by ScannerSpec::dump().


Member Data Documentation

string LexicalStateSpec::name
 

Definition at line 78 of file scanner_spec.hh.

DfaSourceRe * LexicalStateSpec::regexp
 

Definition at line 79 of file scanner_spec.hh.


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