Parser Class Reference
[C++/Common/Parser]

This class is the base class for various parsers. More...

#include <Parser.h>

Inheritance diagram for Parser:

Inheritance graph
[legend]
Collaboration diagram for Parser:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Parser ()
 Ctor.
virtual ~Parser ()
 Dtor.
virtual bool Parse ()
 Perform the parse.
virtual void Debug (bool arg)
 Specify the state of the debug flag.
void DebugOn ()
 Turn debugging on.
void DebugOff ()
 Turn debugging off.

Protected Member Functions

int Yyparse ()
 The native routine that does the actual parsing.

Protected Attributes

bool debug
 Debug flag.

Detailed Description

This class is the base class for various parsers.

These parsers may use Bison and Lex routines to do the actual parsing. Objects of this class do nothing.

Definition at line 17 of file C++/Common/Parser/Parser.h.


Constructor & Destructor Documentation

Parser::Parser (  ) 

Ctor.

virtual Parser::~Parser (  )  [virtual]

Dtor.


Member Function Documentation

virtual bool Parser::Parse (  )  [virtual]

Perform the parse.

Returns:
If the parse proceeded without errors return true.

Reimplemented in CommonEnviromentParser, and FileParser.

virtual void Parser::Debug ( bool  arg  )  [virtual]

Specify the state of the debug flag.

Parameters:
arg The proposed state of the debug flag.

void Parser::DebugOn (  ) 

Turn debugging on.

void Parser::DebugOff (  ) 

Turn debugging off.

int Parser::Yyparse (  )  [protected]

The native routine that does the actual parsing.

This routine will usually ultimately be the "yyparse()" generated by bison.

Returns:
If the parse is performed successfully then 0 is returned.


Member Data Documentation

bool Parser::debug [protected]

Debug flag.

Definition at line 68 of file C++/Common/Parser/Parser.h.


The documentation for this class was generated from the following file: