expressir 2.0.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +8 -13
- data/.rubocop_todo.yml +78 -1
- data/Gemfile +1 -2
- data/README.adoc +46 -0
- data/exe/{format-test → expressir-format-test} +3 -2
- data/expressir.gemspec +3 -4
- data/lib/expressir/express/cache.rb +6 -6
- data/lib/expressir/express/formatter.rb +754 -741
- data/lib/expressir/express/hyperlink_formatter.rb +2 -2
- data/lib/expressir/express/model_visitor.rb +1 -1
- data/lib/expressir/express/parser.rb +224 -100
- data/lib/expressir/express/resolve_references_model_visitor.rb +6 -6
- data/lib/expressir/express/schema_head_formatter.rb +3 -3
- data/lib/expressir/express/visitor.rb +353 -344
- data/lib/expressir/liquid/cache_drop.rb +20 -0
- data/lib/expressir/liquid/data_type_drop.rb +8 -0
- data/lib/expressir/liquid/data_types/aggregate_drop.rb +21 -0
- data/lib/expressir/liquid/data_types/array_drop.rb +34 -0
- data/lib/expressir/liquid/data_types/bag_drop.rb +26 -0
- data/lib/expressir/liquid/data_types/binary_drop.rb +22 -0
- data/lib/expressir/liquid/data_types/boolean_drop.rb +10 -0
- data/lib/expressir/liquid/data_types/enumeration_drop.rb +30 -0
- data/lib/expressir/liquid/data_types/enumeration_item_drop.rb +17 -0
- data/lib/expressir/liquid/data_types/generic_drop.rb +17 -0
- data/lib/expressir/liquid/data_types/generic_entity_drop.rb +17 -0
- data/lib/expressir/liquid/data_types/integer_drop.rb +10 -0
- data/lib/expressir/liquid/data_types/list_drop.rb +30 -0
- data/lib/expressir/liquid/data_types/logical_drop.rb +10 -0
- data/lib/expressir/liquid/data_types/number_drop.rb +10 -0
- data/lib/expressir/liquid/data_types/real_drop.rb +18 -0
- data/lib/expressir/liquid/data_types/select_drop.rb +34 -0
- data/lib/expressir/liquid/data_types/set_drop.rb +26 -0
- data/lib/expressir/liquid/data_types/string_drop.rb +22 -0
- data/lib/expressir/liquid/declaration_drop.rb +8 -0
- data/lib/expressir/liquid/declarations/attribute_drop.rb +37 -0
- data/lib/expressir/liquid/declarations/constant_drop.rb +25 -0
- data/lib/expressir/liquid/declarations/entity_drop.rb +65 -0
- data/lib/expressir/liquid/declarations/function_drop.rb +93 -0
- data/lib/expressir/liquid/declarations/interface_drop.rb +30 -0
- data/lib/expressir/liquid/declarations/interface_item_drop.rb +22 -0
- data/lib/expressir/liquid/declarations/interfaced_item_drop.rb +34 -0
- data/lib/expressir/liquid/declarations/parameter_drop.rb +25 -0
- data/lib/expressir/liquid/declarations/procedure_drop.rb +89 -0
- data/lib/expressir/liquid/declarations/remark_item_drop.rb +22 -0
- data/lib/expressir/liquid/declarations/rule_drop.rb +105 -0
- data/lib/expressir/liquid/declarations/schema_drop.rb +91 -0
- data/lib/expressir/liquid/declarations/schema_version_drop.rb +26 -0
- data/lib/expressir/liquid/declarations/schema_version_item_drop.rb +22 -0
- data/lib/expressir/liquid/declarations/subtype_constraint_drop.rb +37 -0
- data/lib/expressir/liquid/declarations/type_drop.rb +37 -0
- data/lib/expressir/liquid/declarations/unique_rule_drop.rb +21 -0
- data/lib/expressir/liquid/declarations/variable_drop.rb +25 -0
- data/lib/expressir/liquid/declarations/where_rule_drop.rb +21 -0
- data/lib/expressir/liquid/expression_drop.rb +8 -0
- data/lib/expressir/liquid/expressions/aggregate_initializer_drop.rb +24 -0
- data/lib/expressir/liquid/expressions/aggregate_initializer_item_drop.rb +22 -0
- data/lib/expressir/liquid/expressions/binary_expression_drop.rb +26 -0
- data/lib/expressir/liquid/expressions/entity_constructor_drop.rb +26 -0
- data/lib/expressir/liquid/expressions/function_call_drop.rb +26 -0
- data/lib/expressir/liquid/expressions/interval_drop.rb +34 -0
- data/lib/expressir/liquid/expressions/query_expression_drop.rb +25 -0
- data/lib/expressir/liquid/expressions/unary_expression_drop.rb +22 -0
- data/lib/expressir/liquid/identifier_drop.rb +33 -0
- data/lib/expressir/liquid/literal_drop.rb +8 -0
- data/lib/expressir/liquid/literals/binary_drop.rb +18 -0
- data/lib/expressir/liquid/literals/integer_drop.rb +18 -0
- data/lib/expressir/liquid/literals/logical_drop.rb +18 -0
- data/lib/expressir/liquid/literals/real_drop.rb +18 -0
- data/lib/expressir/liquid/literals/string_drop.rb +22 -0
- data/lib/expressir/liquid/model_element_drop.rb +33 -0
- data/lib/expressir/liquid/reference_drop.rb +8 -0
- data/lib/expressir/liquid/references/attribute_reference_drop.rb +22 -0
- data/lib/expressir/liquid/references/group_reference_drop.rb +22 -0
- data/lib/expressir/liquid/references/index_reference_drop.rb +26 -0
- data/lib/expressir/liquid/references/simple_reference_drop.rb +22 -0
- data/lib/expressir/liquid/repository_drop.rb +22 -0
- data/lib/expressir/liquid/statement_drop.rb +8 -0
- data/lib/expressir/liquid/statements/alias_drop.rb +29 -0
- data/lib/expressir/liquid/statements/assignment_drop.rb +22 -0
- data/lib/expressir/liquid/statements/case_action_drop.rb +26 -0
- data/lib/expressir/liquid/statements/case_drop.rb +30 -0
- data/lib/expressir/liquid/statements/compound_drop.rb +22 -0
- data/lib/expressir/liquid/statements/escape_drop.rb +10 -0
- data/lib/expressir/liquid/statements/if_drop.rb +34 -0
- data/lib/expressir/liquid/statements/null_drop.rb +10 -0
- data/lib/expressir/liquid/statements/procedure_call_drop.rb +26 -0
- data/lib/expressir/liquid/statements/repeat_drop.rb +45 -0
- data/lib/expressir/liquid/statements/return_drop.rb +18 -0
- data/lib/expressir/liquid/statements/skip_drop.rb +10 -0
- data/lib/expressir/liquid/supertype_expression_drop.rb +8 -0
- data/lib/expressir/liquid/supertype_expressions/binary_supertype_expression_drop.rb +26 -0
- data/lib/expressir/liquid/supertype_expressions/oneof_supertype_expression_drop.rb +22 -0
- data/lib/expressir/liquid.rb +18 -0
- data/lib/expressir/model/cache.rb +3 -3
- data/lib/expressir/model/data_type.rb +1 -1
- data/lib/expressir/model/data_types/aggregate.rb +3 -3
- data/lib/expressir/model/data_types/array.rb +6 -6
- data/lib/expressir/model/data_types/bag.rb +4 -4
- data/lib/expressir/model/data_types/binary.rb +3 -3
- data/lib/expressir/model/data_types/boolean.rb +1 -1
- data/lib/expressir/model/data_types/enumeration.rb +4 -4
- data/lib/expressir/model/data_types/enumeration_item.rb +2 -2
- data/lib/expressir/model/data_types/generic.rb +2 -2
- data/lib/expressir/model/data_types/generic_entity.rb +2 -2
- data/lib/expressir/model/data_types/integer.rb +1 -1
- data/lib/expressir/model/data_types/list.rb +5 -5
- data/lib/expressir/model/data_types/logical.rb +1 -1
- data/lib/expressir/model/data_types/number.rb +1 -1
- data/lib/expressir/model/data_types/real.rb +2 -2
- data/lib/expressir/model/data_types/select.rb +5 -5
- data/lib/expressir/model/data_types/set.rb +4 -4
- data/lib/expressir/model/data_types/string.rb +3 -3
- data/lib/expressir/model/declaration.rb +1 -1
- data/lib/expressir/model/declarations/attribute.rb +7 -7
- data/lib/expressir/model/declarations/constant.rb +4 -4
- data/lib/expressir/model/declarations/entity.rb +9 -9
- data/lib/expressir/model/declarations/function.rb +13 -13
- data/lib/expressir/model/declarations/interface.rb +4 -4
- data/lib/expressir/model/declarations/interface_item.rb +3 -3
- data/lib/expressir/model/declarations/interfaced_item.rb +6 -6
- data/lib/expressir/model/declarations/parameter.rb +4 -4
- data/lib/expressir/model/declarations/procedure.rb +12 -12
- data/lib/expressir/model/declarations/remark_item.rb +3 -3
- data/lib/expressir/model/declarations/rule.rb +14 -14
- data/lib/expressir/model/declarations/schema.rb +18 -18
- data/lib/expressir/model/declarations/schema_version.rb +3 -3
- data/lib/expressir/model/declarations/schema_version_item.rb +3 -3
- data/lib/expressir/model/declarations/subtype_constraint.rb +6 -6
- data/lib/expressir/model/declarations/type.rb +5 -5
- data/lib/expressir/model/declarations/unique_rule.rb +3 -3
- data/lib/expressir/model/declarations/variable.rb +4 -4
- data/lib/expressir/model/declarations/where_rule.rb +3 -3
- data/lib/expressir/model/expression.rb +1 -1
- data/lib/expressir/model/expressions/aggregate_initializer.rb +2 -2
- data/lib/expressir/model/expressions/aggregate_initializer_item.rb +3 -3
- data/lib/expressir/model/expressions/binary_expression.rb +12 -5
- data/lib/expressir/model/expressions/entity_constructor.rb +3 -3
- data/lib/expressir/model/expressions/function_call.rb +3 -3
- data/lib/expressir/model/expressions/interval.rb +6 -6
- data/lib/expressir/model/expressions/query_expression.rb +4 -4
- data/lib/expressir/model/expressions/unary_expression.rb +3 -3
- data/lib/expressir/model/identifier.rb +5 -5
- data/lib/expressir/model/literal.rb +1 -1
- data/lib/expressir/model/literals/binary.rb +2 -2
- data/lib/expressir/model/literals/integer.rb +2 -2
- data/lib/expressir/model/literals/logical.rb +2 -2
- data/lib/expressir/model/literals/real.rb +2 -2
- data/lib/expressir/model/literals/string.rb +3 -3
- data/lib/expressir/model/model_element.rb +39 -38
- data/lib/expressir/model/reference.rb +1 -1
- data/lib/expressir/model/references/attribute_reference.rb +3 -3
- data/lib/expressir/model/references/group_reference.rb +3 -3
- data/lib/expressir/model/references/index_reference.rb +4 -4
- data/lib/expressir/model/references/simple_reference.rb +3 -3
- data/lib/expressir/model/repository.rb +3 -4
- data/lib/expressir/model/statement.rb +1 -1
- data/lib/expressir/model/statements/alias.rb +4 -4
- data/lib/expressir/model/statements/assignment.rb +3 -3
- data/lib/expressir/model/statements/case.rb +4 -4
- data/lib/expressir/model/statements/case_action.rb +3 -3
- data/lib/expressir/model/statements/compound.rb +2 -2
- data/lib/expressir/model/statements/escape.rb +1 -1
- data/lib/expressir/model/statements/if.rb +4 -4
- data/lib/expressir/model/statements/null.rb +1 -1
- data/lib/expressir/model/statements/procedure_call.rb +3 -3
- data/lib/expressir/model/statements/repeat.rb +8 -8
- data/lib/expressir/model/statements/return.rb +2 -2
- data/lib/expressir/model/statements/skip.rb +1 -1
- data/lib/expressir/model/supertype_expression.rb +1 -1
- data/lib/expressir/model/supertype_expressions/binary_supertype_expression.rb +4 -4
- data/lib/expressir/model/supertype_expressions/oneof_supertype_expression.rb +2 -2
- data/lib/expressir/version.rb +1 -1
- data/lib/expressir.rb +2 -0
- metadata +103 -13
- /data/exe/{format → expressir-format} +0 -0
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: expressir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: liquid
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: parslet
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,14 +38,25 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: thor
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.0'
|
41
55
|
description: Expressir (“EXPRESS in Ruby”) is a Ruby parser for EXPRESS and a set
|
42
56
|
of tools for accessing EXPRESS data models.
|
43
57
|
email:
|
44
58
|
- open.source@ribose.com
|
45
|
-
executables:
|
46
|
-
- expressir
|
47
|
-
- format
|
48
|
-
- format-test
|
59
|
+
executables: []
|
49
60
|
extensions: []
|
50
61
|
extra_rdoc_files: []
|
51
62
|
files:
|
@@ -66,8 +77,8 @@ files:
|
|
66
77
|
- bin/setup
|
67
78
|
- docs/development.md
|
68
79
|
- exe/expressir
|
69
|
-
- exe/format
|
70
|
-
- exe/format-test
|
80
|
+
- exe/expressir-format
|
81
|
+
- exe/expressir-format-test
|
71
82
|
- expressir.gemspec
|
72
83
|
- expressir_wrapped.txt
|
73
84
|
- lib/expressir.rb
|
@@ -81,6 +92,85 @@ files:
|
|
81
92
|
- lib/expressir/express/resolve_references_model_visitor.rb
|
82
93
|
- lib/expressir/express/schema_head_formatter.rb
|
83
94
|
- lib/expressir/express/visitor.rb
|
95
|
+
- lib/expressir/liquid.rb
|
96
|
+
- lib/expressir/liquid/cache_drop.rb
|
97
|
+
- lib/expressir/liquid/data_type_drop.rb
|
98
|
+
- lib/expressir/liquid/data_types/aggregate_drop.rb
|
99
|
+
- lib/expressir/liquid/data_types/array_drop.rb
|
100
|
+
- lib/expressir/liquid/data_types/bag_drop.rb
|
101
|
+
- lib/expressir/liquid/data_types/binary_drop.rb
|
102
|
+
- lib/expressir/liquid/data_types/boolean_drop.rb
|
103
|
+
- lib/expressir/liquid/data_types/enumeration_drop.rb
|
104
|
+
- lib/expressir/liquid/data_types/enumeration_item_drop.rb
|
105
|
+
- lib/expressir/liquid/data_types/generic_drop.rb
|
106
|
+
- lib/expressir/liquid/data_types/generic_entity_drop.rb
|
107
|
+
- lib/expressir/liquid/data_types/integer_drop.rb
|
108
|
+
- lib/expressir/liquid/data_types/list_drop.rb
|
109
|
+
- lib/expressir/liquid/data_types/logical_drop.rb
|
110
|
+
- lib/expressir/liquid/data_types/number_drop.rb
|
111
|
+
- lib/expressir/liquid/data_types/real_drop.rb
|
112
|
+
- lib/expressir/liquid/data_types/select_drop.rb
|
113
|
+
- lib/expressir/liquid/data_types/set_drop.rb
|
114
|
+
- lib/expressir/liquid/data_types/string_drop.rb
|
115
|
+
- lib/expressir/liquid/declaration_drop.rb
|
116
|
+
- lib/expressir/liquid/declarations/attribute_drop.rb
|
117
|
+
- lib/expressir/liquid/declarations/constant_drop.rb
|
118
|
+
- lib/expressir/liquid/declarations/entity_drop.rb
|
119
|
+
- lib/expressir/liquid/declarations/function_drop.rb
|
120
|
+
- lib/expressir/liquid/declarations/interface_drop.rb
|
121
|
+
- lib/expressir/liquid/declarations/interface_item_drop.rb
|
122
|
+
- lib/expressir/liquid/declarations/interfaced_item_drop.rb
|
123
|
+
- lib/expressir/liquid/declarations/parameter_drop.rb
|
124
|
+
- lib/expressir/liquid/declarations/procedure_drop.rb
|
125
|
+
- lib/expressir/liquid/declarations/remark_item_drop.rb
|
126
|
+
- lib/expressir/liquid/declarations/rule_drop.rb
|
127
|
+
- lib/expressir/liquid/declarations/schema_drop.rb
|
128
|
+
- lib/expressir/liquid/declarations/schema_version_drop.rb
|
129
|
+
- lib/expressir/liquid/declarations/schema_version_item_drop.rb
|
130
|
+
- lib/expressir/liquid/declarations/subtype_constraint_drop.rb
|
131
|
+
- lib/expressir/liquid/declarations/type_drop.rb
|
132
|
+
- lib/expressir/liquid/declarations/unique_rule_drop.rb
|
133
|
+
- lib/expressir/liquid/declarations/variable_drop.rb
|
134
|
+
- lib/expressir/liquid/declarations/where_rule_drop.rb
|
135
|
+
- lib/expressir/liquid/expression_drop.rb
|
136
|
+
- lib/expressir/liquid/expressions/aggregate_initializer_drop.rb
|
137
|
+
- lib/expressir/liquid/expressions/aggregate_initializer_item_drop.rb
|
138
|
+
- lib/expressir/liquid/expressions/binary_expression_drop.rb
|
139
|
+
- lib/expressir/liquid/expressions/entity_constructor_drop.rb
|
140
|
+
- lib/expressir/liquid/expressions/function_call_drop.rb
|
141
|
+
- lib/expressir/liquid/expressions/interval_drop.rb
|
142
|
+
- lib/expressir/liquid/expressions/query_expression_drop.rb
|
143
|
+
- lib/expressir/liquid/expressions/unary_expression_drop.rb
|
144
|
+
- lib/expressir/liquid/identifier_drop.rb
|
145
|
+
- lib/expressir/liquid/literal_drop.rb
|
146
|
+
- lib/expressir/liquid/literals/binary_drop.rb
|
147
|
+
- lib/expressir/liquid/literals/integer_drop.rb
|
148
|
+
- lib/expressir/liquid/literals/logical_drop.rb
|
149
|
+
- lib/expressir/liquid/literals/real_drop.rb
|
150
|
+
- lib/expressir/liquid/literals/string_drop.rb
|
151
|
+
- lib/expressir/liquid/model_element_drop.rb
|
152
|
+
- lib/expressir/liquid/reference_drop.rb
|
153
|
+
- lib/expressir/liquid/references/attribute_reference_drop.rb
|
154
|
+
- lib/expressir/liquid/references/group_reference_drop.rb
|
155
|
+
- lib/expressir/liquid/references/index_reference_drop.rb
|
156
|
+
- lib/expressir/liquid/references/simple_reference_drop.rb
|
157
|
+
- lib/expressir/liquid/repository_drop.rb
|
158
|
+
- lib/expressir/liquid/statement_drop.rb
|
159
|
+
- lib/expressir/liquid/statements/alias_drop.rb
|
160
|
+
- lib/expressir/liquid/statements/assignment_drop.rb
|
161
|
+
- lib/expressir/liquid/statements/case_action_drop.rb
|
162
|
+
- lib/expressir/liquid/statements/case_drop.rb
|
163
|
+
- lib/expressir/liquid/statements/compound_drop.rb
|
164
|
+
- lib/expressir/liquid/statements/escape_drop.rb
|
165
|
+
- lib/expressir/liquid/statements/if_drop.rb
|
166
|
+
- lib/expressir/liquid/statements/null_drop.rb
|
167
|
+
- lib/expressir/liquid/statements/procedure_call_drop.rb
|
168
|
+
- lib/expressir/liquid/statements/repeat_drop.rb
|
169
|
+
- lib/expressir/liquid/statements/return_drop.rb
|
170
|
+
- lib/expressir/liquid/statements/skip_drop.rb
|
171
|
+
- lib/expressir/liquid/supertype_expression_drop.rb
|
172
|
+
- lib/expressir/liquid/supertype_expressions/binary_supertype_expression_drop.rb
|
173
|
+
- lib/expressir/liquid/supertype_expressions/oneof_supertype_expression_drop.rb
|
84
174
|
- lib/expressir/model.rb
|
85
175
|
- lib/expressir/model/cache.rb
|
86
176
|
- lib/expressir/model/data_type.rb
|
File without changes
|