1 // Generated from doc/examples/simple_expression/Expr.g4 by ANTLR 4.9.2
2 module ExprBaseVisitor;
3 
4 import antlr.v4.runtime.tree.AbstractParseTreeVisitor;
5 import ExprParser : ExprParser;
6 import ExprVisitor : ExprVisitor;
7 import std.variant : Variant;
8 
9 /**
10  * This class provides an empty implementation of {@link ExprVisitor},
11  * which can be extended to create a visitor which only needs to handle a subset
12  * of the available methods.
13  *
14  * @param Variant The return type of the visit operation. Use {@link void} for
15  * operations with no return type.
16  */
17 public class ExprBaseVisitor : AbstractParseTreeVisitor, ExprVisitor {
18     /**
19      * {@inheritDoc}
20      *
21      * <p>The default implementation returns the result of calling
22      * {@link #visitChildren} on {@code ctx}.</p>
23      */
24     override public Variant visitProg(ExprParser.ProgContext ctx) { return visitChildren(ctx); }
25     /**
26      * {@inheritDoc}
27      *
28      * <p>The default implementation returns the result of calling
29      * {@link #visitChildren} on {@code ctx}.</p>
30      */
31     override public Variant visitDiv(ExprParser.DivContext ctx) { return visitChildren(ctx); }
32     /**
33      * {@inheritDoc}
34      *
35      * <p>The default implementation returns the result of calling
36      * {@link #visitChildren} on {@code ctx}.</p>
37      */
38     override public Variant visitAdd(ExprParser.AddContext ctx) { return visitChildren(ctx); }
39     /**
40      * {@inheritDoc}
41      *
42      * <p>The default implementation returns the result of calling
43      * {@link #visitChildren} on {@code ctx}.</p>
44      */
45     override public Variant visitSub(ExprParser.SubContext ctx) { return visitChildren(ctx); }
46     /**
47      * {@inheritDoc}
48      *
49      * <p>The default implementation returns the result of calling
50      * {@link #visitChildren} on {@code ctx}.</p>
51      */
52     override public Variant visitMul(ExprParser.MulContext ctx) { return visitChildren(ctx); }
53     /**
54      * {@inheritDoc}
55      *
56      * <p>The default implementation returns the result of calling
57      * {@link #visitChildren} on {@code ctx}.</p>
58      */
59     override public Variant visitBracketExpr(ExprParser.BracketExprContext ctx) { return visitChildren(ctx); }
60     /**
61      * {@inheritDoc}
62      *
63      * <p>The default implementation returns the result of calling
64      * {@link #visitChildren} on {@code ctx}.</p>
65      */
66     override public Variant visitInt(ExprParser.IntContext ctx) { return visitChildren(ctx); }
67 }