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
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
ParseException
public 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