EmbASP-Python
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
parsers.asp.dlv.DLVParser.DLVParser Class Reference
Inheritance diagram for parsers.asp.dlv.DLVParser.DLVParser:

Classes

class  Answer_setContext
 
class  Cost_levelContext
 
class  CostContext
 
class  GroundQueryContext
 
class  ModelContext
 
class  NonGroundQueryContext
 
class  OutputContext
 
class  PredicateContext
 
class  SimpleModelContext
 
class  TermContext
 
class  WeightedModelContext
 
class  WitnessContext
 

Public Member Functions

def __init__ (self, input, output=sys.stdout)
 
def answer_set (self)
 
def cost (self)
 
def cost_level (self)
 
def model (self)
 
def output (self)
 
def predicate (self)
 
def term (self)
 
def witness (self)
 

Public Attributes

 state
 

Static Public Attributes

string grammarFileName = "DLVParser.g4"
 
 atn = ATNDeserializer().deserialize(serializedATN())
 
list decisionsToDFA = [ DFA(ds, i) for i, ds in enumerate(atn.decisionToState) ]
 
 sharedContextCache = PredictionContextCache()
 
list literalNames
 
list symbolicNames
 
int RULE_answer_set = 0
 
int RULE_cost = 1
 
int RULE_cost_level = 2
 
int RULE_model = 3
 
int RULE_output = 4
 
int RULE_predicate = 5
 
int RULE_term = 6
 
int RULE_witness = 7
 
list ruleNames
 
 EOF = Token.EOF
 
int HEADER = 1
 
int COLON = 2
 
int COST_BEGIN = 3
 
int COST_END = 4
 
int OPEN_SQUARE_BRACKET = 5
 
int CLOSE_SQUARE_BRACKET = 6
 
int GROUND_QUERY_BEGIN = 7
 
int MODEL_BEGIN = 8
 
int MODEL_END = 9
 
int WEIGHTED_MODEL_LABEL = 10
 
int COMMA = 11
 
int IDENTIFIER = 12
 
int INTEGER_CONSTANT = 13
 
int STRING_CONSTANT = 14
 
int TERMS_BEGIN = 15
 
int TERMS_END = 16
 
int WHITESPACE = 17
 
int REASONING = 18
 
int DOT = 19
 
int BOOLEAN = 20
 
int WHITESPACE_IN_GROUND_QUERY = 21
 
int WITNESS_LABEL = 22
 

Detailed Description

Definition at line 53 of file DLVParser.py.

Member Data Documentation

◆ literalNames

list parsers.asp.dlv.DLVParser.DLVParser.literalNames
static
Initial value:
= [ u"<INVALID>", u"<INVALID>", u"':'", u"'Cost ([Weight:Level]): <'",
u"'>'", u"'['", u"']'", u"' is '", u"'{'", u"'}'",
u"'Best model:'", u"','", u"<INVALID>", u"<INVALID>",
u"<INVALID>", u"'('", u"')'", u"<INVALID>", u"<INVALID>",
u"'.'", u"<INVALID>", u"<INVALID>", u"', evidenced by'" ]

Definition at line 63 of file DLVParser.py.

◆ ruleNames

list parsers.asp.dlv.DLVParser.DLVParser.ruleNames
static
Initial value:
= [ u"answer_set", u"cost", u"cost_level", u"model", u"output",
u"predicate", u"term", u"witness" ]

Definition at line 86 of file DLVParser.py.

◆ symbolicNames

list parsers.asp.dlv.DLVParser.DLVParser.symbolicNames
static
Initial value:
= [ u"<INVALID>", u"HEADER", u"COLON", u"COST_BEGIN",
u"COST_END", u"OPEN_SQUARE_BRACKET", u"CLOSE_SQUARE_BRACKET",
u"GROUND_QUERY_BEGIN", u"MODEL_BEGIN", u"MODEL_END",
u"WEIGHTED_MODEL_LABEL", u"COMMA", u"IDENTIFIER",
u"INTEGER_CONSTANT", u"STRING_CONSTANT", u"TERMS_BEGIN",
u"TERMS_END", u"WHITESPACE", u"REASONING", u"DOT",
u"BOOLEAN", u"WHITESPACE_IN_GROUND_QUERY", u"WITNESS_LABEL" ]

Definition at line 69 of file DLVParser.py.


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