|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dllearner.parser.PrologParser
public class PrologParser
| Field Summary | |
|---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
PrologParserTokenManager |
token_source
Generated Token Manager. |
| Fields inherited from interface org.dllearner.parser.PrologParserConstants |
|---|
ANYCHAR, DEFAULT, DIGIT, DOUBLE, EOF, HICASE, IDENTIFIER, LOCASE, NOT, NUMBER, OPERATOR, SINGLE_LINE_COMMENT, SPECIALCHAR, STRINGCONSTANT, tokenImage, VAR |
| Constructor Summary | |
|---|---|
PrologParser()
|
|
PrologParser(InputStream stream)
Constructor with InputStream. |
|
PrologParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding |
|
PrologParser(PrologParserTokenManager tm)
Constructor with generated Token Manager. |
|
PrologParser(Reader stream)
Constructor. |
|
| Method Summary | |
|---|---|
Atom |
atom()
|
Body |
body()
|
Clause |
clause()
|
void |
disable_tracing()
Disable tracing. |
void |
enable_tracing()
Enable tracing. |
ParseException |
generateParseException()
Generate ParseException. |
Token |
getNextToken()
Get the next Token. |
Token |
getToken(int index)
Get the specific Token. |
String |
infixOp()
|
List |
list()
|
Literal |
literal()
|
Atom |
parseAtom(String src)
|
Clause |
parseClause(String src)
|
Program |
parseProgram(String src)
|
Term |
parseTerm(String src)
|
ArrayList |
parseTermList(String src)
|
String |
postfixOp()
|
String |
prefixOp()
|
Program |
program()
|
void |
ReInit(InputStream stream)
Reinitialise. |
void |
ReInit(InputStream stream,
String encoding)
Reinitialise. |
void |
ReInit(PrologParserTokenManager tm)
Reinitialise. |
void |
ReInit(Reader stream)
Reinitialise. |
Term |
simpleTerm()
|
Term |
term()
|
ArrayList |
termList()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public PrologParserTokenManager token_source
public Token token
public Token jj_nt
| Constructor Detail |
|---|
public PrologParser()
public PrologParser(InputStream stream)
public PrologParser(InputStream stream,
String encoding)
public PrologParser(Reader stream)
public PrologParser(PrologParserTokenManager tm)
| Method Detail |
|---|
public Term parseTerm(String src)
throws ParseException
ParseException
public ArrayList parseTermList(String src)
throws ParseException
ParseException
public Atom parseAtom(String src)
throws ParseException
ParseException
public Clause parseClause(String src)
throws ParseException
ParseException
public Program parseProgram(String src)
throws ParseException
ParseException
public final Program program()
throws ParseException
ParseException
public final Clause clause()
throws ParseException
ParseException
public final Body body()
throws ParseException
ParseException
public final Atom atom()
throws ParseException
ParseException
public final Literal literal()
throws ParseException
ParseException
public final Term term()
throws ParseException
ParseException
public final Term simpleTerm()
throws ParseException
ParseException
public final String prefixOp()
throws ParseException
ParseException
public final String infixOp()
throws ParseException
ParseException
public final String postfixOp()
throws ParseException
ParseException
public final ArrayList termList()
throws ParseException
ParseException
public final List list()
throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream,
String encoding)
public void ReInit(Reader stream)
public void ReInit(PrologParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||