expressir 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +46 -0
- data/.github/workflows/release.yml +74 -0
- data/.gitignore +1 -2
- data/.gitmodules +3 -0
- data/Gemfile +2 -0
- data/Rakefile +20 -0
- data/exe/generate-parser +48 -0
- data/expressir.gemspec +5 -2
- data/ext/express-parser/antlrgen/Express.interp +532 -0
- data/ext/express-parser/antlrgen/Express.tokens +190 -0
- data/ext/express-parser/antlrgen/ExpressBaseListener.cpp +7 -0
- data/ext/express-parser/antlrgen/ExpressBaseListener.h +623 -0
- data/ext/express-parser/antlrgen/ExpressBaseVisitor.cpp +7 -0
- data/ext/express-parser/antlrgen/ExpressBaseVisitor.h +816 -0
- data/ext/express-parser/antlrgen/ExpressLexer.cpp +1169 -0
- data/ext/express-parser/antlrgen/ExpressLexer.h +85 -0
- data/ext/express-parser/antlrgen/ExpressLexer.interp +534 -0
- data/ext/express-parser/antlrgen/ExpressLexer.tokens +190 -0
- data/ext/express-parser/antlrgen/ExpressListener.cpp +7 -0
- data/ext/express-parser/antlrgen/ExpressListener.h +616 -0
- data/ext/express-parser/antlrgen/ExpressParser.cpp +17284 -0
- data/ext/express-parser/antlrgen/ExpressParser.h +3696 -0
- data/ext/express-parser/antlrgen/ExpressVisitor.cpp +7 -0
- data/ext/express-parser/antlrgen/ExpressVisitor.h +422 -0
- data/ext/express-parser/express_parser.cpp +17931 -0
- data/ext/express-parser/extconf.rb +34 -0
- data/lib/expressir/express_exp/formatter.rb +50 -44
- data/lib/expressir/express_exp/parser.rb +12 -6
- data/lib/expressir/express_exp/visitor.rb +1377 -1068
- data/lib/expressir/model.rb +3 -0
- data/lib/expressir/model/attribute.rb +4 -5
- data/lib/expressir/model/constant.rb +3 -4
- data/lib/expressir/model/entity.rb +4 -4
- data/lib/expressir/model/enumeration_item.rb +1 -4
- data/lib/expressir/model/expressions/query_expression.rb +4 -4
- data/lib/expressir/model/function.rb +4 -4
- data/lib/expressir/model/identifier.rb +9 -0
- data/lib/expressir/model/parameter.rb +4 -5
- data/lib/expressir/model/procedure.rb +4 -4
- data/lib/expressir/model/repository.rb +2 -0
- data/lib/expressir/model/rule.rb +4 -4
- data/lib/expressir/model/schema.rb +3 -3
- data/lib/expressir/model/scope.rb +17 -0
- data/lib/expressir/model/statements/alias.rb +4 -4
- data/lib/expressir/model/statements/repeat.rb +4 -4
- data/lib/expressir/model/subtype_constraint.rb +9 -4
- data/lib/expressir/model/type.rb +4 -4
- data/lib/expressir/model/types/aggregate.rb +4 -5
- data/lib/expressir/model/types/generic.rb +2 -5
- data/lib/expressir/model/types/generic_entity.rb +2 -5
- data/lib/expressir/model/unique.rb +3 -4
- data/lib/expressir/model/variable.rb +3 -4
- data/lib/expressir/model/where.rb +3 -4
- data/lib/expressir/version.rb +1 -1
- data/original/examples/syntax/remark_formatted.exp +73 -71
- data/original/examples/syntax/syntax_formatted.exp +109 -98
- data/spec/expressir/express_exp/ap233_spec.rb +1 -1
- data/spec/expressir/express_exp/parse_syntax_spec.rb +30 -30
- data/spec/expressir/model/find_spec.rb +110 -0
- metadata +61 -15
- data/.github/workflows/macos.yml +0 -38
- data/.github/workflows/ubuntu.yml +0 -56
- data/.github/workflows/windows.yml +0 -40
- data/generate-parser.sh +0 -29
- data/lib/expressir/express_exp/generated/ExpressBaseVisitor.rb +0 -779
- data/lib/expressir/express_exp/generated/ExpressLexer.rb +0 -844
- data/lib/expressir/express_exp/generated/ExpressParser.rb +0 -12162
- data/lib/expressir/express_exp/generated/ExpressVisitor.rb +0 -394
@@ -1,394 +0,0 @@
|
|
1
|
-
# Generated from ../express-grammar/Express.g4 by ANTLR 4.7.2
|
2
|
-
require 'antlr4/runtime'
|
3
|
-
|
4
|
-
module Expressir
|
5
|
-
module ExpressExp
|
6
|
-
module Generated
|
7
|
-
|
8
|
-
class ExpressVisitor < Antlr4::Runtime::ParseTreeVisitor
|
9
|
-
def visitAttributeRef(ctx)
|
10
|
-
end
|
11
|
-
def visitConstantRef(ctx)
|
12
|
-
end
|
13
|
-
def visitEntityRef(ctx)
|
14
|
-
end
|
15
|
-
def visitEnumerationRef(ctx)
|
16
|
-
end
|
17
|
-
def visitFunctionRef(ctx)
|
18
|
-
end
|
19
|
-
def visitParameterRef(ctx)
|
20
|
-
end
|
21
|
-
def visitProcedureRef(ctx)
|
22
|
-
end
|
23
|
-
def visitRuleLabelRef(ctx)
|
24
|
-
end
|
25
|
-
def visitRuleRef(ctx)
|
26
|
-
end
|
27
|
-
def visitSchemaRef(ctx)
|
28
|
-
end
|
29
|
-
def visitSubtypeConstraintRef(ctx)
|
30
|
-
end
|
31
|
-
def visitTypeLabelRef(ctx)
|
32
|
-
end
|
33
|
-
def visitTypeRef(ctx)
|
34
|
-
end
|
35
|
-
def visitVariableRef(ctx)
|
36
|
-
end
|
37
|
-
def visitAbstractEntityDeclaration(ctx)
|
38
|
-
end
|
39
|
-
def visitAbstractSupertype(ctx)
|
40
|
-
end
|
41
|
-
def visitAbstractSupertypeDeclaration(ctx)
|
42
|
-
end
|
43
|
-
def visitActualParameterList(ctx)
|
44
|
-
end
|
45
|
-
def visitAddLikeOp(ctx)
|
46
|
-
end
|
47
|
-
def visitAggregateInitializer(ctx)
|
48
|
-
end
|
49
|
-
def visitAggregateSource(ctx)
|
50
|
-
end
|
51
|
-
def visitAggregateType(ctx)
|
52
|
-
end
|
53
|
-
def visitAggregationTypes(ctx)
|
54
|
-
end
|
55
|
-
def visitAlgorithmHead(ctx)
|
56
|
-
end
|
57
|
-
def visitAliasStmt(ctx)
|
58
|
-
end
|
59
|
-
def visitArrayType(ctx)
|
60
|
-
end
|
61
|
-
def visitAssignmentStmt(ctx)
|
62
|
-
end
|
63
|
-
def visitAttributeDecl(ctx)
|
64
|
-
end
|
65
|
-
def visitAttributeId(ctx)
|
66
|
-
end
|
67
|
-
def visitAttributeQualifier(ctx)
|
68
|
-
end
|
69
|
-
def visitBagType(ctx)
|
70
|
-
end
|
71
|
-
def visitBinaryType(ctx)
|
72
|
-
end
|
73
|
-
def visitBooleanType(ctx)
|
74
|
-
end
|
75
|
-
def visitBound1(ctx)
|
76
|
-
end
|
77
|
-
def visitBound2(ctx)
|
78
|
-
end
|
79
|
-
def visitBoundSpec(ctx)
|
80
|
-
end
|
81
|
-
def visitBuiltInConstant(ctx)
|
82
|
-
end
|
83
|
-
def visitBuiltInFunction(ctx)
|
84
|
-
end
|
85
|
-
def visitBuiltInProcedure(ctx)
|
86
|
-
end
|
87
|
-
def visitCaseAction(ctx)
|
88
|
-
end
|
89
|
-
def visitCaseLabel(ctx)
|
90
|
-
end
|
91
|
-
def visitCaseStmt(ctx)
|
92
|
-
end
|
93
|
-
def visitCompoundStmt(ctx)
|
94
|
-
end
|
95
|
-
def visitConcreteTypes(ctx)
|
96
|
-
end
|
97
|
-
def visitConstantBody(ctx)
|
98
|
-
end
|
99
|
-
def visitConstantDecl(ctx)
|
100
|
-
end
|
101
|
-
def visitConstantFactor(ctx)
|
102
|
-
end
|
103
|
-
def visitConstantId(ctx)
|
104
|
-
end
|
105
|
-
def visitConstructedTypes(ctx)
|
106
|
-
end
|
107
|
-
def visitDeclaration(ctx)
|
108
|
-
end
|
109
|
-
def visitDerivedAttr(ctx)
|
110
|
-
end
|
111
|
-
def visitDeriveClause(ctx)
|
112
|
-
end
|
113
|
-
def visitDomainRule(ctx)
|
114
|
-
end
|
115
|
-
def visitElement(ctx)
|
116
|
-
end
|
117
|
-
def visitEntityBody(ctx)
|
118
|
-
end
|
119
|
-
def visitEntityConstructor(ctx)
|
120
|
-
end
|
121
|
-
def visitEntityDecl(ctx)
|
122
|
-
end
|
123
|
-
def visitEntityHead(ctx)
|
124
|
-
end
|
125
|
-
def visitEntityId(ctx)
|
126
|
-
end
|
127
|
-
def visitEnumerationExtension(ctx)
|
128
|
-
end
|
129
|
-
def visitEnumerationId(ctx)
|
130
|
-
end
|
131
|
-
def visitEnumerationItems(ctx)
|
132
|
-
end
|
133
|
-
def visitEnumerationReference(ctx)
|
134
|
-
end
|
135
|
-
def visitEnumerationType(ctx)
|
136
|
-
end
|
137
|
-
def visitEscapeStmt(ctx)
|
138
|
-
end
|
139
|
-
def visitExplicitAttr(ctx)
|
140
|
-
end
|
141
|
-
def visitExpression(ctx)
|
142
|
-
end
|
143
|
-
def visitFactor(ctx)
|
144
|
-
end
|
145
|
-
def visitFormalParameter(ctx)
|
146
|
-
end
|
147
|
-
def visitFunctionCall(ctx)
|
148
|
-
end
|
149
|
-
def visitFunctionDecl(ctx)
|
150
|
-
end
|
151
|
-
def visitFunctionHead(ctx)
|
152
|
-
end
|
153
|
-
def visitFunctionId(ctx)
|
154
|
-
end
|
155
|
-
def visitGeneralizedTypes(ctx)
|
156
|
-
end
|
157
|
-
def visitGeneralAggregationTypes(ctx)
|
158
|
-
end
|
159
|
-
def visitGeneralArrayType(ctx)
|
160
|
-
end
|
161
|
-
def visitGeneralBagType(ctx)
|
162
|
-
end
|
163
|
-
def visitGeneralListType(ctx)
|
164
|
-
end
|
165
|
-
def visitGeneralRef(ctx)
|
166
|
-
end
|
167
|
-
def visitGeneralSetType(ctx)
|
168
|
-
end
|
169
|
-
def visitGenericEntityType(ctx)
|
170
|
-
end
|
171
|
-
def visitGenericType(ctx)
|
172
|
-
end
|
173
|
-
def visitGroupQualifier(ctx)
|
174
|
-
end
|
175
|
-
def visitIfStmt(ctx)
|
176
|
-
end
|
177
|
-
def visitIncrement(ctx)
|
178
|
-
end
|
179
|
-
def visitIncrementControl(ctx)
|
180
|
-
end
|
181
|
-
def visitIndex(ctx)
|
182
|
-
end
|
183
|
-
def visitIndex1(ctx)
|
184
|
-
end
|
185
|
-
def visitIndex2(ctx)
|
186
|
-
end
|
187
|
-
def visitIndexQualifier(ctx)
|
188
|
-
end
|
189
|
-
def visitInstantiableType(ctx)
|
190
|
-
end
|
191
|
-
def visitIntegerType(ctx)
|
192
|
-
end
|
193
|
-
def visitInterfaceSpecification(ctx)
|
194
|
-
end
|
195
|
-
def visitInterval(ctx)
|
196
|
-
end
|
197
|
-
def visitIntervalHigh(ctx)
|
198
|
-
end
|
199
|
-
def visitIntervalItem(ctx)
|
200
|
-
end
|
201
|
-
def visitIntervalLow(ctx)
|
202
|
-
end
|
203
|
-
def visitIntervalOp(ctx)
|
204
|
-
end
|
205
|
-
def visitInverseAttr(ctx)
|
206
|
-
end
|
207
|
-
def visitInverseClause(ctx)
|
208
|
-
end
|
209
|
-
def visitListType(ctx)
|
210
|
-
end
|
211
|
-
def visitLiteral(ctx)
|
212
|
-
end
|
213
|
-
def visitLocalDecl(ctx)
|
214
|
-
end
|
215
|
-
def visitLocalVariable(ctx)
|
216
|
-
end
|
217
|
-
def visitLogicalExpression(ctx)
|
218
|
-
end
|
219
|
-
def visitLogicalLiteral(ctx)
|
220
|
-
end
|
221
|
-
def visitLogicalType(ctx)
|
222
|
-
end
|
223
|
-
def visitMultiplicationLikeOp(ctx)
|
224
|
-
end
|
225
|
-
def visitNamedTypes(ctx)
|
226
|
-
end
|
227
|
-
def visitNamedTypeOrRename(ctx)
|
228
|
-
end
|
229
|
-
def visitNullStmt(ctx)
|
230
|
-
end
|
231
|
-
def visitNumberType(ctx)
|
232
|
-
end
|
233
|
-
def visitNumericExpression(ctx)
|
234
|
-
end
|
235
|
-
def visitOneOf(ctx)
|
236
|
-
end
|
237
|
-
def visitParameter(ctx)
|
238
|
-
end
|
239
|
-
def visitParameterId(ctx)
|
240
|
-
end
|
241
|
-
def visitParameterType(ctx)
|
242
|
-
end
|
243
|
-
def visitPopulation(ctx)
|
244
|
-
end
|
245
|
-
def visitPrecisionSpec(ctx)
|
246
|
-
end
|
247
|
-
def visitPrimary(ctx)
|
248
|
-
end
|
249
|
-
def visitProcedureCallStmt(ctx)
|
250
|
-
end
|
251
|
-
def visitProcedureDecl(ctx)
|
252
|
-
end
|
253
|
-
def visitProcedureHead(ctx)
|
254
|
-
end
|
255
|
-
def visitProcedureId(ctx)
|
256
|
-
end
|
257
|
-
def visitQualifiableFactor(ctx)
|
258
|
-
end
|
259
|
-
def visitQualifiedAttribute(ctx)
|
260
|
-
end
|
261
|
-
def visitQualifier(ctx)
|
262
|
-
end
|
263
|
-
def visitQueryExpression(ctx)
|
264
|
-
end
|
265
|
-
def visitRealType(ctx)
|
266
|
-
end
|
267
|
-
def visitRedeclaredAttribute(ctx)
|
268
|
-
end
|
269
|
-
def visitReferencedAttribute(ctx)
|
270
|
-
end
|
271
|
-
def visitReferenceClause(ctx)
|
272
|
-
end
|
273
|
-
def visitRelOp(ctx)
|
274
|
-
end
|
275
|
-
def visitRelOpExtended(ctx)
|
276
|
-
end
|
277
|
-
def visitRenameId(ctx)
|
278
|
-
end
|
279
|
-
def visitRepeatControl(ctx)
|
280
|
-
end
|
281
|
-
def visitRepeatStmt(ctx)
|
282
|
-
end
|
283
|
-
def visitRepetition(ctx)
|
284
|
-
end
|
285
|
-
def visitResourceOrRename(ctx)
|
286
|
-
end
|
287
|
-
def visitResourceRef(ctx)
|
288
|
-
end
|
289
|
-
def visitReturnStmt(ctx)
|
290
|
-
end
|
291
|
-
def visitRuleDecl(ctx)
|
292
|
-
end
|
293
|
-
def visitRuleHead(ctx)
|
294
|
-
end
|
295
|
-
def visitRuleId(ctx)
|
296
|
-
end
|
297
|
-
def visitRuleLabelId(ctx)
|
298
|
-
end
|
299
|
-
def visitSchemaBody(ctx)
|
300
|
-
end
|
301
|
-
def visitSchemaDecl(ctx)
|
302
|
-
end
|
303
|
-
def visitSchemaId(ctx)
|
304
|
-
end
|
305
|
-
def visitSchemaVersionId(ctx)
|
306
|
-
end
|
307
|
-
def visitSelector(ctx)
|
308
|
-
end
|
309
|
-
def visitSelectExtension(ctx)
|
310
|
-
end
|
311
|
-
def visitSelectList(ctx)
|
312
|
-
end
|
313
|
-
def visitSelectType(ctx)
|
314
|
-
end
|
315
|
-
def visitSetType(ctx)
|
316
|
-
end
|
317
|
-
def visitSimpleExpression(ctx)
|
318
|
-
end
|
319
|
-
def visitSimpleFactor(ctx)
|
320
|
-
end
|
321
|
-
def visitSimpleTypes(ctx)
|
322
|
-
end
|
323
|
-
def visitSkipStmt(ctx)
|
324
|
-
end
|
325
|
-
def visitStmt(ctx)
|
326
|
-
end
|
327
|
-
def visitStringLiteral(ctx)
|
328
|
-
end
|
329
|
-
def visitStringType(ctx)
|
330
|
-
end
|
331
|
-
def visitSubsuper(ctx)
|
332
|
-
end
|
333
|
-
def visitSubtypeConstraint(ctx)
|
334
|
-
end
|
335
|
-
def visitSubtypeConstraintBody(ctx)
|
336
|
-
end
|
337
|
-
def visitSubtypeConstraintDecl(ctx)
|
338
|
-
end
|
339
|
-
def visitSubtypeConstraintHead(ctx)
|
340
|
-
end
|
341
|
-
def visitSubtypeConstraintId(ctx)
|
342
|
-
end
|
343
|
-
def visitSubtypeDeclaration(ctx)
|
344
|
-
end
|
345
|
-
def visitSupertypeConstraint(ctx)
|
346
|
-
end
|
347
|
-
def visitSupertypeExpression(ctx)
|
348
|
-
end
|
349
|
-
def visitSupertypeFactor(ctx)
|
350
|
-
end
|
351
|
-
def visitSupertypeRule(ctx)
|
352
|
-
end
|
353
|
-
def visitSupertypeTerm(ctx)
|
354
|
-
end
|
355
|
-
def visitSyntax(ctx)
|
356
|
-
end
|
357
|
-
def visitTerm(ctx)
|
358
|
-
end
|
359
|
-
def visitTotalOver(ctx)
|
360
|
-
end
|
361
|
-
def visitTypeDecl(ctx)
|
362
|
-
end
|
363
|
-
def visitTypeId(ctx)
|
364
|
-
end
|
365
|
-
def visitTypeLabel(ctx)
|
366
|
-
end
|
367
|
-
def visitTypeLabelId(ctx)
|
368
|
-
end
|
369
|
-
def visitUnaryOp(ctx)
|
370
|
-
end
|
371
|
-
def visitUnderlyingType(ctx)
|
372
|
-
end
|
373
|
-
def visitUniqueClause(ctx)
|
374
|
-
end
|
375
|
-
def visitUniqueRule(ctx)
|
376
|
-
end
|
377
|
-
def visitUntilControl(ctx)
|
378
|
-
end
|
379
|
-
def visitUseClause(ctx)
|
380
|
-
end
|
381
|
-
def visitVariableId(ctx)
|
382
|
-
end
|
383
|
-
def visitWhereClause(ctx)
|
384
|
-
end
|
385
|
-
def visitWhileControl(ctx)
|
386
|
-
end
|
387
|
-
def visitWidth(ctx)
|
388
|
-
end
|
389
|
-
def visitWidthSpec(ctx)
|
390
|
-
end
|
391
|
-
end
|
392
|
-
end
|
393
|
-
end
|
394
|
-
end
|