Class StdCParser

    • Field Detail

      • CPPComments

        public static boolean CPPComments
      • unnamedScopeCounter

        protected int unnamedScopeCounter
      • _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
      • _tokenSet_4

        public static final antlr.collections.impl.BitSet _tokenSet_4
      • _tokenSet_5

        public static final antlr.collections.impl.BitSet _tokenSet_5
      • _tokenSet_6

        public static final antlr.collections.impl.BitSet _tokenSet_6
      • _tokenSet_7

        public static final antlr.collections.impl.BitSet _tokenSet_7
      • _tokenSet_8

        public static final antlr.collections.impl.BitSet _tokenSet_8
      • _tokenSet_9

        public static final antlr.collections.impl.BitSet _tokenSet_9
      • _tokenSet_10

        public static final antlr.collections.impl.BitSet _tokenSet_10
      • _tokenSet_11

        public static final antlr.collections.impl.BitSet _tokenSet_11
      • _tokenSet_12

        public static final antlr.collections.impl.BitSet _tokenSet_12
      • _tokenSet_13

        public static final antlr.collections.impl.BitSet _tokenSet_13
      • _tokenSet_14

        public static final antlr.collections.impl.BitSet _tokenSet_14
      • _tokenSet_15

        public static final antlr.collections.impl.BitSet _tokenSet_15
      • _tokenSet_16

        public static final antlr.collections.impl.BitSet _tokenSet_16
      • _tokenSet_17

        public static final antlr.collections.impl.BitSet _tokenSet_17
      • _tokenSet_18

        public static final antlr.collections.impl.BitSet _tokenSet_18
      • _tokenSet_19

        public static final antlr.collections.impl.BitSet _tokenSet_19
      • _tokenSet_20

        public static final antlr.collections.impl.BitSet _tokenSet_20
      • _tokenSet_21

        public static final antlr.collections.impl.BitSet _tokenSet_21
      • _tokenSet_22

        public static final antlr.collections.impl.BitSet _tokenSet_22
      • _tokenSet_23

        public static final antlr.collections.impl.BitSet _tokenSet_23
      • _tokenSet_24

        public static final antlr.collections.impl.BitSet _tokenSet_24
      • _tokenSet_25

        public static final antlr.collections.impl.BitSet _tokenSet_25
      • _tokenSet_26

        public static final antlr.collections.impl.BitSet _tokenSet_26
      • _tokenSet_27

        public static final antlr.collections.impl.BitSet _tokenSet_27
      • _tokenSet_28

        public static final antlr.collections.impl.BitSet _tokenSet_28
      • _tokenSet_29

        public static final antlr.collections.impl.BitSet _tokenSet_29
      • _tokenSet_30

        public static final antlr.collections.impl.BitSet _tokenSet_30
      • _tokenSet_31

        public static final antlr.collections.impl.BitSet _tokenSet_31
      • _tokenSet_32

        public static final antlr.collections.impl.BitSet _tokenSet_32
      • _tokenSet_33

        public static final antlr.collections.impl.BitSet _tokenSet_33
      • _tokenSet_34

        public static final antlr.collections.impl.BitSet _tokenSet_34
      • _tokenSet_35

        public static final antlr.collections.impl.BitSet _tokenSet_35
      • _tokenSet_36

        public static final antlr.collections.impl.BitSet _tokenSet_36
      • _tokenSet_37

        public static final antlr.collections.impl.BitSet _tokenSet_37
      • _tokenSet_38

        public static final antlr.collections.impl.BitSet _tokenSet_38
      • _tokenSet_39

        public static final antlr.collections.impl.BitSet _tokenSet_39
      • _tokenSet_40

        public static final antlr.collections.impl.BitSet _tokenSet_40
      • _tokenSet_41

        public static final antlr.collections.impl.BitSet _tokenSet_41
      • _tokenSet_42

        public static final antlr.collections.impl.BitSet _tokenSet_42
      • _tokenSet_43

        public static final antlr.collections.impl.BitSet _tokenSet_43
      • _tokenSet_44

        public static final antlr.collections.impl.BitSet _tokenSet_44
      • _tokenSet_45

        public static final antlr.collections.impl.BitSet _tokenSet_45
      • _tokenSet_46

        public static final antlr.collections.impl.BitSet _tokenSet_46
      • _tokenSet_47

        public static final antlr.collections.impl.BitSet _tokenSet_47
      • _tokenSet_48

        public static final antlr.collections.impl.BitSet _tokenSet_48
      • _tokenSet_49

        public static final antlr.collections.impl.BitSet _tokenSet_49
      • _tokenSet_50

        public static final antlr.collections.impl.BitSet _tokenSet_50
      • _tokenSet_51

        public static final antlr.collections.impl.BitSet _tokenSet_51
      • _tokenSet_52

        public static final antlr.collections.impl.BitSet _tokenSet_52
      • _tokenSet_53

        public static final antlr.collections.impl.BitSet _tokenSet_53
      • _tokenSet_54

        public static final antlr.collections.impl.BitSet _tokenSet_54
      • _tokenSet_55

        public static final antlr.collections.impl.BitSet _tokenSet_55
      • _tokenSet_56

        public static final antlr.collections.impl.BitSet _tokenSet_56
      • _tokenSet_57

        public static final antlr.collections.impl.BitSet _tokenSet_57
      • _tokenSet_58

        public static final antlr.collections.impl.BitSet _tokenSet_58
      • _tokenSet_59

        public static final antlr.collections.impl.BitSet _tokenSet_59
      • _tokenSet_60

        public static final antlr.collections.impl.BitSet _tokenSet_60
    • Constructor Detail

      • StdCParser

        protected StdCParser​(antlr.TokenBuffer tokenBuf,
                             int k)
      • StdCParser

        public StdCParser​(antlr.TokenBuffer tokenBuf)
      • StdCParser

        protected StdCParser​(antlr.TokenStream lexer,
                             int k)
      • StdCParser

        public StdCParser​(antlr.TokenStream lexer)
      • StdCParser

        public StdCParser​(antlr.ParserSharedInputState state)
    • Method Detail

      • isTypedefName

        public boolean isTypedefName​(String name)
      • getAScopeName

        public String getAScopeName()
      • pushScope

        public void pushScope​(String scopeName)
      • popScope

        public void popScope()
      • reportError

        public void reportError​(antlr.RecognitionException ex)
        Overrides:
        reportError in class antlr.Parser
      • reportError

        public void reportError​(String s)
        Overrides:
        reportError in class antlr.Parser
      • reportWarning

        public void reportWarning​(String s)
        Overrides:
        reportWarning in class antlr.Parser
      • match

        public void match​(int t)
                   throws antlr.MismatchedTokenException
        Overrides:
        match in class antlr.Parser
        Throws:
        antlr.MismatchedTokenException
      • traceIn

        public void traceIn​(String rname)
        Overrides:
        traceIn in class antlr.LLkParser
      • traceOut

        public void traceOut​(String rname)
        Overrides:
        traceOut in class antlr.LLkParser
      • translationUnit

        public final void translationUnit()
                                   throws antlr.RecognitionException,
                                          antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • externalList

        public final void externalList()
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • externalDef

        public final void externalDef()
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • declaration

        public final void declaration()
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • functionDef

        public final void functionDef()
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • asm_expr

        public final void asm_expr()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • expr

        public final void expr()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • declSpecifiers

        public final void declSpecifiers()
                                  throws antlr.RecognitionException,
                                         antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • initDeclList

        public final void initDeclList​(antlr.collections.AST declarationSpecifiers)
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • storageClassSpecifier

        public final void storageClassSpecifier()
                                         throws antlr.RecognitionException,
                                                antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • typeQualifier

        public final void typeQualifier()
                                 throws antlr.RecognitionException,
                                        antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • typeSpecifier

        public final int typeSpecifier​(int specCount)
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • functionStorageClassSpecifier

        public final void functionStorageClassSpecifier()
                                                 throws antlr.RecognitionException,
                                                        antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • structOrUnionSpecifier

        public final void structOrUnionSpecifier()
                                          throws antlr.RecognitionException,
                                                 antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • enumSpecifier

        public final void enumSpecifier()
                                 throws antlr.RecognitionException,
                                        antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • typedefName

        public final void typedefName()
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • structOrUnion

        public final void structOrUnion()
                                 throws antlr.RecognitionException,
                                        antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • structDeclarationList

        public final void structDeclarationList()
                                         throws antlr.RecognitionException,
                                                antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • structDeclaration

        public final void structDeclaration()
                                     throws antlr.RecognitionException,
                                            antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • specifierQualifierList

        public final void specifierQualifierList()
                                          throws antlr.RecognitionException,
                                                 antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • structDeclaratorList

        public final void structDeclaratorList()
                                        throws antlr.RecognitionException,
                                               antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • structDeclarator

        public final void structDeclarator()
                                    throws antlr.RecognitionException,
                                           antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • constExpr

        public final void constExpr()
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • declarator

        public final String declarator​(boolean isFunctionDefinition)
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • enumList

        public final void enumList​(String enumName)
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • enumerator

        public final void enumerator​(String enumName)
                              throws antlr.RecognitionException,
                                     antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • initDecl

        public final void initDecl​(antlr.collections.AST declarationSpecifiers)
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • initializer

        public final void initializer()
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • pointerGroup

        public final void pointerGroup()
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • idList

        public final void idList()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • assignExpr

        public final void assignExpr()
                              throws antlr.RecognitionException,
                                     antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • initializerList

        public final void initializerList()
                                   throws antlr.RecognitionException,
                                          antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • parameterTypeList

        public final void parameterTypeList()
                                     throws antlr.RecognitionException,
                                            antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • parameterDeclaration

        public final void parameterDeclaration()
                                        throws antlr.RecognitionException,
                                               antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • nonemptyAbstractDeclarator

        public final void nonemptyAbstractDeclarator()
                                              throws antlr.RecognitionException,
                                                     antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • functionDeclSpecifiers

        public final void functionDeclSpecifiers()
                                          throws antlr.RecognitionException,
                                                 antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • compoundStatement

        public final void compoundStatement​(String scopeName)
                                     throws antlr.RecognitionException,
                                            antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • declarationList

        public final void declarationList()
                                   throws antlr.RecognitionException,
                                          antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • declarationPredictor

        public final void declarationPredictor()
                                        throws antlr.RecognitionException,
                                               antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • statementList

        public final void statementList()
                                 throws antlr.RecognitionException,
                                        antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • statement

        public final void statement()
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • conditionalExpr

        public final void conditionalExpr()
                                   throws antlr.RecognitionException,
                                          antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • assignOperator

        public final void assignOperator()
                                  throws antlr.RecognitionException,
                                         antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • logicalOrExpr

        public final void logicalOrExpr()
                                 throws antlr.RecognitionException,
                                        antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • logicalAndExpr

        public final void logicalAndExpr()
                                  throws antlr.RecognitionException,
                                         antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • inclusiveOrExpr

        public final void inclusiveOrExpr()
                                   throws antlr.RecognitionException,
                                          antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • exclusiveOrExpr

        public final void exclusiveOrExpr()
                                   throws antlr.RecognitionException,
                                          antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • bitAndExpr

        public final void bitAndExpr()
                              throws antlr.RecognitionException,
                                     antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • equalityExpr

        public final void equalityExpr()
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • relationalExpr

        public final void relationalExpr()
                                  throws antlr.RecognitionException,
                                         antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • shiftExpr

        public final void shiftExpr()
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • additiveExpr

        public final void additiveExpr()
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • multExpr

        public final void multExpr()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • castExpr

        public final void castExpr()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • typeName

        public final void typeName()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • unaryExpr

        public final void unaryExpr()
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • postfixExpr

        public final void postfixExpr()
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • unaryOperator

        public final void unaryOperator()
                                 throws antlr.RecognitionException,
                                        antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • primaryExpr

        public final void primaryExpr()
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • postfixSuffix

        public final void postfixSuffix()
                                 throws antlr.RecognitionException,
                                        antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • functionCall

        public final void functionCall()
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • argExprList

        public final void argExprList()
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • charConst

        protected final void charConst()
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • intConst

        protected final void intConst()
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • floatConst

        protected final void floatConst()
                                 throws antlr.RecognitionException,
                                        antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • stringConst

        protected final void stringConst()
                                  throws antlr.RecognitionException,
                                         antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • dummy

        public final void dummy()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
        Throws:
        antlr.RecognitionException
        antlr.TokenStreamException
      • buildTokenTypeASTClassMap

        protected void buildTokenTypeASTClassMap()