public class GnuCEmitter extends antlr.TreeParser implements GnuCEmitterTokenTypes
| Modifier and Type | Field and Description |
|---|---|
static String[] |
_tokenNames |
static BitSet |
_tokenSet_0 |
static BitSet |
_tokenSet_1 |
static BitSet |
_tokenSet_2 |
static BitSet |
_tokenSet_3 |
ASSIGN, BadStringLiteral, BAND, BAND_ASSIGN, BNOT, BOR, BOR_ASSIGN, BXOR, BXOR_ASSIGN, CharLiteral, COLON, COMMA, Comment, CPPComment, DEC, DefineExpr, DefineExpr2, 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___attribute, LITERAL___complex, LITERAL___imag, LITERAL___label__, LITERAL___real, LITERAL_asm, LITERAL_auto, LITERAL_break, LITERAL_case, LITERAL_char, LITERAL_const, LITERAL_continue, LITERAL_default, LITERAL_do, LITERAL_double, LITERAL_else, LITERAL_enum, LITERAL_extern, LITERAL_float, LITERAL_for, LITERAL_goto, LITERAL_if, LITERAL_inline, LITERAL_int, LITERAL_intptr_t, LITERAL_long, LITERAL_ptrdiff_t, LITERAL_register, LITERAL_return, LITERAL_short, LITERAL_signed, LITERAL_size_t, LITERAL_sizeof, LITERAL_static, LITERAL_struct, LITERAL_switch, LITERAL_typedef, LITERAL_typeof, LITERAL_uintptr_t, LITERAL_union, LITERAL_unsigned, LITERAL_void, LITERAL_volatile, LITERAL_wchar_t, LITERAL_while, LNOT, LongDoubleConst, LongHexConst, LongIntConst, LongOctalConst, LongSuffix, LOR, LPAREN, LSHIFT, LSHIFT_ASSIGN, LT, LTE, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NAsmAttribute, NCast, NCommaExpr, NCompoundStatement, NDeclaration, NDeclarator, NEmptyExpression, NExpressionGroup, NFunctionCallArgs, NFunctionDef, NGnuAsmExpr, NInitDecl, NInitializer, NInitializerElementLabel, NLabel, NLcurlyInitializer, NNonemptyAbstractDeclarator, NonWhitespace, NOT_EQUAL, NParameterDeclaration, NParameterTypeList, NPointerGroup, NPostfixExpr, NRangeExpr, NStatementExpr, NStringSeq, NStructDeclarator, NTypedefName, NTypeMissing, NULL_TREE_LOOKAHEAD, Number, NUnaryExpr, 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 and Description |
|---|
GnuCEmitter() |
GnuCEmitter(PreprocessorInfoChannel preprocChannel) |
| Modifier and Type | Method and Description |
|---|---|
void |
additiveExpr(AST _t) |
void |
argExprList(AST _t) |
void |
asm_expr(AST _t) |
void |
assignExpr(AST _t) |
void |
attributeDecl(AST _t) |
void |
binaryExpr(AST _t) |
void |
binaryOperator(AST _t) |
void |
bitAndExpr(AST _t) |
void |
castExpr(AST _t) |
protected void |
charConst(AST _t) |
void |
commaExpr(AST _t) |
void |
compoundStatement(AST _t) |
void |
compoundStatementExpr(AST _t) |
void |
conditionalExpr(AST _t) |
void |
declaration(AST _t) |
void |
declarationList(AST _t) |
void |
declarator(AST _t) |
void |
declSpecifiers(AST _t) |
void |
emptyExpr(AST _t) |
void |
enumerator(AST _t) |
void |
enumList(AST _t) |
void |
enumSpecifier(AST _t) |
void |
equalityExpr(AST _t) |
void |
exclusiveOrExpr(AST _t) |
void |
expr(AST _t) |
void |
externalDef(AST _t) |
void |
externalList(AST _t) |
protected void |
floatConst(AST _t) |
void |
functionDeclSpecifiers(AST _t) |
void |
functionDef(AST _t) |
void |
functionStorageClassSpecifier(AST _t) |
void |
gnuAsmExpr(AST _t) |
void |
idList(AST _t) |
void |
inclusiveOrExpr(AST _t) |
void |
initDecl(AST _t) |
void |
initDeclList(AST _t) |
void |
initializer(AST _t) |
void |
initializerElementLabel(AST _t) |
void |
initializerList(AST _t) |
protected void |
intConst(AST _t) |
void |
lcurlyInitializer(AST _t) |
void |
localLabelDecl(AST _t) |
void |
logicalAndExpr(AST _t) |
void |
logicalOrExpr(AST _t) |
void |
match(AST t,
BitSet b) |
protected void |
match(AST t,
int ttype) |
protected void |
matchNot(AST t,
int ttype) |
void |
multExpr(AST _t) |
void |
nonemptyAbstractDeclarator(AST _t) |
void |
parameterDeclaration(AST _t) |
void |
parameterTypeList(AST _t) |
void |
pointerGroup(AST _t) |
void |
postfixExpr(AST _t) |
void |
primaryExpr(AST _t) |
void |
rangeExpr(AST _t) |
void |
relationalExpr(AST _t) |
void |
reportError(MismatchedTokenException ex) |
void |
reportError(NoViableAltException ex) |
void |
reportError(RecognitionException ex) |
void |
reportWarning(String s) |
void |
shiftExpr(AST _t) |
void |
specifierQualifierList(AST _t) |
void |
statement(AST _t) |
void |
statementBody(AST _t) |
void |
statementList(AST _t) |
void |
storageClassSpecifier(AST _t) |
protected void |
stringConst(AST _t) |
void |
strOptExprPair(AST _t) |
void |
structDeclaration(AST _t) |
void |
structDeclarationList(AST _t) |
void |
structDeclarator(AST _t) |
void |
structDeclaratorList(AST _t) |
void |
structOrUnionBody(AST _t) |
void |
structSpecifier(AST _t) |
void |
traceIn(String rname,
AST t) |
void |
traceOut(String rname,
AST t) |
void |
translationUnit(AST _t) |
void |
typedefName(AST _t) |
void |
typelessDeclaration(AST _t) |
void |
typeName(AST _t) |
void |
typeQualifier(AST _t) |
void |
typeSpecifier(AST _t) |
void |
unaryExpr(AST _t) |
void |
unaryOperator(AST _t) |
void |
unionSpecifier(AST _t) |
public static final String[] _tokenNames
public static final BitSet _tokenSet_0
public static final BitSet _tokenSet_1
public static final BitSet _tokenSet_2
public static final BitSet _tokenSet_3
public GnuCEmitter(PreprocessorInfoChannel preprocChannel)
public GnuCEmitter()
public void reportError(RecognitionException ex)
public void reportError(NoViableAltException ex)
public void reportError(MismatchedTokenException ex)
public void reportWarning(String s)
protected void match(AST t,
int ttype)
throws MismatchedTokenException
MismatchedTokenExceptionpublic void match(AST t,
BitSet b)
throws MismatchedTokenException
MismatchedTokenExceptionprotected void matchNot(AST t,
int ttype)
throws MismatchedTokenException
MismatchedTokenExceptionpublic void traceIn(String rname, AST t)
public void traceOut(String rname, AST t)
public final void translationUnit(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void externalList(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void externalDef(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void declaration(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void functionDef(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void asm_expr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void typelessDeclaration(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void initDeclList(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void expr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void declSpecifiers(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void storageClassSpecifier(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void typeQualifier(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void typeSpecifier(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void functionStorageClassSpecifier(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void structSpecifier(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void attributeDecl(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void unionSpecifier(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void enumSpecifier(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void typedefName(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void typeName(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void structOrUnionBody(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void structDeclarationList(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void structDeclaration(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void specifierQualifierList(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void structDeclaratorList(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void structDeclarator(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void declarator(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void enumList(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void enumerator(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void initDecl(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void initializer(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void pointerGroup(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void idList(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void initializerElementLabel(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void lcurlyInitializer(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void initializerList(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void parameterTypeList(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void parameterDeclaration(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void nonemptyAbstractDeclarator(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void functionDeclSpecifiers(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void compoundStatement(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void declarationList(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void localLabelDecl(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void statementList(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void statement(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void statementBody(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void binaryExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void conditionalExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void castExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void unaryExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void postfixExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void primaryExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void emptyExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void compoundStatementExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void rangeExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void gnuAsmExpr(AST _t)
throws RecognitionException
RecognitionExceptionprotected final void stringConst(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void strOptExprPair(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void binaryOperator(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void unaryOperator(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void argExprList(AST _t)
throws RecognitionException
RecognitionExceptionprotected final void charConst(AST _t)
throws RecognitionException
RecognitionExceptionprotected final void intConst(AST _t)
throws RecognitionException
RecognitionExceptionprotected final void floatConst(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void commaExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void assignExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void logicalOrExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void logicalAndExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void inclusiveOrExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void exclusiveOrExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void bitAndExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void equalityExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void relationalExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void shiftExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void additiveExpr(AST _t)
throws RecognitionException
RecognitionExceptionpublic final void multExpr(AST _t)
throws RecognitionException
RecognitionException