IvannosysGrammarVisitor.java 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  1. // Generated from C:\Users\EUGENIO CARVALHO\Desktop\projects\Ivannosys\src\grammar\IvannosysGrammar.g4 by ANTLR 4.2.2
  2. package grammar;
  3. import java.util.HashMap;
  4. import java.util.Stack;
  5. import org.antlr.v4.runtime.misc.NotNull;
  6. import org.antlr.v4.runtime.tree.ParseTreeVisitor;
  7. /**
  8. * This interface defines a complete generic visitor for a parse tree produced
  9. * by {@link IvannosysGrammarParser}.
  10. *
  11. * @param <T> The return type of the visit operation. Use {@link Void} for
  12. * operations with no return type.
  13. */
  14. public interface IvannosysGrammarVisitor<T> extends ParseTreeVisitor<T> {
  15. /**
  16. * Visit a parse tree produced by {@link IvannosysGrammarParser#expression}.
  17. * @param ctx the parse tree
  18. * @return the visitor result
  19. */
  20. T visitExpression(@NotNull IvannosysGrammarParser.ExpressionContext ctx);
  21. /**
  22. * Visit a parse tree produced by {@link IvannosysGrammarParser#expression_list}.
  23. * @param ctx the parse tree
  24. * @return the visitor result
  25. */
  26. T visitExpression_list(@NotNull IvannosysGrammarParser.Expression_listContext ctx);
  27. /**
  28. * Visit a parse tree produced by {@link IvannosysGrammarParser#func_literal}.
  29. * @param ctx the parse tree
  30. * @return the visitor result
  31. */
  32. T visitFunc_literal(@NotNull IvannosysGrammarParser.Func_literalContext ctx);
  33. /**
  34. * Visit a parse tree produced by {@link IvannosysGrammarParser#func_spec}.
  35. * @param ctx the parse tree
  36. * @return the visitor result
  37. */
  38. T visitFunc_spec(@NotNull IvannosysGrammarParser.Func_specContext ctx);
  39. /**
  40. * Visit a parse tree produced by {@link IvannosysGrammarParser#def_block}.
  41. * @param ctx the parse tree
  42. * @return the visitor result
  43. */
  44. T visitDef_block(@NotNull IvannosysGrammarParser.Def_blockContext ctx);
  45. /**
  46. * Visit a parse tree produced by {@link IvannosysGrammarParser#arrayType}.
  47. * @param ctx the parse tree
  48. * @return the visitor result
  49. */
  50. T visitArrayType(@NotNull IvannosysGrammarParser.ArrayTypeContext ctx);
  51. /**
  52. * Visit a parse tree produced by {@link IvannosysGrammarParser#def_switch}.
  53. * @param ctx the parse tree
  54. * @return the visitor result
  55. */
  56. T visitDef_switch(@NotNull IvannosysGrammarParser.Def_switchContext ctx);
  57. /**
  58. * Visit a parse tree produced by {@link IvannosysGrammarParser#test}.
  59. * @param ctx the parse tree
  60. * @return the visitor result
  61. */
  62. T visitTest(@NotNull IvannosysGrammarParser.TestContext ctx);
  63. /**
  64. * Visit a parse tree produced by {@link IvannosysGrammarParser#assign_modify}.
  65. * @param ctx the parse tree
  66. * @return the visitor result
  67. */
  68. T visitAssign_modify(@NotNull IvannosysGrammarParser.Assign_modifyContext ctx);
  69. /**
  70. * Visit a parse tree produced by {@link IvannosysGrammarParser#expression_list_typed}.
  71. * @param ctx the parse tree
  72. * @return the visitor result
  73. */
  74. T visitExpression_list_typed(@NotNull IvannosysGrammarParser.Expression_list_typedContext ctx);
  75. /**
  76. * Visit a parse tree produced by {@link IvannosysGrammarParser#dec_var_part}.
  77. * @param ctx the parse tree
  78. * @return the visitor result
  79. */
  80. T visitDec_var_part(@NotNull IvannosysGrammarParser.Dec_var_partContext ctx);
  81. /**
  82. * Visit a parse tree produced by {@link IvannosysGrammarParser#type}.
  83. * @param ctx the parse tree
  84. * @return the visitor result
  85. */
  86. T visitType(@NotNull IvannosysGrammarParser.TypeContext ctx);
  87. /**
  88. * Visit a parse tree produced by {@link IvannosysGrammarParser#catch_exception}.
  89. * @param ctx the parse tree
  90. * @return the visitor result
  91. */
  92. T visitCatch_exception(@NotNull IvannosysGrammarParser.Catch_exceptionContext ctx);
  93. /**
  94. * Visit a parse tree produced by {@link IvannosysGrammarParser#dec_const_part}.
  95. * @param ctx the parse tree
  96. * @return the visitor result
  97. */
  98. T visitDec_const_part(@NotNull IvannosysGrammarParser.Dec_const_partContext ctx);
  99. /**
  100. * Visit a parse tree produced by {@link IvannosysGrammarParser#unary_expr}.
  101. * @param ctx the parse tree
  102. * @return the visitor result
  103. */
  104. T visitUnary_expr(@NotNull IvannosysGrammarParser.Unary_exprContext ctx);
  105. /**
  106. * Visit a parse tree produced by {@link IvannosysGrammarParser#def_for}.
  107. * @param ctx the parse tree
  108. * @return the visitor result
  109. */
  110. T visitDef_for(@NotNull IvannosysGrammarParser.Def_forContext ctx);
  111. /**
  112. * Visit a parse tree produced by {@link IvannosysGrammarParser#fallthroughStmt}.
  113. * @param ctx the parse tree
  114. * @return the visitor result
  115. */
  116. T visitFallthroughStmt(@NotNull IvannosysGrammarParser.FallthroughStmtContext ctx);
  117. /**
  118. * Visit a parse tree produced by {@link IvannosysGrammarParser#import_part}.
  119. * @param ctx the parse tree
  120. * @return the visitor result
  121. */
  122. T visitImport_part(@NotNull IvannosysGrammarParser.Import_partContext ctx);
  123. /**
  124. * Visit a parse tree produced by {@link IvannosysGrammarParser#programPart}.
  125. * @param ctx the parse tree
  126. * @return the visitor result
  127. */
  128. T visitProgramPart(@NotNull IvannosysGrammarParser.ProgramPartContext ctx);
  129. /**
  130. * Visit a parse tree produced by {@link IvannosysGrammarParser#for_each}.
  131. * @param ctx the parse tree
  132. * @return the visitor result
  133. */
  134. T visitFor_each(@NotNull IvannosysGrammarParser.For_eachContext ctx);
  135. /**
  136. * Visit a parse tree produced by {@link IvannosysGrammarParser#def_interface}.
  137. * @param ctx the parse tree
  138. * @return the visitor result
  139. */
  140. T visitDef_interface(@NotNull IvannosysGrammarParser.Def_interfaceContext ctx);
  141. /**
  142. * Visit a parse tree produced by {@link IvannosysGrammarParser#build_stmt}.
  143. * @param ctx the parse tree
  144. * @return the visitor result
  145. */
  146. T visitBuild_stmt(@NotNull IvannosysGrammarParser.Build_stmtContext ctx);
  147. /**
  148. * Visit a parse tree produced by {@link IvannosysGrammarParser#mapType}.
  149. * @param ctx the parse tree
  150. * @return the visitor result
  151. */
  152. T visitMapType(@NotNull IvannosysGrammarParser.MapTypeContext ctx);
  153. /**
  154. * Visit a parse tree produced by {@link IvannosysGrammarParser#try_catch}.
  155. * @param ctx the parse tree
  156. * @return the visitor result
  157. */
  158. T visitTry_catch(@NotNull IvannosysGrammarParser.Try_catchContext ctx);
  159. /**
  160. * Visit a parse tree produced by {@link IvannosysGrammarParser#increment}.
  161. * @param ctx the parse tree
  162. * @return the visitor result
  163. */
  164. T visitIncrement(@NotNull IvannosysGrammarParser.IncrementContext ctx);
  165. /**
  166. * Visit a parse tree produced by {@link IvannosysGrammarParser#index}.
  167. * @param ctx the parse tree
  168. * @return the visitor result
  169. */
  170. T visitIndex(@NotNull IvannosysGrammarParser.IndexContext ctx);
  171. /**
  172. * Visit a parse tree produced by {@link IvannosysGrammarParser#buildvalue}.
  173. * @param ctx the parse tree
  174. * @return the visitor result
  175. */
  176. T visitBuildvalue(@NotNull IvannosysGrammarParser.BuildvalueContext ctx);
  177. /**
  178. * Visit a parse tree produced by {@link IvannosysGrammarParser#buildtags}.
  179. * @param ctx the parse tree
  180. * @return the visitor result
  181. */
  182. T visitBuildtags(@NotNull IvannosysGrammarParser.BuildtagsContext ctx);
  183. /**
  184. * Visit a parse tree produced by {@link IvannosysGrammarParser#def_case}.
  185. * @param ctx the parse tree
  186. * @return the visitor result
  187. */
  188. T visitDef_case(@NotNull IvannosysGrammarParser.Def_caseContext ctx);
  189. /**
  190. * Visit a parse tree produced by {@link IvannosysGrammarParser#callExpr}.
  191. * @param ctx the parse tree
  192. * @return the visitor result
  193. */
  194. T visitCallExpr(@NotNull IvannosysGrammarParser.CallExprContext ctx);
  195. /**
  196. * Visit a parse tree produced by {@link IvannosysGrammarParser#init}.
  197. * @param ctx the parse tree
  198. * @return the visitor result
  199. */
  200. T visitInit(@NotNull IvannosysGrammarParser.InitContext ctx);
  201. /**
  202. * Visit a parse tree produced by {@link IvannosysGrammarParser#for_clause}.
  203. * @param ctx the parse tree
  204. * @return the visitor result
  205. */
  206. T visitFor_clause(@NotNull IvannosysGrammarParser.For_clauseContext ctx);
  207. /**
  208. * Visit a parse tree produced by {@link IvannosysGrammarParser#throwStmt}.
  209. * @param ctx the parse tree
  210. * @return the visitor result
  211. */
  212. T visitThrowStmt(@NotNull IvannosysGrammarParser.ThrowStmtContext ctx);
  213. /**
  214. * Visit a parse tree produced by {@link IvannosysGrammarParser#composite}.
  215. * @param ctx the parse tree
  216. * @return the visitor result
  217. */
  218. T visitComposite(@NotNull IvannosysGrammarParser.CompositeContext ctx);
  219. /**
  220. * Visit a parse tree produced by {@link IvannosysGrammarParser#id_list}.
  221. * @param ctx the parse tree
  222. * @return the visitor result
  223. */
  224. T visitId_list(@NotNull IvannosysGrammarParser.Id_listContext ctx);
  225. /**
  226. * Visit a parse tree produced by {@link IvannosysGrammarParser#statement}.
  227. * @param ctx the parse tree
  228. * @return the visitor result
  229. */
  230. T visitStatement(@NotNull IvannosysGrammarParser.StatementContext ctx);
  231. /**
  232. * Visit a parse tree produced by {@link IvannosysGrammarParser#initialization}.
  233. * @param ctx the parse tree
  234. * @return the visitor result
  235. */
  236. T visitInitialization(@NotNull IvannosysGrammarParser.InitializationContext ctx);
  237. /**
  238. * Visit a parse tree produced by {@link IvannosysGrammarParser#flux_control}.
  239. * @param ctx the parse tree
  240. * @return the visitor result
  241. */
  242. T visitFlux_control(@NotNull IvannosysGrammarParser.Flux_controlContext ctx);
  243. /**
  244. * Visit a parse tree produced by {@link IvannosysGrammarParser#return_stmt}.
  245. * @param ctx the parse tree
  246. * @return the visitor result
  247. */
  248. T visitReturn_stmt(@NotNull IvannosysGrammarParser.Return_stmtContext ctx);
  249. /**
  250. * Visit a parse tree produced by {@link IvannosysGrammarParser#return_dec}.
  251. * @param ctx the parse tree
  252. * @return the visitor result
  253. */
  254. T visitReturn_dec(@NotNull IvannosysGrammarParser.Return_decContext ctx);
  255. /**
  256. * Visit a parse tree produced by {@link IvannosysGrammarParser#def_assign_op}.
  257. * @param ctx the parse tree
  258. * @return the visitor result
  259. */
  260. T visitDef_assign_op(@NotNull IvannosysGrammarParser.Def_assign_opContext ctx);
  261. /**
  262. * Visit a parse tree produced by {@link IvannosysGrammarParser#indexedType}.
  263. * @param ctx the parse tree
  264. * @return the visitor result
  265. */
  266. T visitIndexedType(@NotNull IvannosysGrammarParser.IndexedTypeContext ctx);
  267. /**
  268. * Visit a parse tree produced by {@link IvannosysGrammarParser#def_if}.
  269. * @param ctx the parse tree
  270. * @return the visitor result
  271. */
  272. T visitDef_if(@NotNull IvannosysGrammarParser.Def_ifContext ctx);
  273. /**
  274. * Visit a parse tree produced by {@link IvannosysGrammarParser#finally_try}.
  275. * @param ctx the parse tree
  276. * @return the visitor result
  277. */
  278. T visitFinally_try(@NotNull IvannosysGrammarParser.Finally_tryContext ctx);
  279. /**
  280. * Visit a parse tree produced by {@link IvannosysGrammarParser#range}.
  281. * @param ctx the parse tree
  282. * @return the visitor result
  283. */
  284. T visitRange(@NotNull IvannosysGrammarParser.RangeContext ctx);
  285. /**
  286. * Visit a parse tree produced by {@link IvannosysGrammarParser#element_list}.
  287. * @param ctx the parse tree
  288. * @return the visitor result
  289. */
  290. T visitElement_list(@NotNull IvannosysGrammarParser.Element_listContext ctx);
  291. /**
  292. * Visit a parse tree produced by {@link IvannosysGrammarParser#structType}.
  293. * @param ctx the parse tree
  294. * @return the visitor result
  295. */
  296. T visitStructType(@NotNull IvannosysGrammarParser.StructTypeContext ctx);
  297. /**
  298. * Visit a parse tree produced by {@link IvannosysGrammarParser#label_stmt}.
  299. * @param ctx the parse tree
  300. * @return the visitor result
  301. */
  302. T visitLabel_stmt(@NotNull IvannosysGrammarParser.Label_stmtContext ctx);
  303. /**
  304. * Visit a parse tree produced by {@link IvannosysGrammarParser#keyed_element}.
  305. * @param ctx the parse tree
  306. * @return the visitor result
  307. */
  308. T visitKeyed_element(@NotNull IvannosysGrammarParser.Keyed_elementContext ctx);
  309. /**
  310. * Visit a parse tree produced by {@link IvannosysGrammarParser#def_function}.
  311. * @param ctx the parse tree
  312. * @return the visitor result
  313. */
  314. T visitDef_function(@NotNull IvannosysGrammarParser.Def_functionContext ctx);
  315. /**
  316. * Visit a parse tree produced by {@link IvannosysGrammarParser#primitive_value}.
  317. * @param ctx the parse tree
  318. * @return the visitor result
  319. */
  320. T visitPrimitive_value(@NotNull IvannosysGrammarParser.Primitive_valueContext ctx);
  321. /**
  322. * Visit a parse tree produced by {@link IvannosysGrammarParser#baseType}.
  323. * @param ctx the parse tree
  324. * @return the visitor result
  325. */
  326. T visitBaseType(@NotNull IvannosysGrammarParser.BaseTypeContext ctx);
  327. /**
  328. * Visit a parse tree produced by {@link IvannosysGrammarParser#def_if_block}.
  329. * @param ctx the parse tree
  330. * @return the visitor result
  331. */
  332. T visitDef_if_block(@NotNull IvannosysGrammarParser.Def_if_blockContext ctx);
  333. /**
  334. * Visit a parse tree produced by {@link IvannosysGrammarParser#delete}.
  335. * @param ctx the parse tree
  336. * @return the visitor result
  337. */
  338. T visitDelete(@NotNull IvannosysGrammarParser.DeleteContext ctx);
  339. /**
  340. * Visit a parse tree produced by {@link IvannosysGrammarParser#base_stmt}.
  341. * @param ctx the parse tree
  342. * @return the visitor result
  343. */
  344. T visitBase_stmt(@NotNull IvannosysGrammarParser.Base_stmtContext ctx);
  345. /**
  346. * Visit a parse tree produced by {@link IvannosysGrammarParser#def_type}.
  347. * @param ctx the parse tree
  348. * @return the visitor result
  349. */
  350. T visitDef_type(@NotNull IvannosysGrammarParser.Def_typeContext ctx);
  351. /**
  352. * Visit a parse tree produced by {@link IvannosysGrammarParser#dec_var_short}.
  353. * @param ctx the parse tree
  354. * @return the visitor result
  355. */
  356. T visitDec_var_short(@NotNull IvannosysGrammarParser.Dec_var_shortContext ctx);
  357. /**
  358. * Visit a parse tree produced by {@link IvannosysGrammarParser#fieldDecl}.
  359. * @param ctx the parse tree
  360. * @return the visitor result
  361. */
  362. T visitFieldDecl(@NotNull IvannosysGrammarParser.FieldDeclContext ctx);
  363. /**
  364. * Visit a parse tree produced by {@link IvannosysGrammarParser#expression_seletor}.
  365. * @param ctx the parse tree
  366. * @return the visitor result
  367. */
  368. T visitExpression_seletor(@NotNull IvannosysGrammarParser.Expression_seletorContext ctx);
  369. /**
  370. * Visit a parse tree produced by {@link IvannosysGrammarParser#dec_var}.
  371. * @param ctx the parse tree
  372. * @return the visitor result
  373. */
  374. T visitDec_var(@NotNull IvannosysGrammarParser.Dec_varContext ctx);
  375. /**
  376. * Visit a parse tree produced by {@link IvannosysGrammarParser#qualifiedId}.
  377. * @param ctx the parse tree
  378. * @return the visitor result
  379. */
  380. T visitQualifiedId(@NotNull IvannosysGrammarParser.QualifiedIdContext ctx);
  381. /**
  382. * Visit a parse tree produced by {@link IvannosysGrammarParser#statement_list}.
  383. * @param ctx the parse tree
  384. * @return the visitor result
  385. */
  386. T visitStatement_list(@NotNull IvannosysGrammarParser.Statement_listContext ctx);
  387. /**
  388. * Visit a parse tree produced by {@link IvannosysGrammarParser#anon_field}.
  389. * @param ctx the parse tree
  390. * @return the visitor result
  391. */
  392. T visitAnon_field(@NotNull IvannosysGrammarParser.Anon_fieldContext ctx);
  393. /**
  394. * Visit a parse tree produced by {@link IvannosysGrammarParser#newstmt}.
  395. * @param ctx the parse tree
  396. * @return the visitor result
  397. */
  398. T visitNewstmt(@NotNull IvannosysGrammarParser.NewstmtContext ctx);
  399. /**
  400. * Visit a parse tree produced by {@link IvannosysGrammarParser#dec_const}.
  401. * @param ctx the parse tree
  402. * @return the visitor result
  403. */
  404. T visitDec_const(@NotNull IvannosysGrammarParser.Dec_constContext ctx);
  405. /**
  406. * Visit a parse tree produced by {@link IvannosysGrammarParser#operand}.
  407. * @param ctx the parse tree
  408. * @return the visitor result
  409. */
  410. T visitOperand(@NotNull IvannosysGrammarParser.OperandContext ctx);
  411. /**
  412. * Visit a parse tree produced by {@link IvannosysGrammarParser#imports}.
  413. * @param ctx the parse tree
  414. * @return the visitor result
  415. */
  416. T visitImports(@NotNull IvannosysGrammarParser.ImportsContext ctx);
  417. /**
  418. * Visit a parse tree produced by {@link IvannosysGrammarParser#primary_expr}.
  419. * @param ctx the parse tree
  420. * @return the visitor result
  421. */
  422. T visitPrimary_expr(@NotNull IvannosysGrammarParser.Primary_exprContext ctx);
  423. /**
  424. * Visit a parse tree produced by {@link IvannosysGrammarParser#literalType}.
  425. * @param ctx the parse tree
  426. * @return the visitor result
  427. */
  428. T visitLiteralType(@NotNull IvannosysGrammarParser.LiteralTypeContext ctx);
  429. /**
  430. * Visit a parse tree produced by {@link IvannosysGrammarParser#inc_dec}.
  431. * @param ctx the parse tree
  432. * @return the visitor result
  433. */
  434. T visitInc_dec(@NotNull IvannosysGrammarParser.Inc_decContext ctx);
  435. /**
  436. * Visit a parse tree produced by {@link IvannosysGrammarParser#arguments}.
  437. * @param ctx the parse tree
  438. * @return the visitor result
  439. */
  440. T visitArguments(@NotNull IvannosysGrammarParser.ArgumentsContext ctx);
  441. /**
  442. * Visit a parse tree produced by {@link IvannosysGrammarParser#empty_block}.
  443. * @param ctx the parse tree
  444. * @return the visitor result
  445. */
  446. T visitEmpty_block(@NotNull IvannosysGrammarParser.Empty_blockContext ctx);
  447. /**
  448. * Visit a parse tree produced by {@link IvannosysGrammarParser#literal_value}.
  449. * @param ctx the parse tree
  450. * @return the visitor result
  451. */
  452. T visitLiteral_value(@NotNull IvannosysGrammarParser.Literal_valueContext ctx);
  453. /**
  454. * Visit a parse tree produced by {@link IvannosysGrammarParser#typename}.
  455. * @param ctx the parse tree
  456. * @return the visitor result
  457. */
  458. T visitTypename(@NotNull IvannosysGrammarParser.TypenameContext ctx);
  459. /**
  460. * Visit a parse tree produced by {@link IvannosysGrammarParser#receive_type}.
  461. * @param ctx the parse tree
  462. * @return the visitor result
  463. */
  464. T visitReceive_type(@NotNull IvannosysGrammarParser.Receive_typeContext ctx);
  465. /**
  466. * Visit a parse tree produced by {@link IvannosysGrammarParser#literal}.
  467. * @param ctx the parse tree
  468. * @return the visitor result
  469. */
  470. T visitLiteral(@NotNull IvannosysGrammarParser.LiteralContext ctx);
  471. }