edu.toronto.cs.cparser
Class CILProgramBlocker

java.lang.Object
  extended by antlr.TreeParser
      extended by edu.toronto.cs.cparser.CILProgramBlocker
All Implemented Interfaces:
CILProgramBlockerTokenTypes

public class CILProgramBlocker
extends antlr.TreeParser
implements CILProgramBlockerTokenTypes


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
           
 
Fields inherited from class antlr.TreeParser
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames
 
Fields inherited from interface edu.toronto.cs.cparser.CILProgramBlockerTokenTypes
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___alignof, LITERAL___asm__, LITERAL___attribute__, LITERAL___complex, LITERAL___imag, LITERAL___inline, LITERAL___label__, LITERAL___nd_goto, LITERAL___real, 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_typeof, 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, NInitializerElementLabel, 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
CILProgramBlocker()
           
 
Method Summary
 void argExprList(antlr.collections.AST _t)
           
 void arraySuffix(antlr.collections.AST _t)
           
 void assignStmt(antlr.collections.AST _t)
           
 void attributeDecl(antlr.collections.AST _t)
           
protected  void charConst(antlr.collections.AST _t)
           
 void controlStmt(antlr.collections.AST _t)
           
 void declaration(antlr.collections.AST _t)
           
 void declarationList(antlr.collections.AST _t)
           
 void declarator(antlr.collections.AST _t)
           
 void declSpecifiers(antlr.collections.AST _t)
           
 void enumerator(antlr.collections.AST _t)
           
 void enumList(antlr.collections.AST _t)
           
 void enumSpecifier(antlr.collections.AST _t)
           
 void externalDef(antlr.collections.AST _t)
           
 void externalList(antlr.collections.AST _t)
           
protected  void floatConst(antlr.collections.AST _t)
           
 void functionCall(antlr.collections.AST _t)
           
 void functionCallAssignStmt(antlr.collections.AST _t)
           
 void functionCallStmt(antlr.collections.AST _t)
           
 void functionDeclSpecifiers(antlr.collections.AST _t)
           
 void functionDef(antlr.collections.AST _t)
           
 void functionStorageClassSpecifier(antlr.collections.AST _t)
           
 void gnuAsmExpr(antlr.collections.AST _t)
           
 void idList(antlr.collections.AST _t)
           
 void initDecl(antlr.collections.AST _t)
           
 void initDeclList(antlr.collections.AST _t)
           
 void initializer(antlr.collections.AST _t)
           
 void initializerElementLabel(antlr.collections.AST _t)
           
 void initializerList(antlr.collections.AST _t)
           
protected  void intConst(antlr.collections.AST _t)
           
 void labelledStmt(antlr.collections.AST _t)
           
 void lcurlyInitializer(antlr.collections.AST _t)
           
 void localLabelDecl(antlr.collections.AST _t)
           
 void lval(antlr.collections.AST _t)
           
 void match(antlr.collections.AST t, antlr.collections.impl.BitSet b)
           
protected  void match(antlr.collections.AST t, int ttype)
           
protected  void matchNot(antlr.collections.AST t, int ttype)
           
 void ndGotoStringList(antlr.collections.AST _t)
           
 void nonemptyAbstractDeclarator(antlr.collections.AST _t)
           
 void optDeclarations(antlr.collections.AST _t)
           
 void optStatements(antlr.collections.AST _t)
           
 void parameterDeclaration(antlr.collections.AST _t)
           
 void parameterTypeList(antlr.collections.AST _t)
           
 void pointerGroup(antlr.collections.AST _t)
           
 void pureAdditiveExpr(antlr.collections.AST _t)
           
 void pureBitwiseExpr(antlr.collections.AST _t)
           
 void pureCastExpr(antlr.collections.AST _t)
           
 void pureEqualityExpr(antlr.collections.AST _t)
           
 void pureExpr(antlr.collections.AST _t)
           
 void pureLogicalAndExpr(antlr.collections.AST _t)
           
 void pureLogicalOrExpr(antlr.collections.AST _t)
           
 void pureMultExpr(antlr.collections.AST _t)
           
 void purePostfixExpr(antlr.collections.AST _t)
           
 void purePrimaryExpr(antlr.collections.AST _t)
           
 void pureRelationalExpr(antlr.collections.AST _t)
           
 void pureUnaryExpr(antlr.collections.AST _t)
           
 void reportError(antlr.MismatchedTokenException ex)
           
 void reportError(antlr.NoViableAltException ex)
           
 void reportError(antlr.RecognitionException ex)
           
 void reportError(java.lang.String s)
           
 void reportWarning(java.lang.String s)
           
 void scope(antlr.collections.AST _t)
           
 void specifierQualifierList(antlr.collections.AST _t)
           
 void statementList(antlr.collections.AST _t)
           
 void stmt(antlr.collections.AST _t)
           
 void storageClassSpecifier(antlr.collections.AST _t)
           
