| 1 | # Generated from parser/CMOD.g4 by ANTLR 4.13.2
|
|---|
| 2 | from antlr4 import *
|
|---|
| 3 | if "." in __name__:
|
|---|
| 4 | from .CMODParser import CMODParser
|
|---|
| 5 | else:
|
|---|
| 6 | from CMODParser import CMODParser
|
|---|
| 7 |
|
|---|
| 8 | # This class defines a complete listener for a parse tree produced by CMODParser.
|
|---|
| 9 | class CMODListener(ParseTreeListener):
|
|---|
| 10 |
|
|---|
| 11 | # Enter a parse tree produced by CMODParser#compilationUnit.
|
|---|
| 12 | def enterCompilationUnit(self, ctx:CMODParser.CompilationUnitContext):
|
|---|
| 13 | pass
|
|---|
| 14 |
|
|---|
| 15 | # Exit a parse tree produced by CMODParser#compilationUnit.
|
|---|
| 16 | def exitCompilationUnit(self, ctx:CMODParser.CompilationUnitContext):
|
|---|
| 17 | pass
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 | # Enter a parse tree produced by CMODParser#translationUnit.
|
|---|
| 21 | def enterTranslationUnit(self, ctx:CMODParser.TranslationUnitContext):
|
|---|
| 22 | pass
|
|---|
| 23 |
|
|---|
| 24 | # Exit a parse tree produced by CMODParser#translationUnit.
|
|---|
| 25 | def exitTranslationUnit(self, ctx:CMODParser.TranslationUnitContext):
|
|---|
| 26 | pass
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 | # Enter a parse tree produced by CMODParser#moduleDeclaration.
|
|---|
| 30 | def enterModuleDeclaration(self, ctx:CMODParser.ModuleDeclarationContext):
|
|---|
| 31 | pass
|
|---|
| 32 |
|
|---|
| 33 | # Exit a parse tree produced by CMODParser#moduleDeclaration.
|
|---|
| 34 | def exitModuleDeclaration(self, ctx:CMODParser.ModuleDeclarationContext):
|
|---|
| 35 | pass
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 | # Enter a parse tree produced by CMODParser#importDeclaration.
|
|---|
| 39 | def enterImportDeclaration(self, ctx:CMODParser.ImportDeclarationContext):
|
|---|
| 40 | pass
|
|---|
| 41 |
|
|---|
| 42 | # Exit a parse tree produced by CMODParser#importDeclaration.
|
|---|
| 43 | def exitImportDeclaration(self, ctx:CMODParser.ImportDeclarationContext):
|
|---|
| 44 | pass
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 | # Enter a parse tree produced by CMODParser#externalDeclaration.
|
|---|
| 48 | def enterExternalDeclaration(self, ctx:CMODParser.ExternalDeclarationContext):
|
|---|
| 49 | pass
|
|---|
| 50 |
|
|---|
| 51 | # Exit a parse tree produced by CMODParser#externalDeclaration.
|
|---|
| 52 | def exitExternalDeclaration(self, ctx:CMODParser.ExternalDeclarationContext):
|
|---|
| 53 | pass
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 | # Enter a parse tree produced by CMODParser#structDefinition.
|
|---|
| 57 | def enterStructDefinition(self, ctx:CMODParser.StructDefinitionContext):
|
|---|
| 58 | pass
|
|---|
| 59 |
|
|---|
| 60 | # Exit a parse tree produced by CMODParser#structDefinition.
|
|---|
| 61 | def exitStructDefinition(self, ctx:CMODParser.StructDefinitionContext):
|
|---|
| 62 | pass
|
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 | # Enter a parse tree produced by CMODParser#structField.
|
|---|
| 66 | def enterStructField(self, ctx:CMODParser.StructFieldContext):
|
|---|
| 67 | pass
|
|---|
| 68 |
|
|---|
| 69 | # Exit a parse tree produced by CMODParser#structField.
|
|---|
| 70 | def exitStructField(self, ctx:CMODParser.StructFieldContext):
|
|---|
| 71 | pass
|
|---|
| 72 |
|
|---|
| 73 |
|
|---|
| 74 | # Enter a parse tree produced by CMODParser#globalDefinition.
|
|---|
| 75 | def enterGlobalDefinition(self, ctx:CMODParser.GlobalDefinitionContext):
|
|---|
| 76 | pass
|
|---|
| 77 |
|
|---|
| 78 | # Exit a parse tree produced by CMODParser#globalDefinition.
|
|---|
| 79 | def exitGlobalDefinition(self, ctx:CMODParser.GlobalDefinitionContext):
|
|---|
| 80 | pass
|
|---|
| 81 |
|
|---|
| 82 |
|
|---|
| 83 | # Enter a parse tree produced by CMODParser#functionDefinition.
|
|---|
| 84 | def enterFunctionDefinition(self, ctx:CMODParser.FunctionDefinitionContext):
|
|---|
| 85 | pass
|
|---|
| 86 |
|
|---|
| 87 | # Exit a parse tree produced by CMODParser#functionDefinition.
|
|---|
| 88 | def exitFunctionDefinition(self, ctx:CMODParser.FunctionDefinitionContext):
|
|---|
| 89 | pass
|
|---|
| 90 |
|
|---|
| 91 |
|
|---|
| 92 | # Enter a parse tree produced by CMODParser#parameterList.
|
|---|
| 93 | def enterParameterList(self, ctx:CMODParser.ParameterListContext):
|
|---|
| 94 | pass
|
|---|
| 95 |
|
|---|
| 96 | # Exit a parse tree produced by CMODParser#parameterList.
|
|---|
| 97 | def exitParameterList(self, ctx:CMODParser.ParameterListContext):
|
|---|
| 98 | pass
|
|---|
| 99 |
|
|---|
| 100 |
|
|---|
| 101 | # Enter a parse tree produced by CMODParser#compoundStatement.
|
|---|
| 102 | def enterCompoundStatement(self, ctx:CMODParser.CompoundStatementContext):
|
|---|
| 103 | pass
|
|---|
| 104 |
|
|---|
| 105 | # Exit a parse tree produced by CMODParser#compoundStatement.
|
|---|
| 106 | def exitCompoundStatement(self, ctx:CMODParser.CompoundStatementContext):
|
|---|
| 107 | pass
|
|---|
| 108 |
|
|---|
| 109 |
|
|---|
| 110 | # Enter a parse tree produced by CMODParser#statement.
|
|---|
| 111 | def enterStatement(self, ctx:CMODParser.StatementContext):
|
|---|
| 112 | pass
|
|---|
| 113 |
|
|---|
| 114 | # Exit a parse tree produced by CMODParser#statement.
|
|---|
| 115 | def exitStatement(self, ctx:CMODParser.StatementContext):
|
|---|
| 116 | pass
|
|---|
| 117 |
|
|---|
| 118 |
|
|---|
| 119 | # Enter a parse tree produced by CMODParser#expression.
|
|---|
| 120 | def enterExpression(self, ctx:CMODParser.ExpressionContext):
|
|---|
| 121 | pass
|
|---|
| 122 |
|
|---|
| 123 | # Exit a parse tree produced by CMODParser#expression.
|
|---|
| 124 | def exitExpression(self, ctx:CMODParser.ExpressionContext):
|
|---|
| 125 | pass
|
|---|
| 126 |
|
|---|
| 127 |
|
|---|
| 128 | # Enter a parse tree produced by CMODParser#typeSpecifier.
|
|---|
| 129 | def enterTypeSpecifier(self, ctx:CMODParser.TypeSpecifierContext):
|
|---|
| 130 | pass
|
|---|
| 131 |
|
|---|
| 132 | # Exit a parse tree produced by CMODParser#typeSpecifier.
|
|---|
| 133 | def exitTypeSpecifier(self, ctx:CMODParser.TypeSpecifierContext):
|
|---|
| 134 | pass
|
|---|
| 135 |
|
|---|
| 136 |
|
|---|
| 137 | # Enter a parse tree produced by CMODParser#declarator.
|
|---|
| 138 | def enterDeclarator(self, ctx:CMODParser.DeclaratorContext):
|
|---|
| 139 | pass
|
|---|
| 140 |
|
|---|
| 141 | # Exit a parse tree produced by CMODParser#declarator.
|
|---|
| 142 | def exitDeclarator(self, ctx:CMODParser.DeclaratorContext):
|
|---|
| 143 | pass
|
|---|
| 144 |
|
|---|
| 145 |
|
|---|
| 146 |
|
|---|
| 147 | del CMODParser
|
|---|