edu.toronto.cs.yasm.abstractor
Class DeclsParser

java.lang.Object
  extended by antlr.TreeParser
      extended by edu.toronto.cs.yasm.abstractor.DeclsParser
All Implemented Interfaces:
DeclsParserTokenTypes

public class DeclsParser
extends antlr.TreeParser
implements DeclsParserTokenTypes


Field Summary
static java.lang.String[] _tokenNames
           
 
Fields inherited from class antlr.TreeParser
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepth
 
Fields inherited from interface edu.toronto.cs.yasm.abstractor.DeclsParserTokenTypes
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
DeclsParser()
           
 
Method Summary
 Expr declaration(antlr.collections.AST _t, ValidityChecker vc)
           
 void declarationList(antlr.collections.AST _t, ValidityChecker vc, java.util.List decls)
           
 java.lang.String declarator(antlr.collections.AST _t)
           
 Type declSpecifiers(antlr.collections.AST _t, ValidityChecker vc)
           
 java.lang.String initDecl(antlr.collections.AST _t)
           
 void pointerGroup(antlr.collections.AST _t)
           
 Type structSpecifier(antlr.collections.AST _t, ValidityChecker vc)
           
 Type typeSpecifier(antlr.collections.AST _t, ValidityChecker vc)
           
 
Methods inherited from class antlr.TreeParser
getAST, getASTFactory, getTokenName, getTokenNames, match, match, matchNot, panic, reportError, reportError, reportWarning, setASTFactory, setASTNodeClass, setASTNodeType, traceIn, traceIndent, traceOut
 
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
Constructor Detail

DeclsParser

public DeclsParser()
Method Detail

declarationList

public final void declarationList(antlr.collections.AST _t,
                                  ValidityChecker vc,
                                  java.util.List decls)
                           throws antlr.RecognitionException
Throws:
antlr.RecognitionException

declaration

public final Expr declaration(antlr.collections.AST _t,
                              ValidityChecker vc)
                       throws antlr.RecognitionException
Throws:
antlr.RecognitionException

declSpecifiers

public final Type declSpecifiers(antlr.collections.AST _t,
                                 ValidityChecker vc)
                          throws antlr.RecognitionException
Throws:
antlr.RecognitionException

declarator

public final java.lang.String declarator(antlr.collections.AST _t)
                                  throws antlr.RecognitionException
Throws:
antlr.RecognitionException

typeSpecifier

public final Type typeSpecifier(antlr.collections.AST _t,
                                ValidityChecker vc)
                         throws antlr.RecognitionException
Throws:
antlr.RecognitionException

pointerGroup

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

structSpecifier

public final Type structSpecifier(antlr.collections.AST _t,
                                  ValidityChecker vc)
                           throws antlr.RecognitionException
Throws:
antlr.RecognitionException

initDecl

public final java.lang.String initDecl(antlr.collections.AST _t)
                                throws antlr.RecognitionException
Throws:
antlr.RecognitionException