protected  void stringConst(antlr.collections.AST _t)
           
 void strOptExprPair(antlr.collections.AST _t)
           
 void structDeclaration(antlr.collections.AST _t)
           
 void structDeclarationList(antlr.collections.AST _t)
           
 void structDeclarator(antlr.collections.AST _t)
           
 void structDeclaratorList(antlr.collections.AST _t)
           
 void structOrUnionBody(antlr.collections.AST _t)
           
 void structSpecifier(antlr.collections.AST _t)
           
 void traceIn(java.lang.String rname, antlr.collections.AST t)
           
 void traceOut(java.lang.String rname, antlr.collections.AST t)
           
 void translationUnit(antlr.collections.AST _t)
           
 void typedefName(antlr.collections.AST _t)
           
 void typeName(antlr.collections.AST _t)
           
 void typeQualifier(antlr.collections.AST _t)
           
 void typeSpecifier(antlr.collections.AST _t)
           
 void unaryOperator(antlr.collections.AST _t)
           
 void unionSpecifier(antlr.collections.AST _t)
           
 
Methods inherited from class antlr.TreeParser
getAST, getASTFactory, getTokenName, getTokenNames, panic, setASTFactory, setASTNodeClass, setASTNodeType, 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
Constructor Detail

CILProgramBlocker

public CILProgramBlocker()
Method Detail

reportError

public void reportError(antlr.RecognitionException ex)
Overrides:
reportError in class antlr.TreeParser

reportError

public void reportError(antlr.NoViableAltException ex)

reportError

public void reportError(antlr.MismatchedTokenException ex)

reportError

public void reportError(java.lang.String s)
Overrides:
reportError in class antlr.TreeParser

reportWarning

public void reportWarning(java.lang.String s)
Overrides:
reportWarning in class antlr.TreeParser

match

protected void match(antlr.collections.AST t,
                     int ttype)
              throws antlr.MismatchedTokenException
Overrides:
match in class antlr.TreeParser
Throws:
antlr.MismatchedTokenException

match

public void match(antlr.collections.AST t,
                  antlr.collections.impl.BitSet b)
           throws antlr.MismatchedTokenException
Overrides:
match in class antlr.TreeParser
Throws:
antlr.MismatchedTokenException

matchNot

protected void matchNot(antlr.collections.AST t,
                        int ttype)
                 throws antlr.MismatchedTokenException
Overrides:
matchNot in class antlr.TreeParser
Throws:
antlr.MismatchedTokenException

traceIn

public void traceIn(java.lang.String rname,
                    antlr.collections.AST t)
Overrides:
traceIn in class antlr.TreeParser

traceOut

public void traceOut(java.lang.String rname,
                     antlr.collections.AST t)
Overrides:
traceOut in class antlr.TreeParser

translationUnit

public final void translationUnit(antlr.collections.AST _t)
                           throws antlr.RecognitionException
Throws:
antlr.RecognitionException

externalList

public final void externalList(antlr.collections.AST _t)
                        throws antlr.RecognitionException
Throws:
antlr.RecognitionException

externalDef

public final void externalDef(antlr.collections.AST _t)
                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

declaration

public final void declaration(antlr.collections.AST _t)
                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

functionDef

public final void functionDef(antlr.collections.AST _t)
                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

declSpecifiers

public final void declSpecifiers(antlr.collections.AST _t)
                          throws antlr.RecognitionException
Throws:
antlr.RecognitionException

declarator

public final void declarator(antlr.collections.AST _t)
                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

initializer

public final void initializer(antlr.collections.AST _t)
                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

storageClassSpecifier

public final void storageClassSpecifier(antlr.collections.AST _t)
                                 throws antlr.RecognitionException
Throws:
antlr.RecognitionException

typeQualifier

public final void typeQualifier(antlr.collections.AST _t)
                         throws antlr.RecognitionException
Throws:
antlr.RecognitionException

typeSpecifier

public final void typeSpecifier(antlr.collections.AST _t)
                         throws antlr.RecognitionException
Throws:
antlr.RecognitionException

pointerGroup

