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
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 |
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 |
_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
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)
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.