Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
Clasp::LparseParser Class Reference

#include <parser.h>

Inheritance diagram for Clasp::LparseParser:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 LparseParser (Asp::LogicProgram &prg)
void setProgram (Asp::LogicProgram &prg)

Protected Member Functions

Asp::Ruleactive () const
bool addRule (const Asp::Rule &r) const
Asp::LogicProgrambuilder () const
virtual bool doParse ()
virtual bool endParse ()
Var parseAtom ()
bool parseBody (uint32 lits, uint32 neg, bool weights)
virtual bool parseRuleExtension (int ruleType)=0

Private Member Functions

bool knownRuleType (int rt)
bool parseComputeStatement ()
bool parseModels ()
bool parseRule (int ruleType)
bool parseRules ()
bool parseSymbolTable ()

Private Attributes

Asp::Ruleactive_
Asp::LogicProgrambuilder_

Detailed Description

Definition at line 90 of file parser.h.


Constructor & Destructor Documentation

Definition at line 174 of file parser.cpp.


Member Function Documentation

Asp::Rule* Clasp::LparseParser::active ( ) const [inline, protected]

Definition at line 101 of file parser.h.

bool Clasp::LparseParser::addRule ( const Asp::Rule r) const [protected]

Definition at line 186 of file parser.cpp.

Asp::LogicProgram* Clasp::LparseParser::builder ( ) const [inline, protected]

Definition at line 100 of file parser.h.

bool Clasp::LparseParser::doParse ( ) [protected, virtual]

Implements Clasp::StreamParser.

Definition at line 191 of file parser.cpp.

bool Clasp::LparseParser::endParse ( ) [protected, virtual]

Definition at line 289 of file parser.cpp.

bool Clasp::LparseParser::knownRuleType ( int  rt) [inline, private]

Definition at line 109 of file parser.h.

Definition at line 181 of file parser.cpp.

bool Clasp::LparseParser::parseBody ( uint32  lits,
uint32  neg,
bool  weights 
) [protected]

Definition at line 244 of file parser.cpp.

Definition at line 268 of file parser.cpp.

Definition at line 283 of file parser.cpp.

bool Clasp::LparseParser::parseRule ( int  ruleType) [private]

Definition at line 211 of file parser.cpp.

virtual bool Clasp::LparseParser::parseRuleExtension ( int  ruleType) [protected, pure virtual]

Implemented in Clasp::DefaultLparseParser.

bool Clasp::LparseParser::parseRules ( ) [private]

Definition at line 201 of file parser.cpp.

Definition at line 255 of file parser.cpp.

Definition at line 178 of file parser.cpp.


Member Data Documentation

Definition at line 111 of file parser.h.

Definition at line 110 of file parser.h.


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


clasp
Author(s): Benjamin Kaufmann
autogenerated on Thu Aug 27 2015 12:41:41