-
Notifications
You must be signed in to change notification settings - Fork 0
/
NCalcBaseListener.cs
222 lines (214 loc) · 11 KB
/
NCalcBaseListener.cs
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// ANTLR Version: 4.7.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
// Generated from d:\Users\Admin\Documents\komodo\SSM\ss\app\NCalc2\grammer\NCalc.g by ANTLR 4.7.1
// Unreachable code detected
#pragma warning disable 0162
// The variable '...' is assigned but its value is never used
#pragma warning disable 0219
// Missing XML comment for publicly visible type or member '...'
#pragma warning disable 1591
// Ambiguous reference in cref attribute
#pragma warning disable 419
using System.Globalization;
using NCalc.Domain;
using Antlr4.Runtime.Misc;
using IErrorNode = Antlr4.Runtime.Tree.IErrorNode;
using ITerminalNode = Antlr4.Runtime.Tree.ITerminalNode;
using IToken = Antlr4.Runtime.IToken;
using ParserRuleContext = Antlr4.Runtime.ParserRuleContext;
/// <summary>
/// This class provides an empty implementation of <see cref="INCalcListener"/>,
/// which can be extended to create a listener which only needs to handle a subset
/// of the available methods.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.7.1")]
[System.CLSCompliant(false)]
public partial class NCalcBaseListener : INCalcListener {
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.ncalcExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void EnterNcalcExpression([NotNull] NCalcParser.NcalcExpressionContext context) { }
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.ncalcExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void ExitNcalcExpression([NotNull] NCalcParser.NcalcExpressionContext context) { }
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.logicalExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void EnterLogicalExpression([NotNull] NCalcParser.LogicalExpressionContext context) { }
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.logicalExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void ExitLogicalExpression([NotNull] NCalcParser.LogicalExpressionContext context) { }
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.conditionalExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void EnterConditionalExpression([NotNull] NCalcParser.ConditionalExpressionContext context) { }
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.conditionalExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void ExitConditionalExpression([NotNull] NCalcParser.ConditionalExpressionContext context) { }
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.booleanExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void EnterBooleanExpression([NotNull] NCalcParser.BooleanExpressionContext context) { }
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.booleanExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void ExitBooleanExpression([NotNull] NCalcParser.BooleanExpressionContext context) { }
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.relationalExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void EnterRelationalExpression([NotNull] NCalcParser.RelationalExpressionContext context) { }
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.relationalExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void ExitRelationalExpression([NotNull] NCalcParser.RelationalExpressionContext context) { }
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.shiftExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void EnterShiftExpression([NotNull] NCalcParser.ShiftExpressionContext context) { }
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.shiftExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void ExitShiftExpression([NotNull] NCalcParser.ShiftExpressionContext context) { }
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.additiveExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void EnterAdditiveExpression([NotNull] NCalcParser.AdditiveExpressionContext context) { }
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.additiveExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void ExitAdditiveExpression([NotNull] NCalcParser.AdditiveExpressionContext context) { }
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.multiplicativeExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void EnterMultiplicativeExpression([NotNull] NCalcParser.MultiplicativeExpressionContext context) { }
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.multiplicativeExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void ExitMultiplicativeExpression([NotNull] NCalcParser.MultiplicativeExpressionContext context) { }
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.unaryExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void EnterUnaryExpression([NotNull] NCalcParser.UnaryExpressionContext context) { }
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.unaryExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void ExitUnaryExpression([NotNull] NCalcParser.UnaryExpressionContext context) { }
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.primaryExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void EnterPrimaryExpression([NotNull] NCalcParser.PrimaryExpressionContext context) { }
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.primaryExpression"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void ExitPrimaryExpression([NotNull] NCalcParser.PrimaryExpressionContext context) { }
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.value"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void EnterValue([NotNull] NCalcParser.ValueContext context) { }
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.value"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void ExitValue([NotNull] NCalcParser.ValueContext context) { }
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.identifier"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void EnterIdentifier([NotNull] NCalcParser.IdentifierContext context) { }
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.identifier"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void ExitIdentifier([NotNull] NCalcParser.IdentifierContext context) { }
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.expressionList"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void EnterExpressionList([NotNull] NCalcParser.ExpressionListContext context) { }
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.expressionList"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void ExitExpressionList([NotNull] NCalcParser.ExpressionListContext context) { }
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.arguments"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void EnterArguments([NotNull] NCalcParser.ArgumentsContext context) { }
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.arguments"/>.
/// <para>The default implementation does nothing.</para>
/// </summary>
/// <param name="context">The parse tree.</param>
public virtual void ExitArguments([NotNull] NCalcParser.ArgumentsContext context) { }
/// <inheritdoc/>
/// <remarks>The default implementation does nothing.</remarks>
public virtual void EnterEveryRule([NotNull] ParserRuleContext context) { }
/// <inheritdoc/>
/// <remarks>The default implementation does nothing.</remarks>
public virtual void ExitEveryRule([NotNull] ParserRuleContext context) { }
/// <inheritdoc/>
/// <remarks>The default implementation does nothing.</remarks>
public virtual void VisitTerminal([NotNull] ITerminalNode node) { }
/// <inheritdoc/>
/// <remarks>The default implementation does nothing.</remarks>
public virtual void VisitErrorNode([NotNull] IErrorNode node) { }
}