1 // Generated from doc/examples/simple_expression/Expr.g4 by ANTLR 4.9.2 2 module ExprListener; 3 4 import antlr.v4.runtime.tree.ParseTreeListener; 5 import ExprParser : ExprParser; 6 7 /** 8 * This interface defines a complete listener for a parse tree produced by 9 * {@link ExprParser}. 10 */ 11 public interface ExprListener : ParseTreeListener { 12 /** 13 * Enter a parse tree produced by {@link ExprParser#prog}. 14 * @param ctx the parse tree 15 */ 16 void enterProg(ExprParser.ProgContext ctx); 17 /** 18 * Exit a parse tree produced by {@link ExprParser#prog}. 19 * @param ctx the parse tree 20 */ 21 void exitProg(ExprParser.ProgContext ctx); 22 /** 23 * Enter a parse tree produced by the {@code Div} 24 * labeled alternative in {@link ExprParser#expr}. 25 * @param ctx the parse tree 26 */ 27 void enterDiv(ExprParser.DivContext ctx); 28 /** 29 * Exit a parse tree produced by the {@code Div} 30 * labeled alternative in {@link ExprParser#expr}. 31 * @param ctx the parse tree 32 */ 33 void exitDiv(ExprParser.DivContext ctx); 34 /** 35 * Enter a parse tree produced by the {@code Add} 36 * labeled alternative in {@link ExprParser#expr}. 37 * @param ctx the parse tree 38 */ 39 void enterAdd(ExprParser.AddContext ctx); 40 /** 41 * Exit a parse tree produced by the {@code Add} 42 * labeled alternative in {@link ExprParser#expr}. 43 * @param ctx the parse tree 44 */ 45 void exitAdd(ExprParser.AddContext ctx); 46 /** 47 * Enter a parse tree produced by the {@code Sub} 48 * labeled alternative in {@link ExprParser#expr}. 49 * @param ctx the parse tree 50 */ 51 void enterSub(ExprParser.SubContext ctx); 52 /** 53 * Exit a parse tree produced by the {@code Sub} 54 * labeled alternative in {@link ExprParser#expr}. 55 * @param ctx the parse tree 56 */ 57 void exitSub(ExprParser.SubContext ctx); 58 /** 59 * Enter a parse tree produced by the {@code Mul} 60 * labeled alternative in {@link ExprParser#expr}. 61 * @param ctx the parse tree 62 */ 63 void enterMul(ExprParser.MulContext ctx); 64 /** 65 * Exit a parse tree produced by the {@code Mul} 66 * labeled alternative in {@link ExprParser#expr}. 67 * @param ctx the parse tree 68 */ 69 void exitMul(ExprParser.MulContext ctx); 70 /** 71 * Enter a parse tree produced by the {@code BracketExpr} 72 * labeled alternative in {@link ExprParser#expr}. 73 * @param ctx the parse tree 74 */ 75 void enterBracketExpr(ExprParser.BracketExprContext ctx); 76 /** 77 * Exit a parse tree produced by the {@code BracketExpr} 78 * labeled alternative in {@link ExprParser#expr}. 79 * @param ctx the parse tree 80 */ 81 void exitBracketExpr(ExprParser.BracketExprContext ctx); 82 /** 83 * Enter a parse tree produced by the {@code Int} 84 * labeled alternative in {@link ExprParser#expr}. 85 * @param ctx the parse tree 86 */ 87 void enterInt(ExprParser.IntContext ctx); 88 /** 89 * Exit a parse tree produced by the {@code Int} 90 * labeled alternative in {@link ExprParser#expr}. 91 * @param ctx the parse tree 92 */ 93 void exitInt(ExprParser.IntContext ctx); 94 }