public class ASPParser extends Object implements ASPParserTreeConstants, ASPParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
protected JJTASPParserState |
jjtree |
Token |
token
Current token.
|
ASPParserTokenManager |
token_source
Generated Token Manager.
|
JJTAGGREGATE, JJTANSWERSET, JJTANSWERSETLIST, JJTARITHMETIC, JJTARITHMETICINTEGER, JJTARITHMETICOP, JJTATOM, JJTCOMPARATIVE, JJTCOMPAREOP, JJTDEFATOM, JJTELEMENTLST, JJTFUNCTIONALTERM, JJTHEAD, JJTIDENTIFIER, JJTIDLST, JJTLISTTAIL, JJTLISTTERM, jjtNodeName, JJTNUMBER, JJTPROGRAM, JJTRULE, JJTSETTERM, JJTSIMPLETERM, JJTSPECID, JJTSYMBOLICSET, JJTTERM, JJTTERMLST, JJTVOIDCOMMA, COMMENT, CONSTANT, CPAR_CLOSE, CPAR_OPEN, DEFAULT, DEFNOT, DIGIT, DIV, DOT, EOF, EQUAL, EQUAL_OLD, GREATER, GREATEREQ, IMPL, LESS, LESSEQ, LETTER, MUL, NEG, NOTEQUAL, NUMBER, OR, PAR_CLOSE, PAR_OPEN, PIPE, PLUS, SPECIAL_PREFIX, tokenImage, VARIABLE, ZPAR_CLOSE, ZPAR_OPEN| Constructor and Description |
|---|
ASPParser(ASPParserTokenManager tm)
Constructor with generated Token Manager.
|
ASPParser(InputStream stream)
Constructor with InputStream.
|
ASPParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
ASPParser(Reader stream)
Constructor.
|
protected JJTASPParserState jjtree
public ASPParserTokenManager token_source
public Token token
public Token jj_nt
public ASPParser(InputStream stream)
public ASPParser(InputStream stream, String encoding)
public ASPParser(Reader stream)
public ASPParser(ASPParserTokenManager tm)
public static Program parseProgram(String program) throws ParseException
ParseExceptionpublic static Program parseProgram(Reader reader) throws ParseException
ParseExceptionpublic static Rule parseRule(String rule) throws ParseException
ParseExceptionpublic static Rule parseRule(Reader reader) throws ParseException
ParseExceptionpublic static AnswerSetList parseAnswerSetList(String answerSetList) throws ParseException
ParseExceptionpublic static AnswerSetList parseAnswerSetList(Reader reader) throws ParseException
ParseExceptionpublic static AnswerSet parseAnswerSet(String answerSet) throws ParseException
ParseExceptionpublic static AnswerSet parseAnswerSet(Reader reader) throws ParseException
ParseExceptionpublic final ASTAnswerSetList AnswerSetList() throws ParseException
ParseExceptionpublic final ASTAnswerSet AnswerSet() throws ParseException
ParseExceptionpublic final ASTProgram Program() throws ParseException
ParseExceptionpublic final ASTRule Rule() throws ParseException
ParseExceptionpublic final ASTHead Head() throws ParseException
ParseExceptionpublic final ASTElementLst ElementLst() throws ParseException
ParseExceptionpublic final ASTAggregate Aggregate() throws ParseException
ParseExceptionpublic final ASTSymbolicSet SymbolicSet() throws ParseException
ParseExceptionpublic final void ElementNoAggregate()
throws ParseException
ParseExceptionpublic final void Element()
throws ParseException
ParseExceptionpublic final ASTArithmetic Arithmetic() throws ParseException
ParseExceptionpublic final ASTComparative Comparative() throws ParseException
ParseExceptionpublic final ASTDefAtom DefAtom() throws ParseException
ParseExceptionpublic final ASTAtom Atom() throws ParseException
ParseExceptionpublic final ASTFunctionalTerm FunctionalTerm() throws ParseException
ParseExceptionpublic final ASTSetTerm SetTerm() throws ParseException
ParseExceptionpublic final ASTListTail ListTail() throws ParseException
ParseExceptionpublic final ASTListTerm ListTerm() throws ParseException
ParseExceptionpublic final ASTTermLst TermLst() throws ParseException
ParseExceptionpublic final ASTTerm Term() throws ParseException
ParseExceptionpublic final ASTSimpleTerm SimpleTerm() throws ParseException
ParseExceptionpublic final ASTArithmeticInteger ArithmeticInteger() throws ParseException
ParseExceptionpublic final void Number()
throws ParseException
ParseExceptionpublic final void HeadOr()
throws ParseException
ParseExceptionpublic final void IdentifierLst()
throws ParseException
ParseExceptionpublic final void SpecId()
throws ParseException
ParseExceptionpublic final void Identifier()
throws ParseException
ParseExceptionpublic final String CompareOperator() throws ParseException
ParseExceptionpublic final String ArithmeticOperator() throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(ASPParserTokenManager 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 © 2018. All rights reserved.