Package com.jogamp.gluegen.cgram
Class GnuCEmitter
- java.lang.Object
-
- antlr.TreeParser
-
- com.jogamp.gluegen.cgram.GnuCEmitter
-
- All Implemented Interfaces:
GnuCEmitterTokenTypes
public class GnuCEmitter extends antlr.TreeParser implements GnuCEmitterTokenTypes
-
-
Field Summary
Fields Modifier and Type Field Description static String[]_tokenNamesstatic antlr.collections.impl.BitSet_tokenSet_0static antlr.collections.impl.BitSet_tokenSet_1static antlr.collections.impl.BitSet_tokenSet_2static antlr.collections.impl.BitSet_tokenSet_3-
Fields inherited from class antlr.TreeParser
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames
-
Fields inherited from interface com.jogamp.gluegen.cgram.GnuCEmitterTokenTypes
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 Summary
Constructors Constructor Description GnuCEmitter()GnuCEmitter(PreprocessorInfoChannel preprocChannel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadditiveExpr(antlr.collections.AST _t)voidargExprList(antlr.collections.AST _t)voidasm_expr(antlr.collections.AST _t)voidassignExpr(antlr.collections.AST _t)voidattributeDecl(antlr.collections.AST _t)voidbinaryExpr(antlr.collections.AST _t)voidbinaryOperator(antlr.collections.AST _t)voidbitAndExpr(antlr.collections.AST _t)voidcastExpr(antlr.collections.AST _t)protected voidcharConst(antlr.collections.AST _t)voidcommaExpr(antlr.collections.AST _t)voidcompoundStatement(antlr.collections.AST _t)voidcompoundStatementExpr(antlr.collections.AST _t)voidconditionalExpr(antlr.collections.AST _t)voiddeclaration(antlr.collections.AST _t)voiddeclarationList(antlr.collections.AST _t)voiddeclarator(antlr.collections.AST _t)voiddeclSpecifiers(antlr.collections.AST _t)voidemptyExpr(antlr.collections.AST _t)voidenumerator(antlr.collections.AST _t)voidenumList(antlr.collections.AST _t)voidenumSpecifier(antlr.collections.AST _t)voidequalityExpr(antlr.collections.AST _t)voidexclusiveOrExpr(antlr.collections.AST _t)voidexpr(antlr.collections.AST _t)voidexternalDef(antlr.collections.AST _t)voidexternalList(antlr.collections.AST _t)protected voidfloatConst(antlr.collections.AST _t)voidfunctionDeclSpecifiers(antlr.collections.AST _t)voidfunctionDef(antlr.collections.AST _t)voidfunctionStorageClassSpecifier(antlr.collections.AST _t)voidgnuAsmExpr(antlr.collections.AST _t)voididList(antlr.collections.AST _t)voidinclusiveOrExpr(antlr.collections.AST _t)voidinitDecl(antlr.collections.AST _t)voidinitDeclList(antlr.collections.AST _t)voidinitializer(antlr.collections.AST _t)voidinitializerElementLabel(antlr.collections.AST _t)voidinitializerList(antlr.collections.AST _t)protected voidintConst(antlr.collections.AST _t)voidlcurlyInitializer(antlr.collections.AST _t)voidlocalLabelDecl(antlr.collections.AST _t)voidlogicalAndExpr(antlr.collections.AST _t)voidlogicalOrExpr(antlr.collections.AST _t)protected voidmatch(antlr.collections.AST t, int ttype)voidmatch(antlr.collections.AST t, antlr.collections.impl.BitSet b)protected voidmatchNot(antlr.collections.AST t, int ttype)voidmultExpr(antlr.collections.AST _t)voidnonemptyAbstractDeclarator(antlr.collections.AST _t)voidparameterDeclaration(antlr.collections.AST _t)voidparameterTypeList(antlr.collections.AST _t)voidpointerGroup(antlr.collections.AST _t)voidpostfixExpr(antlr.collections.AST _t)voidprimaryExpr(antlr.collections.AST _t)voidrangeExpr(antlr.collections.AST _t)voidrelationalExpr(antlr.collections.AST _t)voidreportError(antlr.MismatchedTokenException ex)voidreportError(antlr.NoViableAltException ex)voidreportError(antlr.RecognitionException ex)voidreportError(String s)voidreportWarning(String s)voidshiftExpr(antlr.collections.AST _t)voidspecifierQualifierList(antlr.collections.AST _t)voidstatement(antlr.collections.AST _t)voidstatementBody(antlr.collections.AST _t)voidstatementList(antlr.collections.AST _t)voidstorageClassSpecifier(antlr.collections.AST _t)protected voidstringConst(antlr.collections.AST _t)voidstrOptExprPair(antlr.collections.AST _t)voidstructDeclaration(antlr.collections.AST _t)voidstructDeclarationList(antlr.collections.AST _t)voidstructDeclarator(antlr.collections.AST _t)voidstructDeclaratorList(antlr.collections.AST _t)voidstructOrUnionBody(antlr.collections.AST _t)voidstructSpecifier(antlr.collections.AST _t)voidtraceIn(String rname, antlr.collections.AST t)voidtraceOut(String rname, antlr.collections.AST t)voidtranslationUnit(antlr.collections.AST _t)voidtypedefName(antlr.collections.AST _t)voidtypelessDeclaration(antlr.collections.AST _t)voidtypeName(antlr.collections.AST _t)voidtypeQualifier(antlr.collections.AST _t)voidtypeSpecifier(antlr.collections.AST _t)voidunaryExpr(antlr.collections.AST _t)voidunaryOperator(antlr.collections.AST _t)voidunionSpecifier(antlr.collections.AST _t)
-
-
-
Field Detail
-
_tokenNames
public static final 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
-
-
Constructor Detail
-
GnuCEmitter
public GnuCEmitter(PreprocessorInfoChannel preprocChannel)
-
GnuCEmitter
public GnuCEmitter()
-
-
Method Detail
-
reportError
public void reportError(antlr.RecognitionException ex)
- Overrides:
reportErrorin classantlr.TreeParser
-
reportError
public void reportError(antlr.NoViableAltException ex)
-
reportError
public void reportError(antlr.MismatchedTokenException ex)
-
reportError
public void reportError(String s)
- Overrides:
reportErrorin classantlr.TreeParser
-
reportWarning
public void reportWarning(String s)
- Overrides:
reportWarningin classantlr.TreeParser
-
match
protected void match(antlr.collections.AST t, int ttype) throws antlr.MismatchedTokenException- Overrides:
matchin classantlr.TreeParser- Throws:
antlr.MismatchedTokenException
-
match
public void match(antlr.collections.AST t, antlr.collections.impl.BitSet b) throws antlr.MismatchedTokenException- Overrides:
matchin classantlr.TreeParser- Throws:
antlr.MismatchedTokenException
-
matchNot
protected void matchNot(antlr.collections.AST t, int ttype) throws antlr.MismatchedTokenException- Overrides:
matchNotin classantlr.TreeParser- Throws:
antlr.MismatchedTokenException
-
traceIn
public void traceIn(String rname, antlr.collections.AST t)
- Overrides:
traceInin classantlr.TreeParser
-
traceOut
public void traceOut(String rname, antlr.collections.AST t)
- Overrides:
traceOutin classantlr.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
-
asm_expr
public final void asm_expr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
typelessDeclaration
public final void typelessDeclaration(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
-
expr
public final void expr(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
-
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
-
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
-
structOrUnionBody
public final void structOrUnionBody(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
-
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
-
declarator
public final void declarator(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
-
initDecl
public final void initDecl(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
-
pointerGroup
public final void pointerGroup(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
-
compoundStatement
public final void compoundStatement(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
-
statementList
public final void statementList(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
statement
public final void statement(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
statementBody
public final void statementBody(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
binaryExpr
public final void binaryExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
conditionalExpr
public final void conditionalExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
castExpr
public final void castExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
unaryExpr
public final void unaryExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
postfixExpr
public final void postfixExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
primaryExpr
public final void primaryExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
emptyExpr
public final void emptyExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
compoundStatementExpr
public final void compoundStatementExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
rangeExpr
public final void rangeExpr(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
-
binaryOperator
public final void binaryOperator(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
-
argExprList
public final void argExprList(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
-
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
-
commaExpr
public final void commaExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
assignExpr
public final void assignExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
logicalOrExpr
public final void logicalOrExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
logicalAndExpr
public final void logicalAndExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
inclusiveOrExpr
public final void inclusiveOrExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
exclusiveOrExpr
public final void exclusiveOrExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
bitAndExpr
public final void bitAndExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
equalityExpr
public final void equalityExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
relationalExpr
public final void relationalExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
shiftExpr
public final void shiftExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
additiveExpr
public final void additiveExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
multExpr
public final void multExpr(antlr.collections.AST _t) throws antlr.RecognitionException- Throws:
antlr.RecognitionException
-
-