expressir 0.2.21-x64-mingw32 → 0.2.24-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +22 -6
- data/lib/expressir/express_exp/2.4/express_parser.so +0 -0
- data/lib/expressir/express_exp/2.5/express_parser.so +0 -0
- data/lib/expressir/express_exp/2.6/express_parser.so +0 -0
- data/lib/expressir/express_exp/2.7/express_parser.so +0 -0
- data/lib/expressir/express_exp/3.0/express_parser.so +0 -0
- data/lib/expressir/express_exp/cache.rb +1 -1
- data/lib/expressir/express_exp/visitor.rb +19 -18
- data/lib/expressir/model.rb +1 -1
- data/lib/expressir/model/attribute.rb +12 -5
- data/lib/expressir/model/cache.rb +2 -2
- data/lib/expressir/model/constant.rb +9 -2
- data/lib/expressir/model/entity.rb +10 -8
- data/lib/expressir/model/enumeration_item.rb +7 -0
- data/lib/expressir/model/expressions/aggregate_initializer.rb +1 -1
- data/lib/expressir/model/expressions/aggregate_item.rb +2 -2
- data/lib/expressir/model/expressions/attribute_reference.rb +2 -2
- data/lib/expressir/model/expressions/binary_expression.rb +3 -3
- data/lib/expressir/model/expressions/call.rb +2 -2
- data/lib/expressir/model/expressions/entity_constructor.rb +2 -2
- data/lib/expressir/model/expressions/group_reference.rb +2 -2
- data/lib/expressir/model/expressions/index_reference.rb +3 -3
- data/lib/expressir/model/expressions/interval.rb +5 -5
- data/lib/expressir/model/expressions/query_expression.rb +5 -3
- data/lib/expressir/model/expressions/simple_reference.rb +1 -1
- data/lib/expressir/model/expressions/unary_expression.rb +2 -2
- data/lib/expressir/model/function.rb +13 -11
- data/lib/expressir/model/identifier.rb +6 -3
- data/lib/expressir/model/interface.rb +3 -3
- data/lib/expressir/model/interface_item.rb +2 -2
- data/lib/expressir/model/interfaced_item.rb +11 -6
- data/lib/expressir/model/literals/binary.rb +1 -1
- data/lib/expressir/model/literals/integer.rb +1 -1
- data/lib/expressir/model/literals/logical.rb +1 -1
- data/lib/expressir/model/literals/real.rb +1 -1
- data/lib/expressir/model/literals/string.rb +2 -2
- data/lib/expressir/model/model_element.rb +29 -24
- data/lib/expressir/model/parameter.rb +9 -2
- data/lib/expressir/model/procedure.rb +12 -10
- data/lib/expressir/model/{informal_proposition.rb → remark_item.rb} +3 -6
- data/lib/expressir/model/repository.rb +1 -1
- data/lib/expressir/model/rule.rb +14 -12
- data/lib/expressir/model/schema.rb +13 -11
- data/lib/expressir/model/statements/alias.rb +5 -3
- data/lib/expressir/model/statements/assignment.rb +2 -2
- data/lib/expressir/model/statements/call.rb +2 -2
- data/lib/expressir/model/statements/case.rb +3 -3
- data/lib/expressir/model/statements/case_action.rb +2 -2
- data/lib/expressir/model/statements/compound.rb +1 -1
- data/lib/expressir/model/statements/if.rb +3 -3
- data/lib/expressir/model/statements/repeat.rb +9 -7
- data/lib/expressir/model/statements/return.rb +1 -1
- data/lib/expressir/model/subtype_constraint.rb +11 -4
- data/lib/expressir/model/type.rb +6 -4
- data/lib/expressir/model/types/aggregate.rb +8 -1
- data/lib/expressir/model/types/array.rb +5 -5
- data/lib/expressir/model/types/bag.rb +3 -3
- data/lib/expressir/model/types/binary.rb +2 -2
- data/lib/expressir/model/types/enumeration.rb +4 -4
- data/lib/expressir/model/types/generic.rb +7 -0
- data/lib/expressir/model/types/generic_entity.rb +7 -0
- data/lib/expressir/model/types/list.rb +4 -4
- data/lib/expressir/model/types/real.rb +1 -1
- data/lib/expressir/model/types/select.rb +5 -5
- data/lib/expressir/model/types/set.rb +3 -3
- data/lib/expressir/model/types/string.rb +2 -2
- data/lib/expressir/model/unique.rb +8 -1
- data/lib/expressir/model/variable.rb +9 -2
- data/lib/expressir/model/where.rb +8 -1
- data/lib/expressir/version.rb +1 -1
- data/original/examples/syntax/remark.exp +12 -10
- data/original/examples/syntax/remark.yaml +9 -3
- data/original/examples/syntax/remark_formatted.exp +3 -1
- data/spec/expressir/model/model_element_spec.rb +20 -20
- metadata +3 -3
data/lib/expressir/version.rb
CHANGED
@@ -14,8 +14,8 @@ CONSTANT remark_constant : STRING := 'xxx'; END_CONSTANT;
|
|
14
14
|
TYPE remark_type = ENUMERATION OF (remark_enumeration_item);
|
15
15
|
WHERE WR1: TRUE;
|
16
16
|
--"WR1" type scope - type where
|
17
|
-
--"IP1" type scope - type informal proposition
|
18
17
|
--"wr:WR1" type scope - type where, with prefix
|
18
|
+
--"IP1" type scope - type informal proposition
|
19
19
|
--"ip:IP1" type scope - type informal proposition, with prefix
|
20
20
|
END_TYPE;
|
21
21
|
ENTITY remark_entity;
|
@@ -29,8 +29,8 @@ ENTITY remark_entity;
|
|
29
29
|
--"remark_inverse_attribute" entity scope - entity inverse attribute
|
30
30
|
--"UR1" entity scope - entity unique
|
31
31
|
--"WR1" entity scope - entity where
|
32
|
-
--"IP1" entity scope - entity informal proposition
|
33
32
|
--"wr:WR1" entity scope - entity where, with prefix
|
33
|
+
--"IP1" entity scope - entity informal proposition
|
34
34
|
--"ip:IP1" entity scope - entity informal proposition, with prefix
|
35
35
|
END_ENTITY;
|
36
36
|
SUBTYPE_CONSTRAINT remark_subtype_constraint FOR remark_entity; END_SUBTYPE_CONSTRAINT;
|
@@ -74,8 +74,8 @@ RULE remark_rule FOR (remark_entity);
|
|
74
74
|
--"remark_constant" rule scope - rule constant
|
75
75
|
--"remark_variable" rule scope - rule variable
|
76
76
|
--"WR1" rule scope - rule where
|
77
|
-
--"IP1" rule scope - rule informal proposition
|
78
77
|
--"wr:WR1" rule scope - rule where, with prefix
|
78
|
+
--"IP1" rule scope - rule informal proposition
|
79
79
|
--"ip:IP1" rule scope - rule informal proposition, with prefix
|
80
80
|
END_RULE;
|
81
81
|
PROCEDURE remark_procedure(remark_parameter : STRING);
|
@@ -102,8 +102,8 @@ END_PROCEDURE;
|
|
102
102
|
--"remark_constant" schema scope - constant
|
103
103
|
--"remark_type" schema scope - type
|
104
104
|
--"remark_type.WR1" schema scope - type where
|
105
|
-
--"remark_type.IP1" schema scope - type informal proposition
|
106
105
|
--"remark_type.wr:WR1" schema scope - type where, with prefix
|
106
|
+
--"remark_type.IP1" schema scope - type informal proposition
|
107
107
|
--"remark_type.ip:IP1" schema scope - type informal proposition, with prefix
|
108
108
|
--"remark_type.remark_enumeration_item" schema scope - enumeration item
|
109
109
|
--"remark_enumeration_item" schema scope - enumeration item, on the same level as the type
|
@@ -113,8 +113,8 @@ END_PROCEDURE;
|
|
113
113
|
--"remark_entity.remark_inverse_attribute" schema scope - entity inverse attribute
|
114
114
|
--"remark_entity.UR1" schema scope - entity unique
|
115
115
|
--"remark_entity.WR1" schema scope - entity where
|
116
|
-
--"remark_entity.IP1" schema scope - entity informal proposition
|
117
116
|
--"remark_entity.wr:WR1" schema scope - entity where, with prefix
|
117
|
+
--"remark_entity.IP1" schema scope - entity informal proposition
|
118
118
|
--"remark_entity.ip:IP1" schema scope - entity informal proposition, with prefix
|
119
119
|
--"remark_subtype_constraint" schema scope - subtype constraint
|
120
120
|
--"remark_function" schema scope - function
|
@@ -131,8 +131,8 @@ END_PROCEDURE;
|
|
131
131
|
--"remark_rule.remark_constant" schema scope - rule constant
|
132
132
|
--"remark_rule.remark_variable" schema scope - rule variable
|
133
133
|
--"remark_rule.WR1" schema scope - rule where
|
134
|
-
--"remark_rule.IP1" schema scope - rule informal proposition
|
135
134
|
--"remark_rule.wr:WR1" schema scope - rule where, with prefix
|
135
|
+
--"remark_rule.IP1" schema scope - rule informal proposition
|
136
136
|
--"remark_rule.ip:IP1" schema scope - rule informal proposition, with prefix
|
137
137
|
--"remark_procedure" schema scope - procedure
|
138
138
|
--"remark_procedure.remark_parameter" schema scope - procedure parameter
|
@@ -141,6 +141,7 @@ END_PROCEDURE;
|
|
141
141
|
--"remark_procedure.remark_enumeration_item" schema scope - procedure enumeration item, on the same level as the type
|
142
142
|
--"remark_procedure.remark_constant" schema scope - procedure constant
|
143
143
|
--"remark_procedure.remark_variable" schema scope - procedure variable
|
144
|
+
--"remark_item" schema scope - schema remark item
|
144
145
|
|
145
146
|
END_SCHEMA;
|
146
147
|
|
@@ -148,8 +149,8 @@ END_SCHEMA;
|
|
148
149
|
--"remark_schema.remark_constant" universal scope - constant
|
149
150
|
--"remark_schema.remark_type" universal scope - type
|
150
151
|
--"remark_schema.remark_type.WR1" universal scope - type where
|
151
|
-
--"remark_schema.remark_type.IP1" universal scope - type informal proposition
|
152
152
|
--"remark_schema.remark_type.wr:WR1" universal scope - type where, with prefix
|
153
|
+
--"remark_schema.remark_type.IP1" universal scope - type informal proposition
|
153
154
|
--"remark_schema.remark_type.ip:IP1" universal scope - type informal proposition, with prefix
|
154
155
|
--"remark_schema.remark_type.remark_enumeration_item" universal scope - enumeration item
|
155
156
|
--"remark_schema.remark_enumeration_item" universal scope - enumeration item, on the same level as the type
|
@@ -159,8 +160,8 @@ END_SCHEMA;
|
|
159
160
|
--"remark_schema.remark_entity.remark_inverse_attribute" universal scope - entity inverse attribute
|
160
161
|
--"remark_schema.remark_entity.UR1" universal scope - entity unique
|
161
162
|
--"remark_schema.remark_entity.WR1" universal scope - entity where
|
162
|
-
--"remark_schema.remark_entity.IP1" universal scope - entity informal proposition
|
163
163
|
--"remark_schema.remark_entity.wr:WR1" universal scope - entity where, with prefix
|
164
|
+
--"remark_schema.remark_entity.IP1" universal scope - entity informal proposition
|
164
165
|
--"remark_schema.remark_entity.ip:IP1" universal scope - entity informal proposition, with prefix
|
165
166
|
--"remark_schema.remark_subtype_constraint" universal scope - subtype constraint
|
166
167
|
--"remark_schema.remark_function" universal scope - function
|
@@ -177,8 +178,8 @@ END_SCHEMA;
|
|
177
178
|
--"remark_schema.remark_rule.remark_constant" universal scope - rule constant
|
178
179
|
--"remark_schema.remark_rule.remark_variable" universal scope - rule variable
|
179
180
|
--"remark_schema.remark_rule.WR1" universal scope - rule where
|
180
|
-
--"remark_schema.remark_rule.IP1" universal scope - rule informal proposition
|
181
181
|
--"remark_schema.remark_rule.wr:WR1" universal scope - rule where, with prefix
|
182
|
+
--"remark_schema.remark_rule.IP1" universal scope - rule informal proposition
|
182
183
|
--"remark_schema.remark_rule.ip:IP1" universal scope - rule informal proposition, with prefix
|
183
184
|
--"remark_schema.remark_procedure" universal scope - procedure
|
184
185
|
--"remark_schema.remark_procedure.remark_parameter" universal scope - procedure parameter
|
@@ -186,4 +187,5 @@ END_SCHEMA;
|
|
186
187
|
--"remark_schema.remark_procedure.remark_type.remark_enumeration_item" universal scope - procedure enumeration item
|
187
188
|
--"remark_schema.remark_procedure.remark_enumeration_item" universal scope - procedure enumeration item, on the same level as the type
|
188
189
|
--"remark_schema.remark_procedure.remark_constant" universal scope - procedure constant
|
189
|
-
--"remark_schema.remark_procedure.remark_variable" universal scope - procedure variable
|
190
|
+
--"remark_schema.remark_procedure.remark_variable" universal scope - procedure variable
|
191
|
+
--"remark_schema.remark_item" universal scope - schema remark item
|
@@ -13,6 +13,12 @@ schemas:
|
|
13
13
|
- 'UTF8 test: Příliš žluťoučký kůň úpěl ďábelské ódy.'
|
14
14
|
- universal scope - schema before
|
15
15
|
- universal scope - schema
|
16
|
+
remark_items:
|
17
|
+
- _class: Expressir::Model::RemarkItem
|
18
|
+
id: remark_item
|
19
|
+
remarks:
|
20
|
+
- schema scope - schema remark item
|
21
|
+
- universal scope - schema remark item
|
16
22
|
constants:
|
17
23
|
- _class: Expressir::Model::Constant
|
18
24
|
id: remark_constant
|
@@ -54,7 +60,7 @@ schemas:
|
|
54
60
|
_class: Expressir::Model::Literals::Logical
|
55
61
|
value: :TRUE
|
56
62
|
informal_propositions:
|
57
|
-
- _class: Expressir::Model::
|
63
|
+
- _class: Expressir::Model::RemarkItem
|
58
64
|
id: IP1
|
59
65
|
remarks:
|
60
66
|
- type scope - type informal proposition
|
@@ -128,7 +134,7 @@ schemas:
|
|
128
134
|
_class: Expressir::Model::Literals::Logical
|
129
135
|
value: :TRUE
|
130
136
|
informal_propositions:
|
131
|
-
- _class: Expressir::Model::
|
137
|
+
- _class: Expressir::Model::RemarkItem
|
132
138
|
id: IP1
|
133
139
|
remarks:
|
134
140
|
- entity scope - entity informal proposition
|
@@ -341,7 +347,7 @@ schemas:
|
|
341
347
|
_class: Expressir::Model::Literals::Logical
|
342
348
|
value: :TRUE
|
343
349
|
informal_propositions:
|
344
|
-
- _class: Expressir::Model::
|
350
|
+
- _class: Expressir::Model::RemarkItem
|
345
351
|
id: IP1
|
346
352
|
remarks:
|
347
353
|
- rule scope - rule informal proposition
|
@@ -222,4 +222,6 @@ several physical lines.
|
|
222
222
|
--"remark_schema.remark_procedure.remark_constant" universal scope - procedure constant
|
223
223
|
--"remark_schema.remark_procedure.remark_variable" procedure scope - procedure variable
|
224
224
|
--"remark_schema.remark_procedure.remark_variable" schema scope - procedure variable
|
225
|
-
--"remark_schema.remark_procedure.remark_variable" universal scope - procedure variable
|
225
|
+
--"remark_schema.remark_procedure.remark_variable" universal scope - procedure variable
|
226
|
+
--"remark_schema.remark_item" schema scope - schema remark item
|
227
|
+
--"remark_schema.remark_item" universal scope - schema remark item
|
@@ -82,8 +82,8 @@ RSpec.describe Expressir::Model::ModelElement do
|
|
82
82
|
expect(repo.find('remark_schema.remark_type')).to be_instance_of(Expressir::Model::Type)
|
83
83
|
expect(repo.find('remark_schema.remark_type.WR1')).to be_instance_of(Expressir::Model::Where)
|
84
84
|
expect(repo.find('remark_schema.remark_type.wr:WR1')).to be_instance_of(Expressir::Model::Where)
|
85
|
-
expect(repo.find('remark_schema.remark_type.IP1')).to be_instance_of(Expressir::Model::
|
86
|
-
expect(repo.find('remark_schema.remark_type.ip:IP1')).to be_instance_of(Expressir::Model::
|
85
|
+
expect(repo.find('remark_schema.remark_type.IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
86
|
+
expect(repo.find('remark_schema.remark_type.ip:IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
87
87
|
expect(repo.find('remark_schema.remark_enumeration_item')).to be_instance_of(Expressir::Model::EnumerationItem)
|
88
88
|
expect(repo.find('remark_schema.remark_entity')).to be_instance_of(Expressir::Model::Entity)
|
89
89
|
expect(repo.find('remark_schema.remark_entity.remark_attribute')).to be_instance_of(Expressir::Model::Attribute)
|
@@ -92,8 +92,8 @@ RSpec.describe Expressir::Model::ModelElement do
|
|
92
92
|
expect(repo.find('remark_schema.remark_entity.UR1')).to be_instance_of(Expressir::Model::Unique)
|
93
93
|
expect(repo.find('remark_schema.remark_entity.WR1')).to be_instance_of(Expressir::Model::Where)
|
94
94
|
expect(repo.find('remark_schema.remark_entity.wr:WR1')).to be_instance_of(Expressir::Model::Where)
|
95
|
-
expect(repo.find('remark_schema.remark_entity.IP1')).to be_instance_of(Expressir::Model::
|
96
|
-
expect(repo.find('remark_schema.remark_entity.ip:IP1')).to be_instance_of(Expressir::Model::
|
95
|
+
expect(repo.find('remark_schema.remark_entity.IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
96
|
+
expect(repo.find('remark_schema.remark_entity.ip:IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
97
97
|
expect(repo.find('remark_schema.remark_subtype_constraint')).to be_instance_of(Expressir::Model::SubtypeConstraint)
|
98
98
|
expect(repo.find('remark_schema.remark_function')).to be_instance_of(Expressir::Model::Function)
|
99
99
|
expect(repo.find('remark_schema.remark_function.remark_parameter')).to be_instance_of(Expressir::Model::Parameter)
|
@@ -114,8 +114,8 @@ RSpec.describe Expressir::Model::ModelElement do
|
|
114
114
|
expect(repo.find('remark_schema.remark_rule.remark_variable')).to be_instance_of(Expressir::Model::Variable)
|
115
115
|
expect(repo.find('remark_schema.remark_rule.WR1')).to be_instance_of(Expressir::Model::Where)
|
116
116
|
expect(repo.find('remark_schema.remark_rule.wr:WR1')).to be_instance_of(Expressir::Model::Where)
|
117
|
-
expect(repo.find('remark_schema.remark_rule.IP1')).to be_instance_of(Expressir::Model::
|
118
|
-
expect(repo.find('remark_schema.remark_rule.ip:IP1')).to be_instance_of(Expressir::Model::
|
117
|
+
expect(repo.find('remark_schema.remark_rule.IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
118
|
+
expect(repo.find('remark_schema.remark_rule.ip:IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
119
119
|
|
120
120
|
# schema scope
|
121
121
|
schema = repo.schemas.first
|
@@ -123,8 +123,8 @@ RSpec.describe Expressir::Model::ModelElement do
|
|
123
123
|
expect(schema.find('remark_type')).to be_instance_of(Expressir::Model::Type)
|
124
124
|
expect(schema.find('remark_type.WR1')).to be_instance_of(Expressir::Model::Where)
|
125
125
|
expect(schema.find('remark_type.wr:WR1')).to be_instance_of(Expressir::Model::Where)
|
126
|
-
expect(schema.find('remark_type.IP1')).to be_instance_of(Expressir::Model::
|
127
|
-
expect(schema.find('remark_type.ip:IP1')).to be_instance_of(Expressir::Model::
|
126
|
+
expect(schema.find('remark_type.IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
127
|
+
expect(schema.find('remark_type.ip:IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
128
128
|
expect(schema.find('remark_enumeration_item')).to be_instance_of(Expressir::Model::EnumerationItem)
|
129
129
|
expect(schema.find('remark_entity')).to be_instance_of(Expressir::Model::Entity)
|
130
130
|
expect(schema.find('remark_entity.remark_attribute')).to be_instance_of(Expressir::Model::Attribute)
|
@@ -133,8 +133,8 @@ RSpec.describe Expressir::Model::ModelElement do
|
|
133
133
|
expect(schema.find('remark_entity.UR1')).to be_instance_of(Expressir::Model::Unique)
|
134
134
|
expect(schema.find('remark_entity.WR1')).to be_instance_of(Expressir::Model::Where)
|
135
135
|
expect(schema.find('remark_entity.wr:WR1')).to be_instance_of(Expressir::Model::Where)
|
136
|
-
expect(schema.find('remark_entity.IP1')).to be_instance_of(Expressir::Model::
|
137
|
-
expect(schema.find('remark_entity.ip:IP1')).to be_instance_of(Expressir::Model::
|
136
|
+
expect(schema.find('remark_entity.IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
137
|
+
expect(schema.find('remark_entity.ip:IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
138
138
|
expect(schema.find('remark_subtype_constraint')).to be_instance_of(Expressir::Model::SubtypeConstraint)
|
139
139
|
expect(schema.find('remark_function')).to be_instance_of(Expressir::Model::Function)
|
140
140
|
expect(schema.find('remark_function.remark_parameter')).to be_instance_of(Expressir::Model::Parameter)
|
@@ -155,15 +155,15 @@ RSpec.describe Expressir::Model::ModelElement do
|
|
155
155
|
expect(schema.find('remark_rule.remark_variable')).to be_instance_of(Expressir::Model::Variable)
|
156
156
|
expect(schema.find('remark_rule.WR1')).to be_instance_of(Expressir::Model::Where)
|
157
157
|
expect(schema.find('remark_rule.wr:WR1')).to be_instance_of(Expressir::Model::Where)
|
158
|
-
expect(schema.find('remark_rule.IP1')).to be_instance_of(Expressir::Model::
|
159
|
-
expect(schema.find('remark_rule.ip:IP1')).to be_instance_of(Expressir::Model::
|
158
|
+
expect(schema.find('remark_rule.IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
159
|
+
expect(schema.find('remark_rule.ip:IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
160
160
|
|
161
161
|
# type scope
|
162
162
|
type = schema.types.first
|
163
163
|
expect(type.find('WR1')).to be_instance_of(Expressir::Model::Where)
|
164
164
|
expect(type.find('wr:WR1')).to be_instance_of(Expressir::Model::Where)
|
165
|
-
expect(type.find('IP1')).to be_instance_of(Expressir::Model::
|
166
|
-
expect(type.find('ip:IP1')).to be_instance_of(Expressir::Model::
|
165
|
+
expect(type.find('IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
166
|
+
expect(type.find('ip:IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
167
167
|
|
168
168
|
# entity scope
|
169
169
|
entity = schema.entities.first
|
@@ -173,8 +173,8 @@ RSpec.describe Expressir::Model::ModelElement do
|
|
173
173
|
expect(entity.find('UR1')).to be_instance_of(Expressir::Model::Unique)
|
174
174
|
expect(entity.find('WR1')).to be_instance_of(Expressir::Model::Where)
|
175
175
|
expect(entity.find('wr:WR1')).to be_instance_of(Expressir::Model::Where)
|
176
|
-
expect(entity.find('IP1')).to be_instance_of(Expressir::Model::
|
177
|
-
expect(entity.find('ip:IP1')).to be_instance_of(Expressir::Model::
|
176
|
+
expect(entity.find('IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
177
|
+
expect(entity.find('ip:IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
178
178
|
|
179
179
|
# function scope
|
180
180
|
function = schema.functions.first
|
@@ -200,15 +200,15 @@ RSpec.describe Expressir::Model::ModelElement do
|
|
200
200
|
expect(rule.find('remark_variable')).to be_instance_of(Expressir::Model::Variable)
|
201
201
|
expect(rule.find('WR1')).to be_instance_of(Expressir::Model::Where)
|
202
202
|
expect(rule.find('wr:WR1')).to be_instance_of(Expressir::Model::Where)
|
203
|
-
expect(rule.find('IP1')).to be_instance_of(Expressir::Model::
|
204
|
-
expect(rule.find('ip:IP1')).to be_instance_of(Expressir::Model::
|
203
|
+
expect(rule.find('IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
204
|
+
expect(rule.find('ip:IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
205
205
|
|
206
206
|
# retry search in parent scope
|
207
207
|
expect(entity.find('remark_type')).to be_instance_of(Expressir::Model::Type)
|
208
208
|
expect(entity.find('remark_type.WR1')).to be_instance_of(Expressir::Model::Where)
|
209
209
|
expect(entity.find('remark_type.wr:WR1')).to be_instance_of(Expressir::Model::Where)
|
210
|
-
expect(entity.find('remark_type.IP1')).to be_instance_of(Expressir::Model::
|
211
|
-
expect(entity.find('remark_type.ip:IP1')).to be_instance_of(Expressir::Model::
|
210
|
+
expect(entity.find('remark_type.IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
211
|
+
expect(entity.find('remark_type.ip:IP1')).to be_instance_of(Expressir::Model::RemarkItem)
|
212
212
|
end
|
213
213
|
end
|
214
214
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: expressir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.24
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -242,7 +242,6 @@ files:
|
|
242
242
|
- lib/expressir/model/expressions/unary_expression.rb
|
243
243
|
- lib/expressir/model/function.rb
|
244
244
|
- lib/expressir/model/identifier.rb
|
245
|
-
- lib/expressir/model/informal_proposition.rb
|
246
245
|
- lib/expressir/model/interface.rb
|
247
246
|
- lib/expressir/model/interface_item.rb
|
248
247
|
- lib/expressir/model/interfaced_item.rb
|
@@ -254,6 +253,7 @@ files:
|
|
254
253
|
- lib/expressir/model/model_element.rb
|
255
254
|
- lib/expressir/model/parameter.rb
|
256
255
|
- lib/expressir/model/procedure.rb
|
256
|
+
- lib/expressir/model/remark_item.rb
|
257
257
|
- lib/expressir/model/repository.rb
|
258
258
|
- lib/expressir/model/rule.rb
|
259
259
|
- lib/expressir/model/schema.rb
|