-
Notifications
You must be signed in to change notification settings - Fork 13
/
slq_listener.go
177 lines (119 loc) · 5.77 KB
/
slq_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
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
// Code generated from SLQ.g4 by ANTLR 4.13.0. DO NOT EDIT.
package slq // SLQ
import "github.com/antlr4-go/antlr/v4"
// SLQListener is a complete listener for a parse tree produced by SLQParser.
type SLQListener interface {
antlr.ParseTreeListener
// EnterStmtList is called when entering the stmtList production.
EnterStmtList(c *StmtListContext)
// EnterQuery is called when entering the query production.
EnterQuery(c *QueryContext)
// EnterSegment is called when entering the segment production.
EnterSegment(c *SegmentContext)
// EnterElement is called when entering the element production.
EnterElement(c *ElementContext)
// EnterFuncElement is called when entering the funcElement production.
EnterFuncElement(c *FuncElementContext)
// EnterFunc is called when entering the func production.
EnterFunc(c *FuncContext)
// EnterFuncName is called when entering the funcName production.
EnterFuncName(c *FuncNameContext)
// EnterJoin is called when entering the join production.
EnterJoin(c *JoinContext)
// EnterJoinTable is called when entering the joinTable production.
EnterJoinTable(c *JoinTableContext)
// EnterUniqueFunc is called when entering the uniqueFunc production.
EnterUniqueFunc(c *UniqueFuncContext)
// EnterCountFunc is called when entering the countFunc production.
EnterCountFunc(c *CountFuncContext)
// EnterWhere is called when entering the where production.
EnterWhere(c *WhereContext)
// EnterGroupByTerm is called when entering the groupByTerm production.
EnterGroupByTerm(c *GroupByTermContext)
// EnterGroupBy is called when entering the groupBy production.
EnterGroupBy(c *GroupByContext)
// EnterHaving is called when entering the having production.
EnterHaving(c *HavingContext)
// EnterOrderByTerm is called when entering the orderByTerm production.
EnterOrderByTerm(c *OrderByTermContext)
// EnterOrderBy is called when entering the orderBy production.
EnterOrderBy(c *OrderByContext)
// EnterSelector is called when entering the selector production.
EnterSelector(c *SelectorContext)
// EnterSelectorElement is called when entering the selectorElement production.
EnterSelectorElement(c *SelectorElementContext)
// EnterAlias is called when entering the alias production.
EnterAlias(c *AliasContext)
// EnterArg is called when entering the arg production.
EnterArg(c *ArgContext)
// EnterHandleTable is called when entering the handleTable production.
EnterHandleTable(c *HandleTableContext)
// EnterHandle is called when entering the handle production.
EnterHandle(c *HandleContext)
// EnterRowRange is called when entering the rowRange production.
EnterRowRange(c *RowRangeContext)
// EnterExprElement is called when entering the exprElement production.
EnterExprElement(c *ExprElementContext)
// EnterExpr is called when entering the expr production.
EnterExpr(c *ExprContext)
// EnterLiteral is called when entering the literal production.
EnterLiteral(c *LiteralContext)
// EnterUnaryOperator is called when entering the unaryOperator production.
EnterUnaryOperator(c *UnaryOperatorContext)
// ExitStmtList is called when exiting the stmtList production.
ExitStmtList(c *StmtListContext)
// ExitQuery is called when exiting the query production.
ExitQuery(c *QueryContext)
// ExitSegment is called when exiting the segment production.
ExitSegment(c *SegmentContext)
// ExitElement is called when exiting the element production.
ExitElement(c *ElementContext)
// ExitFuncElement is called when exiting the funcElement production.
ExitFuncElement(c *FuncElementContext)
// ExitFunc is called when exiting the func production.
ExitFunc(c *FuncContext)
// ExitFuncName is called when exiting the funcName production.
ExitFuncName(c *FuncNameContext)
// ExitJoin is called when exiting the join production.
ExitJoin(c *JoinContext)
// ExitJoinTable is called when exiting the joinTable production.
ExitJoinTable(c *JoinTableContext)
// ExitUniqueFunc is called when exiting the uniqueFunc production.
ExitUniqueFunc(c *UniqueFuncContext)
// ExitCountFunc is called when exiting the countFunc production.
ExitCountFunc(c *CountFuncContext)
// ExitWhere is called when exiting the where production.
ExitWhere(c *WhereContext)
// ExitGroupByTerm is called when exiting the groupByTerm production.
ExitGroupByTerm(c *GroupByTermContext)
// ExitGroupBy is called when exiting the groupBy production.
ExitGroupBy(c *GroupByContext)
// ExitHaving is called when exiting the having production.
ExitHaving(c *HavingContext)
// ExitOrderByTerm is called when exiting the orderByTerm production.
ExitOrderByTerm(c *OrderByTermContext)
// ExitOrderBy is called when exiting the orderBy production.
ExitOrderBy(c *OrderByContext)
// ExitSelector is called when exiting the selector production.
ExitSelector(c *SelectorContext)
// ExitSelectorElement is called when exiting the selectorElement production.
ExitSelectorElement(c *SelectorElementContext)
// ExitAlias is called when exiting the alias production.
ExitAlias(c *AliasContext)
// ExitArg is called when exiting the arg production.
ExitArg(c *ArgContext)
// ExitHandleTable is called when exiting the handleTable production.
ExitHandleTable(c *HandleTableContext)
// ExitHandle is called when exiting the handle production.
ExitHandle(c *HandleContext)
// ExitRowRange is called when exiting the rowRange production.
ExitRowRange(c *RowRangeContext)
// ExitExprElement is called when exiting the exprElement production.
ExitExprElement(c *ExprElementContext)
// ExitExpr is called when exiting the expr production.
ExitExpr(c *ExprContext)
// ExitLiteral is called when exiting the literal production.
ExitLiteral(c *LiteralContext)
// ExitUnaryOperator is called when exiting the unaryOperator production.
ExitUnaryOperator(c *UnaryOperatorContext)
}