Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

WordParser Class Reference

#include <WordParser.h>

Inheritance diagram for WordParser::

DArrayParser MapParser PresentationParser RingEltParser AmalgamatedProductParser EqSystemParser EquationParser HNNExtensionParser MatrixParser MonomialParser PolynomialParser List of all members.

Public Methods

 WordParser (istream &str)
void popToken ()
Word parseWord (const VectorOf< Chars > &, Chars &)
Word parseWordVerbatim (const VectorOf< Chars > &, Chars &)

Protected Methods

char peekCh ()
char getCh ()
virtual void getToken ()
void parseError (const char *)
Bool atStartOfWord ()
void invertName (char *)
bool isInvertibleName (char *)
ParseNodeparseExpression ()
ParseNodeparseTerm ()
ParseNodeparseAtom ()

Protected Attributes

int tokenInt
int tokenBufIndex
char tokenName [NAME_SIZE+1]
char tokenBuf [INPUT_BUF_SIZE]
TokenType curToken
VectorOf<CharsgenNames
Chars parseErrorMessage
istream& istr

Constructor & Destructor Documentation

WordParser::WordParser ( istream & str ) [inline]
 

Definition at line 83 of file WordParser.h.


Member Function Documentation

void WordParser::popToken ( ) [inline]
 

Definition at line 90 of file WordParser.h.

Word WordParser::parseWord ( const VectorOf< Chars > &,
Chars & )
 

Word WordParser::parseWordVerbatim ( const VectorOf< Chars > &,
Chars & )
 

char WordParser::peekCh ( ) [protected]
 

char WordParser::getCh ( ) [protected]
 

virtual void WordParser::getToken ( ) [protected, virtual]
 

Reimplemented in EqSystemParser, and EquationParser.

Referenced by popToken().

void WordParser::parseError ( const char * ) [protected]
 

Bool WordParser::atStartOfWord ( ) [protected]
 

void WordParser::invertName ( char * ) [protected]
 

bool WordParser::isInvertibleName ( char * ) [protected]
 

ParseNode* WordParser::parseExpression ( ) [protected]
 

ParseNode* WordParser::parseTerm ( ) [protected]
 

ParseNode* WordParser::parseAtom ( ) [protected]
 


Member Data Documentation

int WordParser::tokenInt [protected]
 

Definition at line 109 of file WordParser.h.

int WordParser::tokenBufIndex [protected]
 

Definition at line 111 of file WordParser.h.

char WordParser::tokenName[NAME_SIZE+1] [protected]
 

Definition at line 112 of file WordParser.h.

char WordParser::tokenBuf[INPUT_BUF_SIZE] [protected]
 

Definition at line 113 of file WordParser.h.

TokenType WordParser::curToken [protected]
 

Definition at line 114 of file WordParser.h.

VectorOf<Chars> WordParser::genNames [protected]
 

Definition at line 116 of file WordParser.h.

Chars WordParser::parseErrorMessage [protected]
 

Definition at line 118 of file WordParser.h.

istream& WordParser::istr [protected]
 

Definition at line 120 of file WordParser.h.


The documentation for this class was generated from the following file:
Generated at Tue Jun 19 09:50:10 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001