123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549 |
- // Generated from C:\Users\EUGENIO CARVALHO\Desktop\projects\Ivannosys\src\grammar\IvannosysGrammar.g4 by ANTLR 4.2.2
- package grammar;
- import java.util.HashMap;
- import java.util.Stack;
- import org.antlr.v4.runtime.misc.NotNull;
- import org.antlr.v4.runtime.tree.ParseTreeVisitor;
- /**
- * This interface defines a complete generic visitor for a parse tree produced
- * by {@link IvannosysGrammarParser}.
- *
- * @param <T> The return type of the visit operation. Use {@link Void} for
- * operations with no return type.
- */
- public interface IvannosysGrammarVisitor<T> extends ParseTreeVisitor<T> {
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#expression}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitExpression(@NotNull IvannosysGrammarParser.ExpressionContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#expression_list}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitExpression_list(@NotNull IvannosysGrammarParser.Expression_listContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#func_literal}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitFunc_literal(@NotNull IvannosysGrammarParser.Func_literalContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#func_spec}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitFunc_spec(@NotNull IvannosysGrammarParser.Func_specContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#def_block}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDef_block(@NotNull IvannosysGrammarParser.Def_blockContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#arrayType}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitArrayType(@NotNull IvannosysGrammarParser.ArrayTypeContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#def_switch}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDef_switch(@NotNull IvannosysGrammarParser.Def_switchContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#test}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitTest(@NotNull IvannosysGrammarParser.TestContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#assign_modify}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitAssign_modify(@NotNull IvannosysGrammarParser.Assign_modifyContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#expression_list_typed}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitExpression_list_typed(@NotNull IvannosysGrammarParser.Expression_list_typedContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#dec_var_part}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDec_var_part(@NotNull IvannosysGrammarParser.Dec_var_partContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#type}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitType(@NotNull IvannosysGrammarParser.TypeContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#catch_exception}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitCatch_exception(@NotNull IvannosysGrammarParser.Catch_exceptionContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#dec_const_part}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDec_const_part(@NotNull IvannosysGrammarParser.Dec_const_partContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#unary_expr}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitUnary_expr(@NotNull IvannosysGrammarParser.Unary_exprContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#def_for}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDef_for(@NotNull IvannosysGrammarParser.Def_forContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#fallthroughStmt}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitFallthroughStmt(@NotNull IvannosysGrammarParser.FallthroughStmtContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#import_part}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitImport_part(@NotNull IvannosysGrammarParser.Import_partContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#programPart}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitProgramPart(@NotNull IvannosysGrammarParser.ProgramPartContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#for_each}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitFor_each(@NotNull IvannosysGrammarParser.For_eachContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#def_interface}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDef_interface(@NotNull IvannosysGrammarParser.Def_interfaceContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#build_stmt}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitBuild_stmt(@NotNull IvannosysGrammarParser.Build_stmtContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#mapType}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitMapType(@NotNull IvannosysGrammarParser.MapTypeContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#try_catch}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitTry_catch(@NotNull IvannosysGrammarParser.Try_catchContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#increment}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitIncrement(@NotNull IvannosysGrammarParser.IncrementContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#index}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitIndex(@NotNull IvannosysGrammarParser.IndexContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#buildvalue}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitBuildvalue(@NotNull IvannosysGrammarParser.BuildvalueContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#buildtags}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitBuildtags(@NotNull IvannosysGrammarParser.BuildtagsContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#def_case}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDef_case(@NotNull IvannosysGrammarParser.Def_caseContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#callExpr}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitCallExpr(@NotNull IvannosysGrammarParser.CallExprContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#init}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitInit(@NotNull IvannosysGrammarParser.InitContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#for_clause}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitFor_clause(@NotNull IvannosysGrammarParser.For_clauseContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#throwStmt}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitThrowStmt(@NotNull IvannosysGrammarParser.ThrowStmtContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#composite}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitComposite(@NotNull IvannosysGrammarParser.CompositeContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#id_list}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitId_list(@NotNull IvannosysGrammarParser.Id_listContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#statement}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitStatement(@NotNull IvannosysGrammarParser.StatementContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#initialization}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitInitialization(@NotNull IvannosysGrammarParser.InitializationContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#flux_control}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitFlux_control(@NotNull IvannosysGrammarParser.Flux_controlContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#return_stmt}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitReturn_stmt(@NotNull IvannosysGrammarParser.Return_stmtContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#return_dec}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitReturn_dec(@NotNull IvannosysGrammarParser.Return_decContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#def_assign_op}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDef_assign_op(@NotNull IvannosysGrammarParser.Def_assign_opContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#indexedType}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitIndexedType(@NotNull IvannosysGrammarParser.IndexedTypeContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#def_if}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDef_if(@NotNull IvannosysGrammarParser.Def_ifContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#finally_try}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitFinally_try(@NotNull IvannosysGrammarParser.Finally_tryContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#range}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitRange(@NotNull IvannosysGrammarParser.RangeContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#element_list}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitElement_list(@NotNull IvannosysGrammarParser.Element_listContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#structType}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitStructType(@NotNull IvannosysGrammarParser.StructTypeContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#label_stmt}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitLabel_stmt(@NotNull IvannosysGrammarParser.Label_stmtContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#keyed_element}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitKeyed_element(@NotNull IvannosysGrammarParser.Keyed_elementContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#def_function}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDef_function(@NotNull IvannosysGrammarParser.Def_functionContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#primitive_value}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitPrimitive_value(@NotNull IvannosysGrammarParser.Primitive_valueContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#baseType}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitBaseType(@NotNull IvannosysGrammarParser.BaseTypeContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#def_if_block}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDef_if_block(@NotNull IvannosysGrammarParser.Def_if_blockContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#delete}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDelete(@NotNull IvannosysGrammarParser.DeleteContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#base_stmt}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitBase_stmt(@NotNull IvannosysGrammarParser.Base_stmtContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#def_type}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDef_type(@NotNull IvannosysGrammarParser.Def_typeContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#dec_var_short}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDec_var_short(@NotNull IvannosysGrammarParser.Dec_var_shortContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#fieldDecl}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitFieldDecl(@NotNull IvannosysGrammarParser.FieldDeclContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#expression_seletor}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitExpression_seletor(@NotNull IvannosysGrammarParser.Expression_seletorContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#dec_var}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDec_var(@NotNull IvannosysGrammarParser.Dec_varContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#qualifiedId}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitQualifiedId(@NotNull IvannosysGrammarParser.QualifiedIdContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#statement_list}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitStatement_list(@NotNull IvannosysGrammarParser.Statement_listContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#anon_field}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitAnon_field(@NotNull IvannosysGrammarParser.Anon_fieldContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#newstmt}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitNewstmt(@NotNull IvannosysGrammarParser.NewstmtContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#dec_const}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitDec_const(@NotNull IvannosysGrammarParser.Dec_constContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#operand}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitOperand(@NotNull IvannosysGrammarParser.OperandContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#imports}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitImports(@NotNull IvannosysGrammarParser.ImportsContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#primary_expr}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitPrimary_expr(@NotNull IvannosysGrammarParser.Primary_exprContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#literalType}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitLiteralType(@NotNull IvannosysGrammarParser.LiteralTypeContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#inc_dec}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitInc_dec(@NotNull IvannosysGrammarParser.Inc_decContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#arguments}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitArguments(@NotNull IvannosysGrammarParser.ArgumentsContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#empty_block}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitEmpty_block(@NotNull IvannosysGrammarParser.Empty_blockContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#literal_value}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitLiteral_value(@NotNull IvannosysGrammarParser.Literal_valueContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#typename}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitTypename(@NotNull IvannosysGrammarParser.TypenameContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#receive_type}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitReceive_type(@NotNull IvannosysGrammarParser.Receive_typeContext ctx);
- /**
- * Visit a parse tree produced by {@link IvannosysGrammarParser#literal}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitLiteral(@NotNull IvannosysGrammarParser.LiteralContext ctx);
- }
|