public class ASPCore2Parser extends Object implements ASPCore2ParserTreeConstants, ASPCore2ParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
protected JJTASPCore2ParserState |
jjtree |
Token |
token
Current token.
|
ASPCore2ParserTokenManager |
token_source
Generated Token Manager.
|
JJTAGGREGATE, JJTAGGRELEMENT, JJTAGGRELEMENTLIST, JJTAGGRFUNC, JJTANSWERSET, JJTARITERM, JJTARITHOP, JJTBINOP, JJTBODY, JJTBODYLIST, JJTBUILTINATOM, JJTCHOICE, JJTCHOICEELEMENT, JJTCHOICEELEMENTLIST, JJTCLINGOMETA, JJTHEAD, JJTHEADELEMENTSLIST, JJTID, JJTLITERAL, JJTNAFLITERAL, JJTNAFLITERALLIST, jjtNodeName, JJTNUMBER, JJTOPT, JJTOPTELEMENT, JJTOPTELEMENTLIST, JJTOPTFUNC, JJTPROGRAM, JJTQUERY, JJTRULE, JJTRULELIST, JJTSTRING, JJTTERM, JJTTERMLIST, JJTVAR, JJTWEIGHTAGGREGATE_COUNT, AGGREGATE_MAX, AGGREGATE_MIN, AGGREGATE_SUM, ANONYMOUS_VARIABLE, AT, CLINGO_SHOW, COLON, COMMA, COMMENT, CONS, CURLY_CLOSE, CURLY_OPEN, DEFAULT, DIV, DOT, EOF, EQUAL, GREATER, GREATER_OR_EQ, ID, LESS, LESS_OR_EQ, MAXIMIZE, MINIMIZE, MINUS, MULTI_LINE_COMMENT, NAF, NUMBER, OR, PAREN_CLOSE, PAREN_OPEN, PLUS, QUERY_MARK, SEMICOLON, SQUARE_CLOSE, SQUARE_OPEN, STRING, TIMES, tokenImage, UNEQUAL, VARIABLE, WCONS| Constructor and Description |
|---|
ASPCore2Parser(ASPCore2ParserTokenManager tm)
Constructor with generated Token Manager.
|
ASPCore2Parser(InputStream stream)
Constructor with InputStream.
|
ASPCore2Parser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
ASPCore2Parser(Reader stream)
Constructor.
|
protected JJTASPCore2ParserState jjtree
public ASPCore2ParserTokenManager token_source
public Token token
public Token jj_nt
public ASPCore2Parser(InputStream stream)
public ASPCore2Parser(InputStream stream, String encoding)
public ASPCore2Parser(Reader stream)
public ASPCore2Parser(ASPCore2ParserTokenManager tm)
public static Program parseProgram(String program) throws ParseException
ParseExceptionpublic static Program parseProgram(Reader reader) throws ParseException
ParseExceptionpublic static ASPRule parseRule(String rule) throws ParseException
ParseExceptionpublic static ASPRule parseRule(Reader reader) throws ParseException
ParseExceptionpublic static AnswerSet parseAnswerSet(String answerSet) throws ParseException
ParseExceptionpublic static AnswerSet parseAnswerSet(Reader reader) throws ParseException
ParseExceptionpublic final ASTAnswerSet AnswerSet() throws ParseException
ParseExceptionpublic final ASTProgram Program() throws ParseException
ParseExceptionpublic final ASTRuleList Statements() throws ParseException
ParseExceptionpublic final ASTQuery Query() throws ParseException
ParseExceptionpublic final ASTRule Statement() throws ParseException
ParseExceptionpublic final ASTHead Head() throws ParseException
ParseExceptionpublic final ASTBodyList Body() throws ParseException
ParseExceptionpublic final ASTBody Body1() throws ParseException
ParseExceptionpublic final ASTHeadElementsList Disjunction() throws ParseException
ParseExceptionpublic final ASTChoice Choice() throws ParseException
ParseExceptionpublic final ASTChoiceElementList ChoiceElements() throws ParseException
ParseExceptionpublic final ASTChoiceElement ChoiceElement() throws ParseException
ParseExceptionpublic final ASTAggregate Aggregate() throws ParseException
ParseExceptionpublic final ASTAggrElementList AggregateElements() throws ParseException
ParseExceptionpublic final ASTAggrElement AggregateElement() throws ParseException
ParseExceptionpublic final String AggregateFunction() throws ParseException
ParseExceptionpublic final void ClingoMetaStatement()
throws ParseException
ParseExceptionpublic final ASTOpt Optimize() throws ParseException
ParseExceptionpublic final ASTOptElementList OptimizeElements() throws ParseException
ParseExceptionpublic final ASTOptElement OptimizeElement() throws ParseException
ParseExceptionpublic final String OptimizeFunction() throws ParseException
ParseExceptionpublic final ASTWeight WeightAtLevel() throws ParseException
ParseExceptionpublic final ASTNAFLiteralList NAFLiterals() throws ParseException
ParseExceptionpublic final ASTNAFLiteral NAFLiteral() throws ParseException
ParseExceptionpublic final ASTLiteral ClassicalLiteral() throws ParseException
ParseExceptionpublic final ASTBuiltInAtom BuiltinAtom() throws ParseException
ParseExceptionpublic final String Binop() throws ParseException
ParseExceptionpublic final ASTTermList Terms() throws ParseException
ParseExceptionpublic final ASTTerm Term() throws ParseException
ParseExceptionpublic final ASTAriTerm AriTerm() throws ParseException
ParseExceptionpublic final String Arithop() throws ParseException
ParseExceptionpublic final void Number()
throws ParseException
ParseExceptionpublic final void Variable()
throws ParseException
ParseExceptionpublic final void Identifier()
throws ParseException
ParseExceptionpublic final void String()
throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(ASPCore2ParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2019. All rights reserved.