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

IParser Class Reference

#include <iparser.hh>

Inheritance diagram for IParser:

Inheritance graph
List of all members.

Public Methods

virtual bool parse (PropRegistry &registry, ITokenSpec &tSpec, IScannerSpec &sSpec, IParserSpec &pSpec)=0

Detailed Description

The CppCC's pluggable parser interface. The interface only specifies one method, parse, that actually does the parsing and stores the data though the IParserSpec and IScannerSpec interfaces.

If the program is compiled with the DEBUG switch on, an IParser implementation should recognise the "debug" option (a string provided as a vewlu for the key "debug" in the options registry. If letter 's' appears in this options's value, then the scanner debugging features will b enabled. If the 'p' character appears into the option's value, the parser's debug features will be enabled.

Definition at line 67 of file iparser.hh.

Member Function Documentation

bool IParser::parse ( PropRegistry & registry,
ITokenSpec & tSpec,
IScannerSpec & sSpec,
IParserSpec & pSpec ) [pure virtual]

Reimplemented in LexYaccParser.

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