edu.toronto.cs.yasm.abstractor
Class PredicateParser

java.lang.Object
  extended by antlr.Parser
      extended by antlr.LLkParser
          extended by edu.toronto.cs.yasm.abstractor.PredicateParser
All Implemented Interfaces:
PredicateParserTokenTypes

public class PredicateParser
extends antlr.LLkParser
implements PredicateParserTokenTypes


Field Summary
static java.lang.String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
 
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
 
Fields inherited from interface edu.toronto.cs.yasm.abstractor.PredicateParserTokenTypes
ASSIGN, BadStringLiteral, BAND, BAND_ASSIGN, BNOT, BOR, BOR_ASSIGN, BXOR, BXOR_ASSIGN, CharLiteral, COLON, COMMA, Comment, CPPComment, DEC, Digit, DIV, DIV_ASSIGN, DOT, DoubleDoubleConst, EOF, EQUAL, Escape, Exponent, FloatDoubleConst, FloatSuffix, GT, GTE, ID, INC, IntHexConst, IntIntConst, IntOctalConst, LAND, LBRACKET, LCURLY, LineDirective, LITERAL___asm__, LITERAL___attribute__, LITERAL___inline, LITERAL___nd_goto, LITERAL_asm, LITERAL_auto, LITERAL_break, LITERAL_char, LITERAL_const, LITERAL_double, LITERAL_else, LITERAL_enum, LITERAL_extern, LITERAL_float, LITERAL_goto, LITERAL_if, LITERAL_int, LITERAL_long, LITERAL_register, LITERAL_return, LITERAL_short, LITERAL_signed, LITERAL_sizeof, LITERAL_static, LITERAL_struct, LITERAL_typedef, LITERAL_union, LITERAL_unsigned, LITERAL_void, LITERAL_volatile, LITERAL_while, LNOT, LongDoubleConst, LongHexConst, LongIntConst, LongOctalConst, LongSuffix, LOR, LPAREN, LSHIFT, LSHIFT_ASSIGN, LT, LTE, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NArrayElement, NArrayIndex, NAsmAttribute, NAssignStmt, NBlock, NBreak, NCast, NCommaExpr, NCompoundStatement, NContinue, NDeclaration, NDeclarator, NDeclSpecifiers, NEmptyExpression, NEmptyScope, NFunctionBody, NFunctionCall, NFunctionCallArgs, NFunctionCallAssignStmt, NFunctionCallStmt, NFunctionDeclSpecifiers, NFunctionDef, NGnuAsmExpr, NGoto, NIf, NImplicitAssignStmt, NInitDecl, NInitializer, NLabel, NLabelledStmt, NLCurlyInitializer, NLHS, NLocalDeclarations, NNDGoto, NNonemptyAbstractDeclarator, NOT_EQUAL, NParameterDeclaration, NParameterTypeList, NPointerGroup, NPostfixExpr, NProgram, NPureExpr, NPureExpressionGroup, NRangeExpr, NReturn, NRHS, NScope, NStatementExpr, NStringSeq, NStructDeclarator, NStructFields, NTypedefName, NULL_TREE_LOOKAHEAD, Number, NUnaryExpr, NWhile, PLUS, PLUS_ASSIGN, PREPROC_DIRECTIVE, PTR, QUESTION, RBRACKET, RCURLY, RPAREN, RSHIFT, RSHIFT_ASSIGN, SEMI, Space, STAR, STAR_ASSIGN, StringLiteral, UnsignedHexConst, UnsignedIntConst, UnsignedOctalConst, UnsignedSuffix, VARARGS, Vocabulary, Whitespace
 
Constructor Summary
  PredicateParser(antlr.ParserSharedInputState state)
           
  PredicateParser(antlr.TokenBuffer tokenBuf)
           
protected PredicateParser(antlr.TokenBuffer tokenBuf, int k)
           
  PredicateParser(antlr.TokenStream lexer)
           
protected PredicateParser(antlr.TokenStream lexer, int k)
           
 
Method Summary
 void arithCompOp()
           
 void arithExpr()
           
 void arithFact()
           
 void arithOp()
           
 void boolExpr()
           
 void boolOp()
           
protected  void buildTokenTypeASTClassMap()
           
protected  void intConst()
           
 void parse()
           
 void predicate()
           
 
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
Constructor Detail

PredicateParser

protected PredicateParser(antlr.TokenBuffer tokenBuf,
                          int k)

PredicateParser

public PredicateParser(antlr.TokenBuffer tokenBuf)

PredicateParser

protected PredicateParser(antlr.TokenStream lexer,
                          int k)

PredicateParser

public PredicateParser(antlr.TokenStream lexer)

PredicateParser

public PredicateParser(antlr.ParserSharedInputState state)
Method Detail

parse

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

predicate

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

boolExpr

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

boolOp

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

arithExpr

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

arithCompOp

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

arithFact

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

intConst

protected final void intConst()
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

arithOp

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

buildTokenTypeASTClassMap

protected void buildTokenTypeASTClassMap()