-
Notifications
You must be signed in to change notification settings - Fork 0
/
NCalcListener.cs
177 lines (171 loc) · 8.06 KB
/
NCalcListener.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
//------------------------------------------------------------------------------
// <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 IParseTreeListener = Antlr4.Runtime.Tree.IParseTreeListener;
using IToken = Antlr4.Runtime.IToken;
/// <summary>
/// This interface defines a complete listener for a parse tree produced by
/// <see cref="NCalcParser"/>.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.7.1")]
[System.CLSCompliant(false)]
public interface INCalcListener : IParseTreeListener {
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.ncalcExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void EnterNcalcExpression([NotNull] NCalcParser.NcalcExpressionContext context);
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.ncalcExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void ExitNcalcExpression([NotNull] NCalcParser.NcalcExpressionContext context);
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.logicalExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void EnterLogicalExpression([NotNull] NCalcParser.LogicalExpressionContext context);
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.logicalExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void ExitLogicalExpression([NotNull] NCalcParser.LogicalExpressionContext context);
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.conditionalExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void EnterConditionalExpression([NotNull] NCalcParser.ConditionalExpressionContext context);
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.conditionalExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void ExitConditionalExpression([NotNull] NCalcParser.ConditionalExpressionContext context);
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.booleanExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void EnterBooleanExpression([NotNull] NCalcParser.BooleanExpressionContext context);
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.booleanExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void ExitBooleanExpression([NotNull] NCalcParser.BooleanExpressionContext context);
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.relationalExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void EnterRelationalExpression([NotNull] NCalcParser.RelationalExpressionContext context);
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.relationalExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void ExitRelationalExpression([NotNull] NCalcParser.RelationalExpressionContext context);
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.shiftExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void EnterShiftExpression([NotNull] NCalcParser.ShiftExpressionContext context);
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.shiftExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void ExitShiftExpression([NotNull] NCalcParser.ShiftExpressionContext context);
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.additiveExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void EnterAdditiveExpression([NotNull] NCalcParser.AdditiveExpressionContext context);
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.additiveExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void ExitAdditiveExpression([NotNull] NCalcParser.AdditiveExpressionContext context);
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.multiplicativeExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void EnterMultiplicativeExpression([NotNull] NCalcParser.MultiplicativeExpressionContext context);
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.multiplicativeExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void ExitMultiplicativeExpression([NotNull] NCalcParser.MultiplicativeExpressionContext context);
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.unaryExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void EnterUnaryExpression([NotNull] NCalcParser.UnaryExpressionContext context);
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.unaryExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void ExitUnaryExpression([NotNull] NCalcParser.UnaryExpressionContext context);
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.primaryExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void EnterPrimaryExpression([NotNull] NCalcParser.PrimaryExpressionContext context);
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.primaryExpression"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void ExitPrimaryExpression([NotNull] NCalcParser.PrimaryExpressionContext context);
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.value"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void EnterValue([NotNull] NCalcParser.ValueContext context);
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.value"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void ExitValue([NotNull] NCalcParser.ValueContext context);
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.identifier"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void EnterIdentifier([NotNull] NCalcParser.IdentifierContext context);
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.identifier"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void ExitIdentifier([NotNull] NCalcParser.IdentifierContext context);
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.expressionList"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void EnterExpressionList([NotNull] NCalcParser.ExpressionListContext context);
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.expressionList"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void ExitExpressionList([NotNull] NCalcParser.ExpressionListContext context);
/// <summary>
/// Enter a parse tree produced by <see cref="NCalcParser.arguments"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void EnterArguments([NotNull] NCalcParser.ArgumentsContext context);
/// <summary>
/// Exit a parse tree produced by <see cref="NCalcParser.arguments"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
void ExitArguments([NotNull] NCalcParser.ArgumentsContext context);
}