dlvhex  2.5.0
ModuleHexParser Class Reference

Parses HEX-programs, extendable by parser modules. More...

#include <include/dlvhex2/HexParser.h>

Inheritance diagram for ModuleHexParser:
Collaboration diagram for ModuleHexParser:

Public Member Functions

virtual void registerModule (HexParserModulePtr module)
 Adds an additional module the the parser.
virtual void parse (InputProviderPtr in, ProgramCtx &out)
 Parses in into out using the registered modules.

Protected Attributes

std::vector< HexParserModulePtrmodules
 Currently registered modules.

Detailed Description

Parses HEX-programs, extendable by parser modules.

Definition at line 62 of file HexParser.h.


Member Function Documentation

void ModuleHexParser::parse ( InputProviderPtr  in,
ProgramCtx out 
) [virtual]

Adds an additional module the the parser.

Modules are used to parse special non-standard HEX-syntax as supported e.g. by plugins.

Parameters:
moduleParserModule to add.

Definition at line 58 of file HexParser.cpp.

References modules.


Field Documentation

std::vector<HexParserModulePtr> ModuleHexParser::modules [protected]

Currently registered modules.

Definition at line 81 of file HexParser.h.

Referenced by parse(), and registerModule().


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