public class PrologParser extends Object implements PrologParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
PrologParserTokenManager |
token_source
Generated Token Manager.
|
ANYCHAR, DEFAULT, DIGIT, DOUBLE, EOF, HICASE, IDENTIFIER, LOCASE, NOT, NUMBER, OPERATOR, SINGLE_LINE_COMMENT, SPECIALCHAR, STRINGCONSTANT, tokenImage, VAR| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public PrologParserTokenManager token_source
public PrologParser()
public PrologParser(InputStream stream)
public PrologParser(InputStream stream, String encoding)
public PrologParser(Reader stream)
public PrologParser(PrologParserTokenManager tm)
public Term parseTerm(String src) throws ParseException
ParseExceptionpublic ArrayList parseTermList(String src) throws ParseException
ParseExceptionpublic Atom parseAtom(String src) throws ParseException
ParseExceptionpublic Clause parseClause(String src) throws ParseException
ParseExceptionpublic Program parseProgram(String src) throws ParseException
ParseExceptionpublic final Program program() throws ParseException
ParseExceptionpublic final Clause clause() throws ParseException
ParseExceptionpublic final Body body() throws ParseException
ParseExceptionpublic final Atom atom() throws ParseException
ParseExceptionpublic final Literal literal() throws ParseException
ParseExceptionpublic final Term term() throws ParseException
ParseExceptionpublic final Term simpleTerm() throws ParseException
ParseExceptionpublic final String prefixOp() throws ParseException
ParseExceptionpublic final String infixOp() throws ParseException
ParseExceptionpublic final String postfixOp() throws ParseException
ParseExceptionpublic final ArrayList termList() throws ParseException
ParseExceptionpublic final List list() throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(PrologParserTokenManager tm)
public final Token getNextToken()
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann