1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
// Copyright (C) 2000 The New York Group Theory Cooperative
// See magnus/doc/COPYRIGHT for the full notice.
// Contents: Declaration of the EqSystemParser class.
//
// Principal Authors: Denis Serbin
//
// Status: In progress
//
// Revision History:
//
// Special Notes:
//
//
#include "EquationParser.h"
#include "PresentationParser.h"
#include "conversions.h"
#ifndef _EqSystemParser_h_
#define _EqSystemParser_h_
//---------------------------------------------------------------------------//
//-------------------------- EqSystemParser ---------------------------------//
//---------------------------------------------------------------------------//
class EqSystemParser : protected PresentationParser
{
public:
/////////////////////////////////////////////////////////////////////////
// //
// Constructors: //
// //
/////////////////////////////////////////////////////////////////////////
EqSystemParser(istream &istr) : PresentationParser(istr) { }
// Initialize the parser with the istream from which to read.
// Destructor supplied by compiler.
/////////////////////////////////////////////////////////////////////////
// //
// Parsing Methods: //
// //
/////////////////////////////////////////////////////////////////////////
VectorOf<Word> parseEqSystem( const VectorOf<Chars>& names,
VectorOf<Chars>& new_names,
Chars& errMesg
);
// Reads a system equations and returns it as a vector of words.
// The new vector of print names (generators first, then variables) is
// returned in new_names.
// As usual, if there is a parse error, the description is returned in
// errMesg.
Word parseEquation( const VectorOf<Chars>& names,
VectorOf<Chars>& new_names,
Chars& errMesg
);
virtual void getToken( );
virtual Word parseRelator( const VectorOf<Chars>&, Chars& );
};
#endif
|