public final void pointerGroup(antlr.collections.AST _t)
                        throws antlr.RecognitionException
Throws:
antlr.RecognitionException

functionStorageClassSpecifier

public final void functionStorageClassSpecifier(antlr.collections.AST _t)
                                         throws antlr.RecognitionException
Throws:
antlr.RecognitionException

structSpecifier

public final void structSpecifier(antlr.collections.AST _t)
                           throws antlr.RecognitionException
Throws:
antlr.RecognitionException

attributeDecl

public final void attributeDecl(antlr.collections.AST _t)
                         throws antlr.RecognitionException
Throws:
antlr.RecognitionException

unionSpecifier

public final void unionSpecifier(antlr.collections.AST _t)
                          throws antlr.RecognitionException
Throws:
antlr.RecognitionException

enumSpecifier

public final void enumSpecifier(antlr.collections.AST _t)
                         throws antlr.RecognitionException
Throws:
antlr.RecognitionException

typedefName

public final void typedefName(antlr.collections.AST _t)
                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

typeName

public final void typeName(antlr.collections.AST _t)
                    throws antlr.RecognitionException
Throws:
antlr.RecognitionException

pureExpr

public final void pureExpr(antlr.collections.AST _t)
                    throws antlr.RecognitionException
Throws:
antlr.RecognitionException

structDeclarationList

public final void structDeclarationList(antlr.collections.AST _t)
                                 throws antlr.RecognitionException
Throws:
antlr.RecognitionException

structOrUnionBody

public final void structOrUnionBody(antlr.collections.AST _t)
                             throws antlr.RecognitionException
Throws:
antlr.RecognitionException

structDeclaration

public final void structDeclaration(antlr.collections.AST _t)
                             throws antlr.RecognitionException
Throws:
antlr.RecognitionException

specifierQualifierList

public final void specifierQualifierList(antlr.collections.AST _t)
                                  throws antlr.RecognitionException
Throws:
antlr.RecognitionException

structDeclaratorList

public final void structDeclaratorList(antlr.collections.AST _t)
                                throws antlr.RecognitionException
Throws:
antlr.RecognitionException

structDeclarator

public final void structDeclarator(antlr.collections.AST _t)
                            throws antlr.RecognitionException
Throws:
antlr.RecognitionException

enumList

public final void enumList(antlr.collections.AST _t)
                    throws antlr.RecognitionException
Throws:
antlr.RecognitionException

enumerator

public final void enumerator(antlr.collections.AST _t)
                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

initDeclList

public final void initDeclList(antlr.collections.AST _t)
                        throws antlr.RecognitionException
Throws:
antlr.RecognitionException

initDecl

public final void initDecl(antlr.collections.AST _t)
                    throws antlr.RecognitionException
Throws:
antlr.RecognitionException

idList

public final void idList(antlr.collections.AST _t)
                  throws antlr.RecognitionException
Throws:
antlr.RecognitionException

initializerElementLabel

public final void initializerElementLabel(antlr.collections.AST _t)
                                   throws antlr.RecognitionException
Throws:
antlr.RecognitionException

lcurlyInitializer

public final void lcurlyInitializer(antlr.collections.AST _t)
                             throws antlr.RecognitionException
Throws:
antlr.RecognitionException

initializerList

public final void initializerList(antlr.collections.AST _t)
                           throws antlr.RecognitionException
Throws:
antlr.RecognitionException

parameterTypeList

public final void parameterTypeList(antlr.collections.AST _t)
                             throws antlr.RecognitionException
Throws:
antlr.RecognitionException

parameterDeclaration

public final void parameterDeclaration(antlr.collections.AST _t)
                                throws antlr.RecognitionException
Throws:
antlr.RecognitionException

nonemptyAbstractDeclarator

