org.dllearner.parser
Class PrologParser

java.lang.Object
  extended by org.dllearner.parser.PrologParser
All Implemented Interfaces:
PrologParserConstants

public class PrologParser
extends Object
implements PrologParserConstants


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

token_source

public PrologParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

PrologParser

public PrologParser()

PrologParser

public PrologParser(InputStream stream)
Constructor with InputStream.


PrologParser

public PrologParser(InputStream stream,
                    String encoding)
Constructor with InputStream and supplied encoding


PrologParser

public PrologParser(Reader stream)
Constructor.


PrologParser

public PrologParser(PrologParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

parseTerm

public Term parseTerm(String src)
               throws ParseException
Throws:
ParseException

parseTermList

public ArrayList parseTermList(String src)
                        throws ParseException
Throws:
ParseException

parseAtom

public Atom parseAtom(String src)
               throws ParseException
Throws:
ParseException

parseClause

public Clause parseClause(String src)
                   throws ParseException
Throws:
ParseException

parseProgram

public Program parseProgram(String src)
                     throws ParseException
Throws:
ParseException

program

public final Program program()
                      throws ParseException
Throws:
ParseException

clause

public final Clause clause()
                    throws ParseException
Throws:
ParseException

body

public final Body body()
                throws ParseException
Throws:
ParseException

atom

public final Atom atom()
                throws ParseException
Throws:
ParseException

literal

public final Literal literal()
                      throws ParseException
Throws:
ParseException

term

public final Term term()
                throws ParseException
Throws:
ParseException

simpleTerm

public final Term simpleTerm()
                      throws ParseException
Throws:
ParseException

prefixOp

public final String prefixOp()
                      throws ParseException
Throws:
ParseException

infixOp

public final String infixOp()
                     throws ParseException
Throws:
ParseException

postfixOp

public final String postfixOp()
                       throws ParseException
Throws:
ParseException

termList

public final ArrayList termList()
                         throws ParseException
Throws:
ParseException

list

public final List list()
                throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)
Reinitialise.


ReInit

public void ReInit(InputStream stream,
                   String encoding)
Reinitialise.


ReInit

public void ReInit(Reader stream)
Reinitialise.


ReInit

public void ReInit(PrologParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.



SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann