dlvhex  2.5.0
HexParserModule Class Reference

Implements a plugin into the parser for parsing special non-standard HEX-syntax. More...

#include <include/dlvhex2/HexParserModule.h>

Public Types

enum  Type { TOPLEVEL, BODYATOM, HEADATOM, TERM }
 Defines on which level the parser is called. More...

Public Member Functions

virtual ~HexParserModule ()
 Destructor.
Type getType () const
 Gets the type of the module.
 HexParserModule (Type type)
 Constructor.
virtual HexParserModuleGrammarPtr createGrammarModule ()=0
 Needs to be implemented and defines the custom syntax to parser.

Protected Attributes

Type type
 Type of the parser module.

Detailed Description

Implements a plugin into the parser for parsing special non-standard HEX-syntax.

Definition at line 51 of file HexParserModule.h.


Member Enumeration Documentation

Defines on which level the parser is called.

Enumerator:
TOPLEVEL 

On the level of rules (supports custom rule types or more general structures).

BODYATOM 

On the level of body atoms (supports body atoms with special syntax).

HEADATOM 

On the level of head atoms (supports head atoms with special syntax).

TERM 

On the level of terms (supports terms with special syntax).

Definition at line 55 of file HexParserModule.h.


Constructor & Destructor Documentation

virtual HexParserModule::~HexParserModule ( ) [inline, virtual]

Destructor.

Definition at line 68 of file HexParserModule.h.

Constructor.

Parameters:
typeSee HexParserModule::Type.

Definition at line 75 of file HexParserModule.h.


Member Function Documentation

Needs to be implemented and defines the custom syntax to parser.

Parameters:
Customgrammar.
Type HexParserModule::getType ( ) const [inline]

Gets the type of the module.

Returns:
See HexParserModule::Type.

Definition at line 72 of file HexParserModule.h.

References type.


Field Documentation

Type of the parser module.

Definition at line 83 of file HexParserModule.h.

Referenced by getType().


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