public final void nonemptyAbstractDeclarator(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

functionDeclSpecifiers

public final void functionDeclSpecifiers(antlr.collections.AST _t)
                                  throws antlr.RecognitionException
Throws:
antlr.RecognitionException

scope

public final void scope(antlr.collections.AST _t)
                 throws antlr.RecognitionException
Throws:
antlr.RecognitionException

declarationList

public final void declarationList(antlr.collections.AST _t)
                           throws antlr.RecognitionException
Throws:
antlr.RecognitionException

localLabelDecl

public final void localLabelDecl(antlr.collections.AST _t)
                          throws antlr.RecognitionException
Throws:
antlr.RecognitionException

optDeclarations

public final void optDeclarations(antlr.collections.AST _t)
                           throws antlr.RecognitionException
Throws:
antlr.RecognitionException

optStatements

public final void optStatements(antlr.collections.AST _t)
                         throws antlr.RecognitionException
Throws:
antlr.RecognitionException

statementList

public final void statementList(antlr.collections.AST _t)
                         throws antlr.RecognitionException
Throws:
antlr.RecognitionException

stmt

public final void stmt(antlr.collections.AST _t)
                throws antlr.RecognitionException
Throws:
antlr.RecognitionException

assignStmt

public final void assignStmt(antlr.collections.AST _t)
                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

functionCallAssignStmt

public final void functionCallAssignStmt(antlr.collections.AST _t)
                                  throws antlr.RecognitionException
Throws:
antlr.RecognitionException

functionCallStmt

public final void functionCallStmt(antlr.collections.AST _t)
                            throws antlr.RecognitionException
Throws:
antlr.RecognitionException

labelledStmt

public final void labelledStmt(antlr.collections.AST _t)
                        throws antlr.RecognitionException
Throws:
antlr.RecognitionException

controlStmt

public final void controlStmt(antlr.collections.AST _t)
                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

gnuAsmExpr

public final void gnuAsmExpr(antlr.collections.AST _t)
                      throws antlr.RecognitionException
Throws:
antlr.RecognitionException

stringConst

protected final void stringConst(antlr.collections.AST _t)
                          throws antlr.RecognitionException
Throws:
antlr.RecognitionException

strOptExprPair

public final void strOptExprPair(antlr.collections.AST _t)
                          throws antlr.RecognitionException
Throws:
antlr.RecognitionException

lval

public final void lval(antlr.collections.AST _t)
                throws antlr.RecognitionException
Throws:
antlr.RecognitionException

ndGotoStringList

public final void ndGotoStringList(antlr.collections.AST _t)
                            throws antlr.RecognitionException
Throws:
antlr.RecognitionException

functionCall

public final void functionCall(antlr.collections.AST _t)
                        throws antlr.RecognitionException
Throws:
antlr.RecognitionException

argExprList

public final void argExprList(antlr.collections.AST _t)
                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

arraySuffix

public final void arraySuffix(antlr.collections.AST _t)
                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

pureLogicalOrExpr

public final void pureLogicalOrExpr(antlr.collections.AST _t)
                             throws antlr.RecognitionException
Throws:
antlr.RecognitionException

pureLogicalAndExpr

public final void pureLogicalAndExpr(antlr.collections.AST _t)
                              throws antlr.RecognitionException
Throws:
antlr.RecognitionException

pureEqualityExpr

public final void pureEqualityExpr(antlr.collections.AST _t)
                            throws antlr.RecognitionException
Throws:
antlr.RecognitionException

pureRelationalExpr

public final void pureRelationalExpr(antlr.collections.AST _t)
                              throws antlr.RecognitionException
Throws:
antlr.RecognitionException

pureAdditiveExpr

public final void pureAdditiveExpr(antlr.collections.AST _t)
                            throws antlr.RecognitionException
Throws:
antlr.RecognitionException

pureMultExpr

public final void pureMultExpr(antlr.collections.AST _t)
                        throws antlr.RecognitionException
Throws:
antlr.RecognitionException

pureBitwiseExpr

public final void pureBitwiseExpr(antlr.collections.AST _t)
                           throws antlr.RecognitionException
Throws:
antlr.RecognitionException

pureCastExpr

public final void pureCastExpr(antlr.collections.AST _t)
                        throws antlr.RecognitionException
Throws:
antlr.RecognitionException

pureUnaryExpr

public final void pureUnaryExpr(antlr.collections.AST _t)
                         throws antlr.RecognitionException
Throws:
antlr.RecognitionException

purePrimaryExpr

public final void purePrimaryExpr(antlr.collections.AST _t)
                           throws antlr.RecognitionException
Throws:
antlr.RecognitionException

purePostfixExpr

public final void purePostfixExpr(antlr.collections.AST _t)
                           throws antlr.RecognitionException
Throws:
antlr.RecognitionException

unaryOperator

public final void unaryOperator(antlr.collections.AST _t)
                         throws antlr.RecognitionException
Throws:
antlr.RecognitionException

intConst

protected final void intConst(antlr.collections.AST _t)
                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

floatConst

protected final void floatConst(antlr.collections.AST _t)
                         throws antlr.RecognitionException
Throws:
antlr.RecognitionException

charConst

protected final void charConst(antlr.collections.AST _t)
                        throws antlr.RecognitionException
Throws:
antlr.RecognitionException