1 Star 0 Fork 1

zcy543814 / GoCompiler_antlr

forked from victayria77 / GoCompiler_antlr 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
GoParserListener.java 30.75 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999
// Generated from GoParser.g4 by ANTLR 4.9.3
import org.antlr.v4.runtime.tree.ParseTreeListener;
/**
* This interface defines a complete listener for a parse tree produced by
* {@link GoParser}.
*/
public interface GoParserListener extends ParseTreeListener {
/**
* Enter a parse tree produced by {@link GoParser#sourceFile}.
* @param ctx the parse tree
*/
void enterSourceFile(GoParser.SourceFileContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#sourceFile}.
* @param ctx the parse tree
*/
void exitSourceFile(GoParser.SourceFileContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#packageClause}.
* @param ctx the parse tree
*/
void enterPackageClause(GoParser.PackageClauseContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#packageClause}.
* @param ctx the parse tree
*/
void exitPackageClause(GoParser.PackageClauseContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#importDecl}.
* @param ctx the parse tree
*/
void enterImportDecl(GoParser.ImportDeclContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#importDecl}.
* @param ctx the parse tree
*/
void exitImportDecl(GoParser.ImportDeclContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#importSpec}.
* @param ctx the parse tree
*/
void enterImportSpec(GoParser.ImportSpecContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#importSpec}.
* @param ctx the parse tree
*/
void exitImportSpec(GoParser.ImportSpecContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#importPath}.
* @param ctx the parse tree
*/
void enterImportPath(GoParser.ImportPathContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#importPath}.
* @param ctx the parse tree
*/
void exitImportPath(GoParser.ImportPathContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#declaration}.
* @param ctx the parse tree
*/
void enterDeclaration(GoParser.DeclarationContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#declaration}.
* @param ctx the parse tree
*/
void exitDeclaration(GoParser.DeclarationContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#constDecl}.
* @param ctx the parse tree
*/
void enterConstDecl(GoParser.ConstDeclContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#constDecl}.
* @param ctx the parse tree
*/
void exitConstDecl(GoParser.ConstDeclContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#constSpec}.
* @param ctx the parse tree
*/
void enterConstSpec(GoParser.ConstSpecContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#constSpec}.
* @param ctx the parse tree
*/
void exitConstSpec(GoParser.ConstSpecContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#identifierList}.
* @param ctx the parse tree
*/
void enterIdentifierList(GoParser.IdentifierListContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#identifierList}.
* @param ctx the parse tree
*/
void exitIdentifierList(GoParser.IdentifierListContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#expressionList}.
* @param ctx the parse tree
*/
void enterExpressionList(GoParser.ExpressionListContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#expressionList}.
* @param ctx the parse tree
*/
void exitExpressionList(GoParser.ExpressionListContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#typeDecl}.
* @param ctx the parse tree
*/
void enterTypeDecl(GoParser.TypeDeclContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#typeDecl}.
* @param ctx the parse tree
*/
void exitTypeDecl(GoParser.TypeDeclContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#typeSpec}.
* @param ctx the parse tree
*/
void enterTypeSpec(GoParser.TypeSpecContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#typeSpec}.
* @param ctx the parse tree
*/
void exitTypeSpec(GoParser.TypeSpecContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#functionDecl}.
* @param ctx the parse tree
*/
void enterFunctionDecl(GoParser.FunctionDeclContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#functionDecl}.
* @param ctx the parse tree
*/
void exitFunctionDecl(GoParser.FunctionDeclContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#methodDecl}.
* @param ctx the parse tree
*/
void enterMethodDecl(GoParser.MethodDeclContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#methodDecl}.
* @param ctx the parse tree
*/
void exitMethodDecl(GoParser.MethodDeclContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#receiver}.
* @param ctx the parse tree
*/
void enterReceiver(GoParser.ReceiverContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#receiver}.
* @param ctx the parse tree
*/
void exitReceiver(GoParser.ReceiverContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#varDecl}.
* @param ctx the parse tree
*/
void enterVarDecl(GoParser.VarDeclContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#varDecl}.
* @param ctx the parse tree
*/
void exitVarDecl(GoParser.VarDeclContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#varSpec}.
* @param ctx the parse tree
*/
void enterVarSpec(GoParser.VarSpecContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#varSpec}.
* @param ctx the parse tree
*/
void exitVarSpec(GoParser.VarSpecContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#block}.
* @param ctx the parse tree
*/
void enterBlock(GoParser.BlockContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#block}.
* @param ctx the parse tree
*/
void exitBlock(GoParser.BlockContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#statementList}.
* @param ctx the parse tree
*/
void enterStatementList(GoParser.StatementListContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#statementList}.
* @param ctx the parse tree
*/
void exitStatementList(GoParser.StatementListContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#statement}.
* @param ctx the parse tree
*/
void enterStatement(GoParser.StatementContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#statement}.
* @param ctx the parse tree
*/
void exitStatement(GoParser.StatementContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#simpleStmt}.
* @param ctx the parse tree
*/
void enterSimpleStmt(GoParser.SimpleStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#simpleStmt}.
* @param ctx the parse tree
*/
void exitSimpleStmt(GoParser.SimpleStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#expressionStmt}.
* @param ctx the parse tree
*/
void enterExpressionStmt(GoParser.ExpressionStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#expressionStmt}.
* @param ctx the parse tree
*/
void exitExpressionStmt(GoParser.ExpressionStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#sendStmt}.
* @param ctx the parse tree
*/
void enterSendStmt(GoParser.SendStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#sendStmt}.
* @param ctx the parse tree
*/
void exitSendStmt(GoParser.SendStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#incDecStmt}.
* @param ctx the parse tree
*/
void enterIncDecStmt(GoParser.IncDecStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#incDecStmt}.
* @param ctx the parse tree
*/
void exitIncDecStmt(GoParser.IncDecStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#assignment}.
* @param ctx the parse tree
*/
void enterAssignment(GoParser.AssignmentContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#assignment}.
* @param ctx the parse tree
*/
void exitAssignment(GoParser.AssignmentContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#assign_op}.
* @param ctx the parse tree
*/
void enterAssign_op(GoParser.Assign_opContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#assign_op}.
* @param ctx the parse tree
*/
void exitAssign_op(GoParser.Assign_opContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#shortVarDecl}.
* @param ctx the parse tree
*/
void enterShortVarDecl(GoParser.ShortVarDeclContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#shortVarDecl}.
* @param ctx the parse tree
*/
void exitShortVarDecl(GoParser.ShortVarDeclContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#emptyStmt}.
* @param ctx the parse tree
*/
void enterEmptyStmt(GoParser.EmptyStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#emptyStmt}.
* @param ctx the parse tree
*/
void exitEmptyStmt(GoParser.EmptyStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#labeledStmt}.
* @param ctx the parse tree
*/
void enterLabeledStmt(GoParser.LabeledStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#labeledStmt}.
* @param ctx the parse tree
*/
void exitLabeledStmt(GoParser.LabeledStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#returnStmt}.
* @param ctx the parse tree
*/
void enterReturnStmt(GoParser.ReturnStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#returnStmt}.
* @param ctx the parse tree
*/
void exitReturnStmt(GoParser.ReturnStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#breakStmt}.
* @param ctx the parse tree
*/
void enterBreakStmt(GoParser.BreakStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#breakStmt}.
* @param ctx the parse tree
*/
void exitBreakStmt(GoParser.BreakStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#continueStmt}.
* @param ctx the parse tree
*/
void enterContinueStmt(GoParser.ContinueStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#continueStmt}.
* @param ctx the parse tree
*/
void exitContinueStmt(GoParser.ContinueStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#gotoStmt}.
* @param ctx the parse tree
*/
void enterGotoStmt(GoParser.GotoStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#gotoStmt}.
* @param ctx the parse tree
*/
void exitGotoStmt(GoParser.GotoStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#fallthroughStmt}.
* @param ctx the parse tree
*/
void enterFallthroughStmt(GoParser.FallthroughStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#fallthroughStmt}.
* @param ctx the parse tree
*/
void exitFallthroughStmt(GoParser.FallthroughStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#deferStmt}.
* @param ctx the parse tree
*/
void enterDeferStmt(GoParser.DeferStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#deferStmt}.
* @param ctx the parse tree
*/
void exitDeferStmt(GoParser.DeferStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#ifStmt}.
* @param ctx the parse tree
*/
void enterIfStmt(GoParser.IfStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#ifStmt}.
* @param ctx the parse tree
*/
void exitIfStmt(GoParser.IfStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#switchStmt}.
* @param ctx the parse tree
*/
void enterSwitchStmt(GoParser.SwitchStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#switchStmt}.
* @param ctx the parse tree
*/
void exitSwitchStmt(GoParser.SwitchStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#exprSwitchStmt}.
* @param ctx the parse tree
*/
void enterExprSwitchStmt(GoParser.ExprSwitchStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#exprSwitchStmt}.
* @param ctx the parse tree
*/
void exitExprSwitchStmt(GoParser.ExprSwitchStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#exprCaseClause}.
* @param ctx the parse tree
*/
void enterExprCaseClause(GoParser.ExprCaseClauseContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#exprCaseClause}.
* @param ctx the parse tree
*/
void exitExprCaseClause(GoParser.ExprCaseClauseContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#exprSwitchCase}.
* @param ctx the parse tree
*/
void enterExprSwitchCase(GoParser.ExprSwitchCaseContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#exprSwitchCase}.
* @param ctx the parse tree
*/
void exitExprSwitchCase(GoParser.ExprSwitchCaseContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#typeSwitchStmt}.
* @param ctx the parse tree
*/
void enterTypeSwitchStmt(GoParser.TypeSwitchStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#typeSwitchStmt}.
* @param ctx the parse tree
*/
void exitTypeSwitchStmt(GoParser.TypeSwitchStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#typeSwitchGuard}.
* @param ctx the parse tree
*/
void enterTypeSwitchGuard(GoParser.TypeSwitchGuardContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#typeSwitchGuard}.
* @param ctx the parse tree
*/
void exitTypeSwitchGuard(GoParser.TypeSwitchGuardContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#typeCaseClause}.
* @param ctx the parse tree
*/
void enterTypeCaseClause(GoParser.TypeCaseClauseContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#typeCaseClause}.
* @param ctx the parse tree
*/
void exitTypeCaseClause(GoParser.TypeCaseClauseContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#typeSwitchCase}.
* @param ctx the parse tree
*/
void enterTypeSwitchCase(GoParser.TypeSwitchCaseContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#typeSwitchCase}.
* @param ctx the parse tree
*/
void exitTypeSwitchCase(GoParser.TypeSwitchCaseContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#typeList}.
* @param ctx the parse tree
*/
void enterTypeList(GoParser.TypeListContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#typeList}.
* @param ctx the parse tree
*/
void exitTypeList(GoParser.TypeListContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#selectStmt}.
* @param ctx the parse tree
*/
void enterSelectStmt(GoParser.SelectStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#selectStmt}.
* @param ctx the parse tree
*/
void exitSelectStmt(GoParser.SelectStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#commClause}.
* @param ctx the parse tree
*/
void enterCommClause(GoParser.CommClauseContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#commClause}.
* @param ctx the parse tree
*/
void exitCommClause(GoParser.CommClauseContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#commCase}.
* @param ctx the parse tree
*/
void enterCommCase(GoParser.CommCaseContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#commCase}.
* @param ctx the parse tree
*/
void exitCommCase(GoParser.CommCaseContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#recvStmt}.
* @param ctx the parse tree
*/
void enterRecvStmt(GoParser.RecvStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#recvStmt}.
* @param ctx the parse tree
*/
void exitRecvStmt(GoParser.RecvStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#forStmt}.
* @param ctx the parse tree
*/
void enterForStmt(GoParser.ForStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#forStmt}.
* @param ctx the parse tree
*/
void exitForStmt(GoParser.ForStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#forClause}.
* @param ctx the parse tree
*/
void enterForClause(GoParser.ForClauseContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#forClause}.
* @param ctx the parse tree
*/
void exitForClause(GoParser.ForClauseContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#rangeClause}.
* @param ctx the parse tree
*/
void enterRangeClause(GoParser.RangeClauseContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#rangeClause}.
* @param ctx the parse tree
*/
void exitRangeClause(GoParser.RangeClauseContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#goStmt}.
* @param ctx the parse tree
*/
void enterGoStmt(GoParser.GoStmtContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#goStmt}.
* @param ctx the parse tree
*/
void exitGoStmt(GoParser.GoStmtContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#type_}.
* @param ctx the parse tree
*/
void enterType_(GoParser.Type_Context ctx);
/**
* Exit a parse tree produced by {@link GoParser#type_}.
* @param ctx the parse tree
*/
void exitType_(GoParser.Type_Context ctx);
/**
* Enter a parse tree produced by {@link GoParser#typeName}.
* @param ctx the parse tree
*/
void enterTypeName(GoParser.TypeNameContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#typeName}.
* @param ctx the parse tree
*/
void exitTypeName(GoParser.TypeNameContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#typeLit}.
* @param ctx the parse tree
*/
void enterTypeLit(GoParser.TypeLitContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#typeLit}.
* @param ctx the parse tree
*/
void exitTypeLit(GoParser.TypeLitContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#arrayType}.
* @param ctx the parse tree
*/
void enterArrayType(GoParser.ArrayTypeContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#arrayType}.
* @param ctx the parse tree
*/
void exitArrayType(GoParser.ArrayTypeContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#arrayLength}.
* @param ctx the parse tree
*/
void enterArrayLength(GoParser.ArrayLengthContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#arrayLength}.
* @param ctx the parse tree
*/
void exitArrayLength(GoParser.ArrayLengthContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#elementType}.
* @param ctx the parse tree
*/
void enterElementType(GoParser.ElementTypeContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#elementType}.
* @param ctx the parse tree
*/
void exitElementType(GoParser.ElementTypeContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#pointerType}.
* @param ctx the parse tree
*/
void enterPointerType(GoParser.PointerTypeContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#pointerType}.
* @param ctx the parse tree
*/
void exitPointerType(GoParser.PointerTypeContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#interfaceType}.
* @param ctx the parse tree
*/
void enterInterfaceType(GoParser.InterfaceTypeContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#interfaceType}.
* @param ctx the parse tree
*/
void exitInterfaceType(GoParser.InterfaceTypeContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#sliceType}.
* @param ctx the parse tree
*/
void enterSliceType(GoParser.SliceTypeContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#sliceType}.
* @param ctx the parse tree
*/
void exitSliceType(GoParser.SliceTypeContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#mapType}.
* @param ctx the parse tree
*/
void enterMapType(GoParser.MapTypeContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#mapType}.
* @param ctx the parse tree
*/
void exitMapType(GoParser.MapTypeContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#channelType}.
* @param ctx the parse tree
*/
void enterChannelType(GoParser.ChannelTypeContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#channelType}.
* @param ctx the parse tree
*/
void exitChannelType(GoParser.ChannelTypeContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#methodSpec}.
* @param ctx the parse tree
*/
void enterMethodSpec(GoParser.MethodSpecContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#methodSpec}.
* @param ctx the parse tree
*/
void exitMethodSpec(GoParser.MethodSpecContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#functionType}.
* @param ctx the parse tree
*/
void enterFunctionType(GoParser.FunctionTypeContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#functionType}.
* @param ctx the parse tree
*/
void exitFunctionType(GoParser.FunctionTypeContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#signature}.
* @param ctx the parse tree
*/
void enterSignature(GoParser.SignatureContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#signature}.
* @param ctx the parse tree
*/
void exitSignature(GoParser.SignatureContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#result}.
* @param ctx the parse tree
*/
void enterResult(GoParser.ResultContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#result}.
* @param ctx the parse tree
*/
void exitResult(GoParser.ResultContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#parameters}.
* @param ctx the parse tree
*/
void enterParameters(GoParser.ParametersContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#parameters}.
* @param ctx the parse tree
*/
void exitParameters(GoParser.ParametersContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#parameterDecl}.
* @param ctx the parse tree
*/
void enterParameterDecl(GoParser.ParameterDeclContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#parameterDecl}.
* @param ctx the parse tree
*/
void exitParameterDecl(GoParser.ParameterDeclContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#expression}.
* @param ctx the parse tree
*/
void enterExpression(GoParser.ExpressionContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#expression}.
* @param ctx the parse tree
*/
void exitExpression(GoParser.ExpressionContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#primaryExpr}.
* @param ctx the parse tree
*/
void enterPrimaryExpr(GoParser.PrimaryExprContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#primaryExpr}.
* @param ctx the parse tree
*/
void exitPrimaryExpr(GoParser.PrimaryExprContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#conversion}.
* @param ctx the parse tree
*/
void enterConversion(GoParser.ConversionContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#conversion}.
* @param ctx the parse tree
*/
void exitConversion(GoParser.ConversionContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#nonNamedType}.
* @param ctx the parse tree
*/
void enterNonNamedType(GoParser.NonNamedTypeContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#nonNamedType}.
* @param ctx the parse tree
*/
void exitNonNamedType(GoParser.NonNamedTypeContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#operand}.
* @param ctx the parse tree
*/
void enterOperand(GoParser.OperandContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#operand}.
* @param ctx the parse tree
*/
void exitOperand(GoParser.OperandContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#literal}.
* @param ctx the parse tree
*/
void enterLiteral(GoParser.LiteralContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#literal}.
* @param ctx the parse tree
*/
void exitLiteral(GoParser.LiteralContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#basicLit}.
* @param ctx the parse tree
*/
void enterBasicLit(GoParser.BasicLitContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#basicLit}.
* @param ctx the parse tree
*/
void exitBasicLit(GoParser.BasicLitContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#integer}.
* @param ctx the parse tree
*/
void enterInteger(GoParser.IntegerContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#integer}.
* @param ctx the parse tree
*/
void exitInteger(GoParser.IntegerContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#operandName}.
* @param ctx the parse tree
*/
void enterOperandName(GoParser.OperandNameContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#operandName}.
* @param ctx the parse tree
*/
void exitOperandName(GoParser.OperandNameContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#qualifiedIdent}.
* @param ctx the parse tree
*/
void enterQualifiedIdent(GoParser.QualifiedIdentContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#qualifiedIdent}.
* @param ctx the parse tree
*/
void exitQualifiedIdent(GoParser.QualifiedIdentContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#compositeLit}.
* @param ctx the parse tree
*/
void enterCompositeLit(GoParser.CompositeLitContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#compositeLit}.
* @param ctx the parse tree
*/
void exitCompositeLit(GoParser.CompositeLitContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#literalType}.
* @param ctx the parse tree
*/
void enterLiteralType(GoParser.LiteralTypeContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#literalType}.
* @param ctx the parse tree
*/
void exitLiteralType(GoParser.LiteralTypeContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#literalValue}.
* @param ctx the parse tree
*/
void enterLiteralValue(GoParser.LiteralValueContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#literalValue}.
* @param ctx the parse tree
*/
void exitLiteralValue(GoParser.LiteralValueContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#elementList}.
* @param ctx the parse tree
*/
void enterElementList(GoParser.ElementListContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#elementList}.
* @param ctx the parse tree
*/
void exitElementList(GoParser.ElementListContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#keyedElement}.
* @param ctx the parse tree
*/
void enterKeyedElement(GoParser.KeyedElementContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#keyedElement}.
* @param ctx the parse tree
*/
void exitKeyedElement(GoParser.KeyedElementContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#key}.
* @param ctx the parse tree
*/
void enterKey(GoParser.KeyContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#key}.
* @param ctx the parse tree
*/
void exitKey(GoParser.KeyContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#element}.
* @param ctx the parse tree
*/
void enterElement(GoParser.ElementContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#element}.
* @param ctx the parse tree
*/
void exitElement(GoParser.ElementContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#structType}.
* @param ctx the parse tree
*/
void enterStructType(GoParser.StructTypeContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#structType}.
* @param ctx the parse tree
*/
void exitStructType(GoParser.StructTypeContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#fieldDecl}.
* @param ctx the parse tree
*/
void enterFieldDecl(GoParser.FieldDeclContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#fieldDecl}.
* @param ctx the parse tree
*/
void exitFieldDecl(GoParser.FieldDeclContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#string_}.
* @param ctx the parse tree
*/
void enterString_(GoParser.String_Context ctx);
/**
* Exit a parse tree produced by {@link GoParser#string_}.
* @param ctx the parse tree
*/
void exitString_(GoParser.String_Context ctx);
/**
* Enter a parse tree produced by {@link GoParser#embeddedField}.
* @param ctx the parse tree
*/
void enterEmbeddedField(GoParser.EmbeddedFieldContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#embeddedField}.
* @param ctx the parse tree
*/
void exitEmbeddedField(GoParser.EmbeddedFieldContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#functionLit}.
* @param ctx the parse tree
*/
void enterFunctionLit(GoParser.FunctionLitContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#functionLit}.
* @param ctx the parse tree
*/
void exitFunctionLit(GoParser.FunctionLitContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#index}.
* @param ctx the parse tree
*/
void enterIndex(GoParser.IndexContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#index}.
* @param ctx the parse tree
*/
void exitIndex(GoParser.IndexContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#slice_}.
* @param ctx the parse tree
*/
void enterSlice_(GoParser.Slice_Context ctx);
/**
* Exit a parse tree produced by {@link GoParser#slice_}.
* @param ctx the parse tree
*/
void exitSlice_(GoParser.Slice_Context ctx);
/**
* Enter a parse tree produced by {@link GoParser#typeAssertion}.
* @param ctx the parse tree
*/
void enterTypeAssertion(GoParser.TypeAssertionContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#typeAssertion}.
* @param ctx the parse tree
*/
void exitTypeAssertion(GoParser.TypeAssertionContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#arguments}.
* @param ctx the parse tree
*/
void enterArguments(GoParser.ArgumentsContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#arguments}.
* @param ctx the parse tree
*/
void exitArguments(GoParser.ArgumentsContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#methodExpr}.
* @param ctx the parse tree
*/
void enterMethodExpr(GoParser.MethodExprContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#methodExpr}.
* @param ctx the parse tree
*/
void exitMethodExpr(GoParser.MethodExprContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#receiverType}.
* @param ctx the parse tree
*/
void enterReceiverType(GoParser.ReceiverTypeContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#receiverType}.
* @param ctx the parse tree
*/
void exitReceiverType(GoParser.ReceiverTypeContext ctx);
/**
* Enter a parse tree produced by {@link GoParser#eos}.
* @param ctx the parse tree
*/
void enterEos(GoParser.EosContext ctx);
/**
* Exit a parse tree produced by {@link GoParser#eos}.
* @param ctx the parse tree
*/
void exitEos(GoParser.EosContext ctx);
}
Java
1
https://gitee.com/zcy543814/go-compiler_antlr.git
git@gitee.com:zcy543814/go-compiler_antlr.git
zcy543814
go-compiler_antlr
GoCompiler_antlr
phase1_simpleExpression

搜索帮助