opennlp.leo.prolog.parse
Class PrologParser

java.lang.Object
  |
  +--antlr.Parser
        |
        +--antlr.LLkParser
              |
              +--opennlp.leo.prolog.parse.PrologParser
All Implemented Interfaces:
PrologParserTokenTypes

public class PrologParser
extends antlr.LLkParser
implements PrologParserTokenTypes


Field Summary
static java.lang.String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
static antlr.collections.impl.BitSet _tokenSet_2
           
static antlr.collections.impl.BitSet _tokenSet_3
           
static antlr.collections.impl.BitSet _tokenSet_4
           
static antlr.collections.impl.BitSet _tokenSet_5
           
static antlr.collections.impl.BitSet _tokenSet_6
           
static antlr.collections.impl.BitSet _tokenSet_7
           
static antlr.collections.impl.BitSet _tokenSet_8
           
 
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, traceDepth
 
Fields inherited from interface opennlp.leo.prolog.parse.PrologParserTokenTypes
ASSIGN, ATOM, BAR, BINARY_OP, COLON, COMMA, CUT, DASH, DIGIT, EOF, INT, LBRACK, LETTER, LOGICAL_AND, LOGICAL_OR, LONE_OP, LPAREN, ML_COMMENT, NOT, NULL_TREE_LOOKAHEAD, PERIOD, RBRACK, RPAREN, SEMI, SL_COMMENT, SUFFIX, UNDERSCORE, VAR, VOCAB, WS
 
Constructor Summary
  PrologParser()
           
  PrologParser(antlr.ParserSharedInputState state)
           
  PrologParser(antlr.TokenBuffer tokenBuf)
           
protected PrologParser(antlr.TokenBuffer tokenBuf, int k)
           
  PrologParser(antlr.TokenStream lexer)
           
protected PrologParser(antlr.TokenStream lexer, int k)
           
 
Method Summary
 void comment()
           
 java.lang.Object[] getlist()
           
 java.lang.String getNaryOp()
           
 PTerm[] multipleStatements()
           
 PTerm[] parseFile(java.io.File f)
           
 PTerm parseTerm(java.lang.String s)
           
 PAtom patom()
           
 PBrackList pbracklist()
           
 POp pnaryop()
           
 PTerm pterm()
           
 PVar pvar()
           
 PTerm statement()
           
 
Methods inherited from class antlr.LLkParser
consume, LA, LT, traceIn, traceOut
 
Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, isDebugMode, mark, match, match, matchNot, panic, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tokenNames

public static final java.lang.String[] _tokenNames

_tokenSet_0

public static final antlr.collections.impl.BitSet _tokenSet_0

_tokenSet_1

public static final antlr.collections.impl.BitSet _tokenSet_1

_tokenSet_2

public static final antlr.collections.impl.BitSet _tokenSet_2

_tokenSet_3

public static final antlr.collections.impl.BitSet _tokenSet_3

_tokenSet_4

public static final antlr.collections.impl.BitSet _tokenSet_4

_tokenSet_5

public static final antlr.collections.impl.BitSet _tokenSet_5

_tokenSet_6

public static final antlr.collections.impl.BitSet _tokenSet_6

_tokenSet_7

public static final antlr.collections.impl.BitSet _tokenSet_7

_tokenSet_8

public static final antlr.collections.impl.BitSet _tokenSet_8
Constructor Detail

PrologParser

public PrologParser()

PrologParser

protected PrologParser(antlr.TokenBuffer tokenBuf,
                       int k)

PrologParser

public PrologParser(antlr.TokenBuffer tokenBuf)

PrologParser

protected PrologParser(antlr.TokenStream lexer,
                       int k)

PrologParser

public PrologParser(antlr.TokenStream lexer)

PrologParser

public PrologParser(antlr.ParserSharedInputState state)
Method Detail

parseFile

public PTerm[] parseFile(java.io.File f)
                  throws java.io.FileNotFoundException
java.io.FileNotFoundException

parseTerm

public PTerm parseTerm(java.lang.String s)

multipleStatements

public final PTerm[] multipleStatements()
                                 throws antlr.RecognitionException,
                                        antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException

comment

public final void comment()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException

statement

public final PTerm statement()
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException

pterm

public final PTerm pterm()
                  throws antlr.RecognitionException,
                         antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException

patom

public final PAtom patom()
                  throws antlr.RecognitionException,
                         antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException

getlist

public final java.lang.Object[] getlist()
                                 throws antlr.RecognitionException,
                                        antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException

pvar

public final PVar pvar()
                throws antlr.RecognitionException,
                       antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException

pbracklist

public final PBrackList pbracklist()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException

pnaryop

public final POp pnaryop()
                  throws antlr.RecognitionException,
                         antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException

getNaryOp

public final java.lang.String getNaryOp()
                                 throws antlr.RecognitionException,
                                        antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException


Copyright 2002 Research Institute for Advanced Computer Science. All Rights Reserved.