/
muparser_base_listener.go
135 lines (90 loc) · 6.14 KB
/
muparser_base_listener.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// Code generated from MuParser.g4 by ANTLR 4.7.2. DO NOT EDIT.
package mu // MuParser
import "github.com/antlr/antlr4/runtime/Go/antlr"
// BaseMuParserListener is a complete listener for a parse tree produced by MuParserParser.
type BaseMuParserListener struct{}
var _ MuParserListener = &BaseMuParserListener{}
// VisitTerminal is called when a terminal node is visited.
func (s *BaseMuParserListener) VisitTerminal(node antlr.TerminalNode) {}
// VisitErrorNode is called when an error node is visited.
func (s *BaseMuParserListener) VisitErrorNode(node antlr.ErrorNode) {}
// EnterEveryRule is called when any rule is entered.
func (s *BaseMuParserListener) EnterEveryRule(ctx antlr.ParserRuleContext) {}
// ExitEveryRule is called when any rule is exited.
func (s *BaseMuParserListener) ExitEveryRule(ctx antlr.ParserRuleContext) {}
// EnterProgExpr is called when production progExpr is entered.
func (s *BaseMuParserListener) EnterProgExpr(ctx *ProgExprContext) {}
// ExitProgExpr is called when production progExpr is exited.
func (s *BaseMuParserListener) ExitProgExpr(ctx *ProgExprContext) {}
// EnterFunctionMultiExpr is called when production functionMultiExpr is entered.
func (s *BaseMuParserListener) EnterFunctionMultiExpr(ctx *FunctionMultiExprContext) {}
// ExitFunctionMultiExpr is called when production functionMultiExpr is exited.
func (s *BaseMuParserListener) ExitFunctionMultiExpr(ctx *FunctionMultiExprContext) {}
// EnterAddSubExpr is called when production addSubExpr is entered.
func (s *BaseMuParserListener) EnterAddSubExpr(ctx *AddSubExprContext) {}
// ExitAddSubExpr is called when production addSubExpr is exited.
func (s *BaseMuParserListener) ExitAddSubExpr(ctx *AddSubExprContext) {}
// EnterAtomExpr is called when production atomExpr is entered.
func (s *BaseMuParserListener) EnterAtomExpr(ctx *AtomExprContext) {}
// ExitAtomExpr is called when production atomExpr is exited.
func (s *BaseMuParserListener) ExitAtomExpr(ctx *AtomExprContext) {}
// EnterOrExpr is called when production orExpr is entered.
func (s *BaseMuParserListener) EnterOrExpr(ctx *OrExprContext) {}
// ExitOrExpr is called when production orExpr is exited.
func (s *BaseMuParserListener) ExitOrExpr(ctx *OrExprContext) {}
// EnterRelationalExpr is called when production relationalExpr is entered.
func (s *BaseMuParserListener) EnterRelationalExpr(ctx *RelationalExprContext) {}
// ExitRelationalExpr is called when production relationalExpr is exited.
func (s *BaseMuParserListener) ExitRelationalExpr(ctx *RelationalExprContext) {}
// EnterFunctionExpr is called when production functionExpr is entered.
func (s *BaseMuParserListener) EnterFunctionExpr(ctx *FunctionExprContext) {}
// ExitFunctionExpr is called when production functionExpr is exited.
func (s *BaseMuParserListener) ExitFunctionExpr(ctx *FunctionExprContext) {}
// EnterUnaryMinusExpr is called when production unaryMinusExpr is entered.
func (s *BaseMuParserListener) EnterUnaryMinusExpr(ctx *UnaryMinusExprContext) {}
// ExitUnaryMinusExpr is called when production unaryMinusExpr is exited.
func (s *BaseMuParserListener) ExitUnaryMinusExpr(ctx *UnaryMinusExprContext) {}
// EnterPowExpr is called when production powExpr is entered.
func (s *BaseMuParserListener) EnterPowExpr(ctx *PowExprContext) {}
// ExitPowExpr is called when production powExpr is exited.
func (s *BaseMuParserListener) ExitPowExpr(ctx *PowExprContext) {}
// EnterAssignExpr is called when production assignExpr is entered.
func (s *BaseMuParserListener) EnterAssignExpr(ctx *AssignExprContext) {}
// ExitAssignExpr is called when production assignExpr is exited.
func (s *BaseMuParserListener) ExitAssignExpr(ctx *AssignExprContext) {}
// EnterMulDivExpr is called when production mulDivExpr is entered.
func (s *BaseMuParserListener) EnterMulDivExpr(ctx *MulDivExprContext) {}
// ExitMulDivExpr is called when production mulDivExpr is exited.
func (s *BaseMuParserListener) ExitMulDivExpr(ctx *MulDivExprContext) {}
// EnterEqualityExpr is called when production equalityExpr is entered.
func (s *BaseMuParserListener) EnterEqualityExpr(ctx *EqualityExprContext) {}
// ExitEqualityExpr is called when production equalityExpr is exited.
func (s *BaseMuParserListener) ExitEqualityExpr(ctx *EqualityExprContext) {}
// EnterAndExpr is called when production andExpr is entered.
func (s *BaseMuParserListener) EnterAndExpr(ctx *AndExprContext) {}
// ExitAndExpr is called when production andExpr is exited.
func (s *BaseMuParserListener) ExitAndExpr(ctx *AndExprContext) {}
// EnterIteExpr is called when production iteExpr is entered.
func (s *BaseMuParserListener) EnterIteExpr(ctx *IteExprContext) {}
// ExitIteExpr is called when production iteExpr is exited.
func (s *BaseMuParserListener) ExitIteExpr(ctx *IteExprContext) {}
// EnterParExpr is called when production parExpr is entered.
func (s *BaseMuParserListener) EnterParExpr(ctx *ParExprContext) {}
// ExitParExpr is called when production parExpr is exited.
func (s *BaseMuParserListener) ExitParExpr(ctx *ParExprContext) {}
// EnterNumberAtom is called when production numberAtom is entered.
func (s *BaseMuParserListener) EnterNumberAtom(ctx *NumberAtomContext) {}
// ExitNumberAtom is called when production numberAtom is exited.
func (s *BaseMuParserListener) ExitNumberAtom(ctx *NumberAtomContext) {}
// EnterBooleanAtom is called when production booleanAtom is entered.
func (s *BaseMuParserListener) EnterBooleanAtom(ctx *BooleanAtomContext) {}
// ExitBooleanAtom is called when production booleanAtom is exited.
func (s *BaseMuParserListener) ExitBooleanAtom(ctx *BooleanAtomContext) {}
// EnterPredefinedConstantAtom is called when production predefinedConstantAtom is entered.
func (s *BaseMuParserListener) EnterPredefinedConstantAtom(ctx *PredefinedConstantAtomContext) {}
// ExitPredefinedConstantAtom is called when production predefinedConstantAtom is exited.
func (s *BaseMuParserListener) ExitPredefinedConstantAtom(ctx *PredefinedConstantAtomContext) {}
// EnterIdAtom is called when production idAtom is entered.
func (s *BaseMuParserListener) EnterIdAtom(ctx *IdAtomContext) {}
// ExitIdAtom is called when production idAtom is exited.
func (s *BaseMuParserListener) ExitIdAtom(ctx *IdAtomContext) {}