Package com.jogamp.gluegen.cgram
Class GnuCTreeParser
- java.lang.Object
-
- antlr.TreeParser
-
- com.jogamp.gluegen.cgram.GnuCTreeParser
-
- All Implemented Interfaces:
GnuCTreeParserTokenTypes
public class GnuCTreeParser extends antlr.TreeParser implements GnuCTreeParserTokenTypes
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
_tokenNames
static antlr.collections.impl.BitSet
_tokenSet_0
static antlr.collections.impl.BitSet
_tokenSet_1
static antlr.collections.impl.BitSet
_tokenSet_2
static 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.GnuCTreeParserTokenTypes
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 GnuCTreeParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
additiveExpr(antlr.collections.AST _t)
void
argExprList(antlr.collections.AST _t)
void
asm_expr(antlr.collections.AST _t)
void
assignExpr(antlr.collections.AST _t)
void
attributeDecl(antlr.collections.AST _t)
void
bitAndExpr(antlr.collections.AST _t)
void
castExpr(antlr.collections.AST _t)
protected void
charConst(antlr.collections.AST _t)
void
commaExpr(antlr.collections.AST _t)
void
compoundStatement(antlr.collections.AST _t)
void
compoundStatementExpr(antlr.collections.AST _t)
void
conditionalExpr(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
emptyExpr(antlr.collections.AST _t)
void
enumerator(antlr.collections.AST _t)
void
enumList(antlr.collections.AST _t)
void
enumSpecifier(antlr.collections.AST _t)
void
equalityExpr(antlr.collections.AST _t)
void
exclusiveOrExpr(antlr.collections.AST _t)
void
expr(antlr.collections.AST _t)
void
externalDef(antlr.collections.AST _t)
void
externalList(antlr.collections.AST _t)
protected void
floatConst(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
inclusiveOrExpr(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
lcurlyInitializer(antlr.collections.AST _t)
void
localLabelDecl(antlr.collections.AST _t)
void
logicalAndExpr(antlr.collections.AST _t)
void
logicalOrExpr(antlr.collections.AST _t)
protected void
match(antlr.collections.AST t, int ttype)
void
match(antlr.collections.AST t, antlr.collections.impl.BitSet b)
protected void
matchNot(antlr.collections.AST t, int ttype)
void
multExpr(antlr.collections.AST _t)
void
nonemptyAbstractDeclarator(antlr.collections.AST _t)
void
parameterDeclaration(antlr.collections.AST _t)
void
parameterTypeList(antlr.collections.AST _t)
void
pointerGroup(antlr.collections.AST _t)
void
postfixExpr(antlr.collections.AST _t)
void
primaryExpr(antlr.collections.AST _t)
void
rangeExpr(antlr.collections.AST _t)
void
relationalExpr(antlr.collections.AST _t)
void
reportError(antlr.MismatchedTokenException ex)
void
reportError(antlr.NoViableAltException ex)
void
reportError(antlr.RecognitionException ex)
void
reportError(String s)
void
reportWarning(String s)
void
shiftExpr(antlr.collections.AST _t)
void
specifierQualifierList(antlr.collections.AST _t)
void
statement(antlr.collections.AST _t)
void
statementBody(antlr.collections.AST _t)
void
statementList(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(String rname, antlr.collections.AST t)
void
traceOut(String rname, antlr.collections.AST t)
void
translationUnit(antlr.collections.AST _t)
void
typedefName(antlr.collections.AST _t)
void
typelessDeclaration(antlr.collections.AST _t)
void
typeName(antlr.collections.AST _t)
void
typeQualifier(antlr.collections.AST _t)
void
typeSpecifier(antlr.collections.AST _t)
void
unaryExpr(antlr.collections.AST _t)
void
unaryOperator(antlr.collections.AST _t)
void
unionSpecifier(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
-
-
Method Detail
-
reportError
public void reportError(antlr.RecognitionException ex)
- Overrides:
reportError
in classantlr.TreeParser
-
reportError
public void reportError(antlr.NoViableAltException ex)
-
reportError
public void reportError(antlr.MismatchedTokenException ex)
-
reportError
public void reportError(String s)
- Overrides:
reportError
in classantlr.TreeParser
-
reportWarning
public void reportWarning(String s)
- Overrides:
reportWarning
in classantlr.TreeParser
-
match
protected void match(antlr.collections.AST t, int ttype) throws antlr.MismatchedTokenException
- Overrides:
match
in classantlr.TreeParser
- Throws:
antlr.MismatchedTokenException
-
match
public void match(antlr.collections.AST t, antlr.collections.impl.BitSet b) throws antlr.MismatchedTokenException
- Overrides:
match
in classantlr.TreeParser
- Throws:
antlr.MismatchedTokenException
-
matchNot
protected void matchNot(antlr.collections.AST t, int ttype) throws antlr.MismatchedTokenException
- Overrides:
matchNot
in classantlr.TreeParser
- Throws:
antlr.MismatchedTokenException
-
traceIn
public void traceIn(String rname, antlr.collections.AST t)
- Overrides:
traceIn
in classantlr.TreeParser
-
traceOut
public void traceOut(String rname, antlr.collections.AST t)
- Overrides:
traceOut
in 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
-
assignExpr
public final void assignExpr(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
-
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
-
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
-
commaExpr
public final void commaExpr(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
-
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
-
-