pydpm_xl 0.1.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- py_dpm/AST/ASTConstructor.py +503 -0
- py_dpm/AST/ASTObjects.py +827 -0
- py_dpm/AST/ASTTemplate.py +101 -0
- py_dpm/AST/ASTVisitor.py +13 -0
- py_dpm/AST/MLGeneration.py +588 -0
- py_dpm/AST/ModuleAnalyzer.py +79 -0
- py_dpm/AST/ModuleDependencies.py +203 -0
- py_dpm/AST/WhereClauseChecker.py +12 -0
- py_dpm/AST/__init__.py +0 -0
- py_dpm/AST/check_operands.py +302 -0
- py_dpm/DataTypes/ScalarTypes.py +324 -0
- py_dpm/DataTypes/TimeClasses.py +370 -0
- py_dpm/DataTypes/TypePromotion.py +195 -0
- py_dpm/DataTypes/__init__.py +0 -0
- py_dpm/Exceptions/__init__.py +0 -0
- py_dpm/Exceptions/exceptions.py +84 -0
- py_dpm/Exceptions/messages.py +114 -0
- py_dpm/OperationScopes/OperationScopeService.py +247 -0
- py_dpm/OperationScopes/__init__.py +0 -0
- py_dpm/Operators/AggregateOperators.py +138 -0
- py_dpm/Operators/BooleanOperators.py +30 -0
- py_dpm/Operators/ClauseOperators.py +159 -0
- py_dpm/Operators/ComparisonOperators.py +69 -0
- py_dpm/Operators/ConditionalOperators.py +362 -0
- py_dpm/Operators/NumericOperators.py +101 -0
- py_dpm/Operators/Operator.py +388 -0
- py_dpm/Operators/StringOperators.py +27 -0
- py_dpm/Operators/TimeOperators.py +53 -0
- py_dpm/Operators/__init__.py +0 -0
- py_dpm/Utils/ValidationsGenerationUtils.py +429 -0
- py_dpm/Utils/__init__.py +0 -0
- py_dpm/Utils/operands_mapping.py +73 -0
- py_dpm/Utils/operator_mapping.py +89 -0
- py_dpm/Utils/tokens.py +172 -0
- py_dpm/Utils/utils.py +2 -0
- py_dpm/ValidationsGeneration/PropertiesConstraintsProcessor.py +190 -0
- py_dpm/ValidationsGeneration/Utils.py +364 -0
- py_dpm/ValidationsGeneration/VariantsProcessor.py +265 -0
- py_dpm/ValidationsGeneration/__init__.py +0 -0
- py_dpm/ValidationsGeneration/auxiliary_functions.py +98 -0
- py_dpm/__init__.py +61 -0
- py_dpm/api/__init__.py +140 -0
- py_dpm/api/ast_generator.py +438 -0
- py_dpm/api/complete_ast.py +241 -0
- py_dpm/api/data_dictionary_validation.py +577 -0
- py_dpm/api/migration.py +77 -0
- py_dpm/api/semantic.py +224 -0
- py_dpm/api/syntax.py +182 -0
- py_dpm/client.py +106 -0
- py_dpm/data_handlers.py +99 -0
- py_dpm/db_utils.py +117 -0
- py_dpm/grammar/__init__.py +0 -0
- py_dpm/grammar/dist/__init__.py +0 -0
- py_dpm/grammar/dist/dpm_xlLexer.interp +428 -0
- py_dpm/grammar/dist/dpm_xlLexer.py +804 -0
- py_dpm/grammar/dist/dpm_xlLexer.tokens +106 -0
- py_dpm/grammar/dist/dpm_xlParser.interp +249 -0
- py_dpm/grammar/dist/dpm_xlParser.py +5224 -0
- py_dpm/grammar/dist/dpm_xlParser.tokens +106 -0
- py_dpm/grammar/dist/dpm_xlParserListener.py +742 -0
- py_dpm/grammar/dist/dpm_xlParserVisitor.py +419 -0
- py_dpm/grammar/dist/listeners.py +10 -0
- py_dpm/grammar/dpm_xlLexer.g4 +435 -0
- py_dpm/grammar/dpm_xlParser.g4 +260 -0
- py_dpm/migration.py +282 -0
- py_dpm/models.py +2139 -0
- py_dpm/semantics/DAG/DAGAnalyzer.py +158 -0
- py_dpm/semantics/DAG/__init__.py +0 -0
- py_dpm/semantics/SemanticAnalyzer.py +320 -0
- py_dpm/semantics/Symbols.py +223 -0
- py_dpm/semantics/__init__.py +0 -0
- py_dpm/utils/__init__.py +0 -0
- py_dpm/utils/ast_serialization.py +481 -0
- py_dpm/views/data_types.sql +12 -0
- py_dpm/views/datapoints.sql +65 -0
- py_dpm/views/hierarchy_operand_reference.sql +11 -0
- py_dpm/views/hierarchy_preconditions.sql +13 -0
- py_dpm/views/hierarchy_variables.sql +26 -0
- py_dpm/views/hierarchy_variables_context.sql +14 -0
- py_dpm/views/key_components.sql +18 -0
- py_dpm/views/module_from_table.sql +11 -0
- py_dpm/views/open_keys.sql +13 -0
- py_dpm/views/operation_info.sql +27 -0
- py_dpm/views/operation_list.sql +18 -0
- py_dpm/views/operations_versions_from_module_version.sql +30 -0
- py_dpm/views/precondition_info.sql +17 -0
- py_dpm/views/report_type_operand_reference_info.sql +18 -0
- py_dpm/views/subcategory_info.sql +17 -0
- py_dpm/views/table_info.sql +19 -0
- pydpm_xl-0.1.10.dist-info/LICENSE +674 -0
- pydpm_xl-0.1.10.dist-info/METADATA +50 -0
- pydpm_xl-0.1.10.dist-info/RECORD +94 -0
- pydpm_xl-0.1.10.dist-info/WHEEL +4 -0
- pydpm_xl-0.1.10.dist-info/entry_points.txt +3 -0
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
# Generated from C:/Users/Javier/Documents/MeaningfulData/Programacion/operations/py_dpm/grammar/dpm_xlParser.g4 by ANTLR 4.13.1
|
|
2
|
+
from antlr4 import *
|
|
3
|
+
|
|
4
|
+
if "." in __name__:
|
|
5
|
+
from .dpm_xlParser import dpm_xlParser
|
|
6
|
+
else:
|
|
7
|
+
from dpm_xlParser import dpm_xlParser
|
|
8
|
+
|
|
9
|
+
# This class defines a complete generic visitor for a parse tree produced by dpm_xlParser.
|
|
10
|
+
|
|
11
|
+
class dpm_xlParserVisitor(ParseTreeVisitor):
|
|
12
|
+
|
|
13
|
+
# Visit a parse tree produced by dpm_xlParser#start.
|
|
14
|
+
def visitStart(self, ctx:dpm_xlParser.StartContext):
|
|
15
|
+
return self.visitChildren(ctx)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# Visit a parse tree produced by dpm_xlParser#statements.
|
|
19
|
+
def visitStatements(self, ctx:dpm_xlParser.StatementsContext):
|
|
20
|
+
return self.visitChildren(ctx)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# Visit a parse tree produced by dpm_xlParser#exprWithoutAssignment.
|
|
24
|
+
def visitExprWithoutAssignment(self, ctx:dpm_xlParser.ExprWithoutAssignmentContext):
|
|
25
|
+
return self.visitChildren(ctx)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# Visit a parse tree produced by dpm_xlParser#assignmentExpr.
|
|
29
|
+
def visitAssignmentExpr(self, ctx:dpm_xlParser.AssignmentExprContext):
|
|
30
|
+
return self.visitChildren(ctx)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# Visit a parse tree produced by dpm_xlParser#persistentExpression.
|
|
34
|
+
def visitPersistentExpression(self, ctx:dpm_xlParser.PersistentExpressionContext):
|
|
35
|
+
return self.visitChildren(ctx)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# Visit a parse tree produced by dpm_xlParser#exprWithoutPartialSelection.
|
|
39
|
+
def visitExprWithoutPartialSelection(self, ctx:dpm_xlParser.ExprWithoutPartialSelectionContext):
|
|
40
|
+
return self.visitChildren(ctx)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
# Visit a parse tree produced by dpm_xlParser#exprWithSelection.
|
|
44
|
+
def visitExprWithSelection(self, ctx:dpm_xlParser.ExprWithSelectionContext):
|
|
45
|
+
return self.visitChildren(ctx)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# Visit a parse tree produced by dpm_xlParser#partialSelect.
|
|
49
|
+
def visitPartialSelect(self, ctx:dpm_xlParser.PartialSelectContext):
|
|
50
|
+
return self.visitChildren(ctx)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
# Visit a parse tree produced by dpm_xlParser#temporaryAssignmentExpression.
|
|
54
|
+
def visitTemporaryAssignmentExpression(self, ctx:dpm_xlParser.TemporaryAssignmentExpressionContext):
|
|
55
|
+
return self.visitChildren(ctx)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
# Visit a parse tree produced by dpm_xlParser#persistentAssignmentExpression.
|
|
59
|
+
def visitPersistentAssignmentExpression(self, ctx:dpm_xlParser.PersistentAssignmentExpressionContext):
|
|
60
|
+
return self.visitChildren(ctx)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
# Visit a parse tree produced by dpm_xlParser#funcExpr.
|
|
64
|
+
def visitFuncExpr(self, ctx:dpm_xlParser.FuncExprContext):
|
|
65
|
+
return self.visitChildren(ctx)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# Visit a parse tree produced by dpm_xlParser#itemReferenceExpr.
|
|
69
|
+
def visitItemReferenceExpr(self, ctx:dpm_xlParser.ItemReferenceExprContext):
|
|
70
|
+
return self.visitChildren(ctx)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
# Visit a parse tree produced by dpm_xlParser#propertyReferenceExpr.
|
|
74
|
+
def visitPropertyReferenceExpr(self, ctx:dpm_xlParser.PropertyReferenceExprContext):
|
|
75
|
+
return self.visitChildren(ctx)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
# Visit a parse tree produced by dpm_xlParser#inExpr.
|
|
79
|
+
def visitInExpr(self, ctx:dpm_xlParser.InExprContext):
|
|
80
|
+
return self.visitChildren(ctx)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
# Visit a parse tree produced by dpm_xlParser#keyNamesExpr.
|
|
84
|
+
def visitKeyNamesExpr(self, ctx:dpm_xlParser.KeyNamesExprContext):
|
|
85
|
+
return self.visitChildren(ctx)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
# Visit a parse tree produced by dpm_xlParser#concatExpr.
|
|
89
|
+
def visitConcatExpr(self, ctx:dpm_xlParser.ConcatExprContext):
|
|
90
|
+
return self.visitChildren(ctx)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
# Visit a parse tree produced by dpm_xlParser#parExpr.
|
|
94
|
+
def visitParExpr(self, ctx:dpm_xlParser.ParExprContext):
|
|
95
|
+
return self.visitChildren(ctx)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
# Visit a parse tree produced by dpm_xlParser#unaryExpr.
|
|
99
|
+
def visitUnaryExpr(self, ctx:dpm_xlParser.UnaryExprContext):
|
|
100
|
+
return self.visitChildren(ctx)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
# Visit a parse tree produced by dpm_xlParser#notExpr.
|
|
104
|
+
def visitNotExpr(self, ctx:dpm_xlParser.NotExprContext):
|
|
105
|
+
return self.visitChildren(ctx)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
# Visit a parse tree produced by dpm_xlParser#selectExpr.
|
|
109
|
+
def visitSelectExpr(self, ctx:dpm_xlParser.SelectExprContext):
|
|
110
|
+
return self.visitChildren(ctx)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
# Visit a parse tree produced by dpm_xlParser#numericExpr.
|
|
114
|
+
def visitNumericExpr(self, ctx:dpm_xlParser.NumericExprContext):
|
|
115
|
+
return self.visitChildren(ctx)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
# Visit a parse tree produced by dpm_xlParser#literalExpr.
|
|
119
|
+
def visitLiteralExpr(self, ctx:dpm_xlParser.LiteralExprContext):
|
|
120
|
+
return self.visitChildren(ctx)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
# Visit a parse tree produced by dpm_xlParser#compExpr.
|
|
124
|
+
def visitCompExpr(self, ctx:dpm_xlParser.CompExprContext):
|
|
125
|
+
return self.visitChildren(ctx)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
# Visit a parse tree produced by dpm_xlParser#ifExpr.
|
|
129
|
+
def visitIfExpr(self, ctx:dpm_xlParser.IfExprContext):
|
|
130
|
+
return self.visitChildren(ctx)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
# Visit a parse tree produced by dpm_xlParser#clauseExpr.
|
|
134
|
+
def visitClauseExpr(self, ctx:dpm_xlParser.ClauseExprContext):
|
|
135
|
+
return self.visitChildren(ctx)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
# Visit a parse tree produced by dpm_xlParser#boolExpr.
|
|
139
|
+
def visitBoolExpr(self, ctx:dpm_xlParser.BoolExprContext):
|
|
140
|
+
return self.visitChildren(ctx)
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
# Visit a parse tree produced by dpm_xlParser#setOperand.
|
|
144
|
+
def visitSetOperand(self, ctx:dpm_xlParser.SetOperandContext):
|
|
145
|
+
return self.visitChildren(ctx)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
# Visit a parse tree produced by dpm_xlParser#setElements.
|
|
149
|
+
def visitSetElements(self, ctx:dpm_xlParser.SetElementsContext):
|
|
150
|
+
return self.visitChildren(ctx)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
# Visit a parse tree produced by dpm_xlParser#aggregateFunctions.
|
|
154
|
+
def visitAggregateFunctions(self, ctx:dpm_xlParser.AggregateFunctionsContext):
|
|
155
|
+
return self.visitChildren(ctx)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
# Visit a parse tree produced by dpm_xlParser#numericFunctions.
|
|
159
|
+
def visitNumericFunctions(self, ctx:dpm_xlParser.NumericFunctionsContext):
|
|
160
|
+
return self.visitChildren(ctx)
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
# Visit a parse tree produced by dpm_xlParser#comparisonFunctions.
|
|
164
|
+
def visitComparisonFunctions(self, ctx:dpm_xlParser.ComparisonFunctionsContext):
|
|
165
|
+
return self.visitChildren(ctx)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
# Visit a parse tree produced by dpm_xlParser#filterFunctions.
|
|
169
|
+
def visitFilterFunctions(self, ctx:dpm_xlParser.FilterFunctionsContext):
|
|
170
|
+
return self.visitChildren(ctx)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
# Visit a parse tree produced by dpm_xlParser#conditionalFunctions.
|
|
174
|
+
def visitConditionalFunctions(self, ctx:dpm_xlParser.ConditionalFunctionsContext):
|
|
175
|
+
return self.visitChildren(ctx)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
# Visit a parse tree produced by dpm_xlParser#timeFunctions.
|
|
179
|
+
def visitTimeFunctions(self, ctx:dpm_xlParser.TimeFunctionsContext):
|
|
180
|
+
return self.visitChildren(ctx)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
# Visit a parse tree produced by dpm_xlParser#stringFunctions.
|
|
184
|
+
def visitStringFunctions(self, ctx:dpm_xlParser.StringFunctionsContext):
|
|
185
|
+
return self.visitChildren(ctx)
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
# Visit a parse tree produced by dpm_xlParser#unaryNumericFunctions.
|
|
189
|
+
def visitUnaryNumericFunctions(self, ctx:dpm_xlParser.UnaryNumericFunctionsContext):
|
|
190
|
+
return self.visitChildren(ctx)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
# Visit a parse tree produced by dpm_xlParser#binaryNumericFunctions.
|
|
194
|
+
def visitBinaryNumericFunctions(self, ctx:dpm_xlParser.BinaryNumericFunctionsContext):
|
|
195
|
+
return self.visitChildren(ctx)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
# Visit a parse tree produced by dpm_xlParser#complexNumericFunctions.
|
|
199
|
+
def visitComplexNumericFunctions(self, ctx:dpm_xlParser.ComplexNumericFunctionsContext):
|
|
200
|
+
return self.visitChildren(ctx)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
# Visit a parse tree produced by dpm_xlParser#matchExpr.
|
|
204
|
+
def visitMatchExpr(self, ctx:dpm_xlParser.MatchExprContext):
|
|
205
|
+
return self.visitChildren(ctx)
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
# Visit a parse tree produced by dpm_xlParser#isnullExpr.
|
|
209
|
+
def visitIsnullExpr(self, ctx:dpm_xlParser.IsnullExprContext):
|
|
210
|
+
return self.visitChildren(ctx)
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
# Visit a parse tree produced by dpm_xlParser#filterOperators.
|
|
214
|
+
def visitFilterOperators(self, ctx:dpm_xlParser.FilterOperatorsContext):
|
|
215
|
+
return self.visitChildren(ctx)
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
# Visit a parse tree produced by dpm_xlParser#timeShiftFunction.
|
|
219
|
+
def visitTimeShiftFunction(self, ctx:dpm_xlParser.TimeShiftFunctionContext):
|
|
220
|
+
return self.visitChildren(ctx)
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
# Visit a parse tree produced by dpm_xlParser#nvlFunction.
|
|
224
|
+
def visitNvlFunction(self, ctx:dpm_xlParser.NvlFunctionContext):
|
|
225
|
+
return self.visitChildren(ctx)
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
# Visit a parse tree produced by dpm_xlParser#unaryStringFunction.
|
|
229
|
+
def visitUnaryStringFunction(self, ctx:dpm_xlParser.UnaryStringFunctionContext):
|
|
230
|
+
return self.visitChildren(ctx)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
# Visit a parse tree produced by dpm_xlParser#commonAggrOp.
|
|
234
|
+
def visitCommonAggrOp(self, ctx:dpm_xlParser.CommonAggrOpContext):
|
|
235
|
+
return self.visitChildren(ctx)
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
# Visit a parse tree produced by dpm_xlParser#groupingClause.
|
|
239
|
+
def visitGroupingClause(self, ctx:dpm_xlParser.GroupingClauseContext):
|
|
240
|
+
return self.visitChildren(ctx)
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
# Visit a parse tree produced by dpm_xlParser#itemSignature.
|
|
244
|
+
def visitItemSignature(self, ctx:dpm_xlParser.ItemSignatureContext):
|
|
245
|
+
return self.visitChildren(ctx)
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
# Visit a parse tree produced by dpm_xlParser#itemReference.
|
|
249
|
+
def visitItemReference(self, ctx:dpm_xlParser.ItemReferenceContext):
|
|
250
|
+
return self.visitChildren(ctx)
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
# Visit a parse tree produced by dpm_xlParser#rowElem.
|
|
254
|
+
def visitRowElem(self, ctx:dpm_xlParser.RowElemContext):
|
|
255
|
+
return self.visitChildren(ctx)
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
# Visit a parse tree produced by dpm_xlParser#colElem.
|
|
259
|
+
def visitColElem(self, ctx:dpm_xlParser.ColElemContext):
|
|
260
|
+
return self.visitChildren(ctx)
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
# Visit a parse tree produced by dpm_xlParser#sheetElem.
|
|
264
|
+
def visitSheetElem(self, ctx:dpm_xlParser.SheetElemContext):
|
|
265
|
+
return self.visitChildren(ctx)
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
# Visit a parse tree produced by dpm_xlParser#rowHandler.
|
|
269
|
+
def visitRowHandler(self, ctx:dpm_xlParser.RowHandlerContext):
|
|
270
|
+
return self.visitChildren(ctx)
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
# Visit a parse tree produced by dpm_xlParser#colHandler.
|
|
274
|
+
def visitColHandler(self, ctx:dpm_xlParser.ColHandlerContext):
|
|
275
|
+
return self.visitChildren(ctx)
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
# Visit a parse tree produced by dpm_xlParser#sheetHandler.
|
|
279
|
+
def visitSheetHandler(self, ctx:dpm_xlParser.SheetHandlerContext):
|
|
280
|
+
return self.visitChildren(ctx)
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
# Visit a parse tree produced by dpm_xlParser#interval.
|
|
284
|
+
def visitInterval(self, ctx:dpm_xlParser.IntervalContext):
|
|
285
|
+
return self.visitChildren(ctx)
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
# Visit a parse tree produced by dpm_xlParser#default.
|
|
289
|
+
def visitDefault(self, ctx:dpm_xlParser.DefaultContext):
|
|
290
|
+
return self.visitChildren(ctx)
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
# Visit a parse tree produced by dpm_xlParser#rowArg.
|
|
294
|
+
def visitRowArg(self, ctx:dpm_xlParser.RowArgContext):
|
|
295
|
+
return self.visitChildren(ctx)
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
# Visit a parse tree produced by dpm_xlParser#colArg.
|
|
299
|
+
def visitColArg(self, ctx:dpm_xlParser.ColArgContext):
|
|
300
|
+
return self.visitChildren(ctx)
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
# Visit a parse tree produced by dpm_xlParser#sheetArg.
|
|
304
|
+
def visitSheetArg(self, ctx:dpm_xlParser.SheetArgContext):
|
|
305
|
+
return self.visitChildren(ctx)
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
# Visit a parse tree produced by dpm_xlParser#intervalArg.
|
|
309
|
+
def visitIntervalArg(self, ctx:dpm_xlParser.IntervalArgContext):
|
|
310
|
+
return self.visitChildren(ctx)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
# Visit a parse tree produced by dpm_xlParser#defaultArg.
|
|
314
|
+
def visitDefaultArg(self, ctx:dpm_xlParser.DefaultArgContext):
|
|
315
|
+
return self.visitChildren(ctx)
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
# Visit a parse tree produced by dpm_xlParser#select.
|
|
319
|
+
def visitSelect(self, ctx:dpm_xlParser.SelectContext):
|
|
320
|
+
return self.visitChildren(ctx)
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
# Visit a parse tree produced by dpm_xlParser#selectOperand.
|
|
324
|
+
def visitSelectOperand(self, ctx:dpm_xlParser.SelectOperandContext):
|
|
325
|
+
return self.visitChildren(ctx)
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
# Visit a parse tree produced by dpm_xlParser#varID.
|
|
329
|
+
def visitVarID(self, ctx:dpm_xlParser.VarIDContext):
|
|
330
|
+
return self.visitChildren(ctx)
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
# Visit a parse tree produced by dpm_xlParser#cellRef.
|
|
334
|
+
def visitCellRef(self, ctx:dpm_xlParser.CellRefContext):
|
|
335
|
+
return self.visitChildren(ctx)
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
# Visit a parse tree produced by dpm_xlParser#preconditionElem.
|
|
339
|
+
def visitPreconditionElem(self, ctx:dpm_xlParser.PreconditionElemContext):
|
|
340
|
+
return self.visitChildren(ctx)
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
# Visit a parse tree produced by dpm_xlParser#varRef.
|
|
344
|
+
def visitVarRef(self, ctx:dpm_xlParser.VarRefContext):
|
|
345
|
+
return self.visitChildren(ctx)
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
# Visit a parse tree produced by dpm_xlParser#operationRef.
|
|
349
|
+
def visitOperationRef(self, ctx:dpm_xlParser.OperationRefContext):
|
|
350
|
+
return self.visitChildren(ctx)
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
# Visit a parse tree produced by dpm_xlParser#tableRef.
|
|
354
|
+
def visitTableRef(self, ctx:dpm_xlParser.TableRefContext):
|
|
355
|
+
return self.visitChildren(ctx)
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
# Visit a parse tree produced by dpm_xlParser#compRef.
|
|
359
|
+
def visitCompRef(self, ctx:dpm_xlParser.CompRefContext):
|
|
360
|
+
return self.visitChildren(ctx)
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
# Visit a parse tree produced by dpm_xlParser#tableReference.
|
|
364
|
+
def visitTableReference(self, ctx:dpm_xlParser.TableReferenceContext):
|
|
365
|
+
return self.visitChildren(ctx)
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
# Visit a parse tree produced by dpm_xlParser#whereExpr.
|
|
369
|
+
def visitWhereExpr(self, ctx:dpm_xlParser.WhereExprContext):
|
|
370
|
+
return self.visitChildren(ctx)
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
# Visit a parse tree produced by dpm_xlParser#getExpr.
|
|
374
|
+
def visitGetExpr(self, ctx:dpm_xlParser.GetExprContext):
|
|
375
|
+
return self.visitChildren(ctx)
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
# Visit a parse tree produced by dpm_xlParser#renameExpr.
|
|
379
|
+
def visitRenameExpr(self, ctx:dpm_xlParser.RenameExprContext):
|
|
380
|
+
return self.visitChildren(ctx)
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
# Visit a parse tree produced by dpm_xlParser#renameClause.
|
|
384
|
+
def visitRenameClause(self, ctx:dpm_xlParser.RenameClauseContext):
|
|
385
|
+
return self.visitChildren(ctx)
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
# Visit a parse tree produced by dpm_xlParser#comparisonOperators.
|
|
389
|
+
def visitComparisonOperators(self, ctx:dpm_xlParser.ComparisonOperatorsContext):
|
|
390
|
+
return self.visitChildren(ctx)
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
# Visit a parse tree produced by dpm_xlParser#literal.
|
|
394
|
+
def visitLiteral(self, ctx:dpm_xlParser.LiteralContext):
|
|
395
|
+
return self.visitChildren(ctx)
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
# Visit a parse tree produced by dpm_xlParser#keyNames.
|
|
399
|
+
def visitKeyNames(self, ctx:dpm_xlParser.KeyNamesContext):
|
|
400
|
+
return self.visitChildren(ctx)
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
# Visit a parse tree produced by dpm_xlParser#propertyReference.
|
|
404
|
+
def visitPropertyReference(self, ctx:dpm_xlParser.PropertyReferenceContext):
|
|
405
|
+
return self.visitChildren(ctx)
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
# Visit a parse tree produced by dpm_xlParser#propertyCode.
|
|
409
|
+
def visitPropertyCode(self, ctx:dpm_xlParser.PropertyCodeContext):
|
|
410
|
+
return self.visitChildren(ctx)
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
# Visit a parse tree produced by dpm_xlParser#temporaryIdentifier.
|
|
414
|
+
def visitTemporaryIdentifier(self, ctx:dpm_xlParser.TemporaryIdentifierContext):
|
|
415
|
+
return self.visitChildren(ctx)
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
del dpm_xlParser
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from antlr4.error.ErrorListener import ErrorListener
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class DPMErrorListener(ErrorListener):
|
|
5
|
+
def __init__(self):
|
|
6
|
+
super(DPMErrorListener, self).__init__()
|
|
7
|
+
|
|
8
|
+
def syntaxError(self, recognizer, offendingSymbol, line, column, msg, e):
|
|
9
|
+
# UTILS_UTILS.1
|
|
10
|
+
raise SyntaxError('offendingSymbol: {} msg: {}'.format(offendingSymbol, msg))
|