de.unidu.is.pdatalog.parser
Class SimpleParser

java.lang.Object
  extended byantlr.Parser
      extended byantlr.LLkParser
          extended byde.unidu.is.pdatalog.parser.SimpleParser
All Implemented Interfaces:
SimpleParserTokenTypes

public class SimpleParser
extends antlr.LLkParser
implements SimpleParserTokenTypes


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, tokenTypeToASTClassMap, traceDepth
 
Fields inherited from interface de.unidu.is.pdatalog.parser.SimpleParserTokenTypes
AND, COLON, COMMA, CONSTANT, DIV, ENDRULE, EOF, FUNCTION, HASH, IDENTIFIER, INT, LCURL, LITERAL_PROB, LPAREN, MINUS, MOD, MUL, NOT, NULL_TREE_LOOKAHEAD, PLUS, POW, QUOTE, RCURL, RPAREN, RULE, SIGN_MINUS, SIGN_PLUS, TILDE, WS
 
Constructor Summary
  SimpleParser(antlr.ParserSharedInputState state)
           
  SimpleParser(antlr.TokenBuffer tokenBuf)
           
protected SimpleParser(antlr.TokenBuffer tokenBuf, int k)
           
  SimpleParser(antlr.TokenStream lexer)
           
protected SimpleParser(antlr.TokenStream lexer, int k)
           
 
Method Summary
 Expression arg()
           
 Expression atom()
           
 Expression constant()
           
 Expression expr()
           
 Expression function()
           
 void imaginaryTokenDefinitions()
           
 Literal literal()
           
 Expression literalarg()
           
 Literal posliteral()
           
 Expression powExpr()
           
 Expression probdef()
           
 Expression prodExpr()
           
 Rule rule()
           
 Expression signExpr()
           
 Expression sumExpr()
           
 Fact tuple()
           
 Expression var()
           
 
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, getTokenTypeToASTClassMap, 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

SimpleParser

protected SimpleParser(antlr.TokenBuffer tokenBuf,
                       int k)

SimpleParser

public SimpleParser(antlr.TokenBuffer tokenBuf)

SimpleParser

protected SimpleParser(antlr.TokenStream lexer,
                       int k)

SimpleParser

public SimpleParser(antlr.TokenStream lexer)

SimpleParser

public SimpleParser(antlr.ParserSharedInputState state)
Method Detail

imaginaryTokenDefinitions

public final void imaginaryTokenDefinitions()
                                     throws antlr.RecognitionException,
                                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

arg

public final Expression arg()
                     throws antlr.RecognitionException,
                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

constant

public final Expression constant()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

var

public final Expression var()
                     throws antlr.RecognitionException,
                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

literalarg

public final Expression literalarg()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

literal

public final Literal literal()
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

tuple

public final Fact tuple()
                 throws antlr.RecognitionException,
                        antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

rule

public final Rule rule()
                throws antlr.RecognitionException,
                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

posliteral

public final Literal posliteral()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

probdef

public final Expression probdef()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

expr

public final Expression expr()
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

sumExpr

public final Expression sumExpr()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

prodExpr

public final Expression prodExpr()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

powExpr

public final Expression powExpr()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

signExpr

public final Expression signExpr()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

atom

public final Expression atom()
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

function

public final Expression function()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException