#include <parser.h>

Public Member Functions | |
| LparseParser (Asp::LogicProgram &prg) | |
| void | setProgram (Asp::LogicProgram &prg) |
Protected Member Functions | |
| Asp::Rule * | active () const |
| bool | addRule (const Asp::Rule &r) const |
| Asp::LogicProgram * | builder () 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::Rule * | active_ |
| Asp::LogicProgram * | builder_ |
| Clasp::LparseParser::LparseParser | ( | Asp::LogicProgram & | prg | ) | [explicit] |
Definition at line 174 of file parser.cpp.
| Asp::Rule* Clasp::LparseParser::active | ( | ) | const [inline, protected] |
| 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] |
| 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] |
| Var Clasp::LparseParser::parseAtom | ( | ) | [protected] |
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.
| bool Clasp::LparseParser::parseComputeStatement | ( | ) | [private] |
Definition at line 268 of file parser.cpp.
| bool Clasp::LparseParser::parseModels | ( | ) | [private] |
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.
| bool Clasp::LparseParser::parseSymbolTable | ( | ) | [private] |
Definition at line 255 of file parser.cpp.
| void Clasp::LparseParser::setProgram | ( | Asp::LogicProgram & | prg | ) |
Definition at line 178 of file parser.cpp.
Asp::Rule* Clasp::LparseParser::active_ [private] |
Asp::LogicProgram* Clasp::LparseParser::builder_ [private] |