bel_parser 1.0.0.alpha.7 → 1.0.0.alpha.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gemspec +1 -1
- data/VERSION +1 -1
- data/bin/bel2_validator +7 -4
- data/lib/bel_parser/ast_filter.rb +2 -2
- data/lib/bel_parser/ast_generator.rb +11 -18
- data/lib/bel_parser/language/expression_validator.rb +8 -0
- data/lib/bel_parser/language/quoting.rb +19 -22
- data/lib/bel_parser/language/semantics/deeply_nested_statement.rb +65 -0
- data/lib/bel_parser/language/semantics/function_deprecation.rb +36 -0
- data/lib/bel_parser/language/semantics/list_function_subject.rb +45 -0
- data/lib/bel_parser/language/semantics/relationship_deprecation.rb +36 -0
- data/lib/bel_parser/language/semantics/signature_mapping.rb +30 -16
- data/lib/bel_parser/language/semantics.rb +7 -2
- data/lib/bel_parser/language/semantics_ast.rb +22 -12
- data/lib/bel_parser/language/semantics_function.rb +4 -1
- data/lib/bel_parser/language/semantics_result.rb +1 -0
- data/lib/bel_parser/language/semantics_warning.rb +2 -0
- data/lib/bel_parser/language/signature.rb +3 -3
- data/lib/bel_parser/language/syntax/invalid_function.rb +2 -2
- data/lib/bel_parser/language/syntax/invalid_relationship.rb +2 -2
- data/lib/bel_parser/language/syntax/undefined_namespace.rb +0 -1
- data/lib/bel_parser/language/syntax.rb +7 -2
- data/lib/bel_parser/language/syntax_error.rb +2 -0
- data/lib/bel_parser/language/syntax_function.rb +4 -1
- data/lib/bel_parser/language/syntax_result.rb +1 -0
- data/lib/bel_parser/language/syntax_warning.rb +2 -0
- data/lib/bel_parser/language/version1_0/functions/abundance.rb +14 -15
- data/lib/bel_parser/language/version1_0/functions/biological_process.rb +14 -15
- data/lib/bel_parser/language/version1_0/functions/catalytic_activity.rb +25 -21
- data/lib/bel_parser/language/version1_0/functions/cell_secretion.rb +15 -12
- data/lib/bel_parser/language/version1_0/functions/cell_surface_expression.rb +15 -12
- data/lib/bel_parser/language/version1_0/functions/chaperone_activity.rb +25 -21
- data/lib/bel_parser/language/version1_0/functions/complex_abundance.rb +26 -25
- data/lib/bel_parser/language/version1_0/functions/composite_abundance.rb +13 -12
- data/lib/bel_parser/language/version1_0/functions/degradation.rb +15 -12
- data/lib/bel_parser/language/version1_0/functions/fusion.rb +135 -129
- data/lib/bel_parser/language/version1_0/functions/gene_abundance.rb +34 -34
- data/lib/bel_parser/language/version1_0/functions/gtp_bound_activity.rb +24 -21
- data/lib/bel_parser/language/version1_0/functions/kinase_activity.rb +25 -21
- data/lib/bel_parser/language/version1_0/functions/list.rb +24 -24
- data/lib/bel_parser/language/version1_0/functions/micro_rna_abundance.rb +18 -17
- data/lib/bel_parser/language/version1_0/functions/molecular_activity.rb +14 -12
- data/lib/bel_parser/language/version1_0/functions/pathology.rb +14 -15
- data/lib/bel_parser/language/version1_0/functions/peptidase_activity.rb +23 -21
- data/lib/bel_parser/language/version1_0/functions/phosphatase_activity.rb +23 -21
- data/lib/bel_parser/language/version1_0/functions/products.rb +9 -10
- data/lib/bel_parser/language/version1_0/functions/protein_abundance.rb +94 -91
- data/lib/bel_parser/language/version1_0/functions/protein_modification.rb +60 -57
- data/lib/bel_parser/language/version1_0/functions/reactants.rb +9 -10
- data/lib/bel_parser/language/version1_0/functions/reaction.rb +18 -17
- data/lib/bel_parser/language/version1_0/functions/ribosylation_activity.rb +25 -21
- data/lib/bel_parser/language/version1_0/functions/rna_abundance.rb +34 -34
- data/lib/bel_parser/language/version1_0/functions/substitution.rb +29 -28
- data/lib/bel_parser/language/version1_0/functions/transcriptional_activity.rb +25 -21
- data/lib/bel_parser/language/version1_0/functions/translocation.rb +33 -32
- data/lib/bel_parser/language/version1_0/functions/transport_activity.rb +26 -21
- data/lib/bel_parser/language/version1_0/functions/truncation.rb +15 -14
- data/lib/bel_parser/language/version1_0/relationships/acts_in.rb +16 -2
- data/lib/bel_parser/language/version1_0/relationships/analogous.rb +8 -2
- data/lib/bel_parser/language/version1_0/relationships/association.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/biomarker_for.rb +9 -2
- data/lib/bel_parser/language/version1_0/relationships/causes_no_change.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/decreases.rb +22 -2
- data/lib/bel_parser/language/version1_0/relationships/directly_decreases.rb +11 -2
- data/lib/bel_parser/language/version1_0/relationships/directly_increases.rb +11 -2
- data/lib/bel_parser/language/version1_0/relationships/has_component.rb +25 -2
- data/lib/bel_parser/language/version1_0/relationships/has_components.rb +20 -2
- data/lib/bel_parser/language/version1_0/relationships/has_member.rb +15 -2
- data/lib/bel_parser/language/version1_0/relationships/has_members.rb +20 -2
- data/lib/bel_parser/language/version1_0/relationships/has_modification.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/has_product.rb +15 -2
- data/lib/bel_parser/language/version1_0/relationships/has_variant.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/includes.rb +18 -2
- data/lib/bel_parser/language/version1_0/relationships/increases.rb +22 -2
- data/lib/bel_parser/language/version1_0/relationships/is_a.rb +15 -2
- data/lib/bel_parser/language/version1_0/relationships/negative_correlation.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/orthologous.rb +15 -2
- data/lib/bel_parser/language/version1_0/relationships/positive_correlation.rb +9 -2
- data/lib/bel_parser/language/version1_0/relationships/prognostic_biomarker_for.rb +11 -2
- data/lib/bel_parser/language/version1_0/relationships/rate_limiting_step_of.rb +16 -2
- data/lib/bel_parser/language/version1_0/relationships/reactant_in.rb +15 -2
- data/lib/bel_parser/language/version1_0/relationships/sub_process_of.rb +22 -2
- data/lib/bel_parser/language/version1_0/relationships/transcribed_to.rb +12 -2
- data/lib/bel_parser/language/version1_0/relationships/translated_to.rb +13 -2
- data/lib/bel_parser/language/version1_0/relationships/translocates.rb +16 -2
- data/lib/bel_parser/language/version1_0/syntax/function.rb +0 -1
- data/lib/bel_parser/language/version1_0.rb +13 -2
- data/lib/bel_parser/language/version2_0/functions/abundance.rb +54 -53
- data/lib/bel_parser/language/version2_0/functions/activity.rb +8 -5
- data/lib/bel_parser/language/version2_0/functions/biological_process.rb +16 -16
- data/lib/bel_parser/language/version2_0/functions/cell_secretion.rb +15 -12
- data/lib/bel_parser/language/version2_0/functions/cell_surface_expression.rb +15 -12
- data/lib/bel_parser/language/version2_0/functions/complex_abundance.rb +61 -58
- data/lib/bel_parser/language/version2_0/functions/composite_abundance.rb +13 -12
- data/lib/bel_parser/language/version2_0/functions/degradation.rb +15 -12
- data/lib/bel_parser/language/version2_0/functions/fragment.rb +8 -6
- data/lib/bel_parser/language/version2_0/functions/from_location.rb +18 -17
- data/lib/bel_parser/language/version2_0/functions/fusion.rb +120 -117
- data/lib/bel_parser/language/version2_0/functions/gene_abundance.rb +64 -62
- data/lib/bel_parser/language/version2_0/functions/list.rb +24 -24
- data/lib/bel_parser/language/version2_0/functions/location.rb +14 -15
- data/lib/bel_parser/language/version2_0/functions/micro_rna_abundance.rb +58 -55
- data/lib/bel_parser/language/version2_0/functions/molecular_activity.rb +16 -14
- data/lib/bel_parser/language/version2_0/functions/pathology.rb +14 -15
- data/lib/bel_parser/language/version2_0/functions/products.rb +9 -10
- data/lib/bel_parser/language/version2_0/functions/protein_abundance.rb +96 -92
- data/lib/bel_parser/language/version2_0/functions/protein_modification.rb +57 -54
- data/lib/bel_parser/language/version2_0/functions/reactants.rb +9 -10
- data/lib/bel_parser/language/version2_0/functions/reaction.rb +18 -17
- data/lib/bel_parser/language/version2_0/functions/rna_abundance.rb +64 -62
- data/lib/bel_parser/language/version2_0/functions/to_location.rb +16 -16
- data/lib/bel_parser/language/version2_0/functions/translocation.rb +23 -22
- data/lib/bel_parser/language/version2_0/functions/variant.rb +13 -13
- data/lib/bel_parser/language/version2_0/relationships/acts_in.rb +16 -2
- data/lib/bel_parser/language/version2_0/relationships/analogous.rb +8 -2
- data/lib/bel_parser/language/version2_0/relationships/association.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/biomarker_for.rb +9 -2
- data/lib/bel_parser/language/version2_0/relationships/causes_no_change.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/decreases.rb +22 -2
- data/lib/bel_parser/language/version2_0/relationships/directly_decreases.rb +11 -2
- data/lib/bel_parser/language/version2_0/relationships/directly_increases.rb +11 -2
- data/lib/bel_parser/language/version2_0/relationships/has_component.rb +25 -2
- data/lib/bel_parser/language/version2_0/relationships/has_components.rb +20 -2
- data/lib/bel_parser/language/version2_0/relationships/has_member.rb +15 -2
- data/lib/bel_parser/language/version2_0/relationships/has_members.rb +20 -2
- data/lib/bel_parser/language/version2_0/relationships/has_modification.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/has_product.rb +15 -2
- data/lib/bel_parser/language/version2_0/relationships/has_variant.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/includes.rb +18 -2
- data/lib/bel_parser/language/version2_0/relationships/increases.rb +22 -2
- data/lib/bel_parser/language/version2_0/relationships/is_a.rb +15 -2
- data/lib/bel_parser/language/version2_0/relationships/negative_correlation.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/orthologous.rb +15 -2
- data/lib/bel_parser/language/version2_0/relationships/positive_correlation.rb +9 -2
- data/lib/bel_parser/language/version2_0/relationships/prognostic_biomarker_for.rb +11 -2
- data/lib/bel_parser/language/version2_0/relationships/rate_limiting_step_of.rb +16 -2
- data/lib/bel_parser/language/version2_0/relationships/reactant_in.rb +15 -2
- data/lib/bel_parser/language/version2_0/relationships/regulates.rb +14 -2
- data/lib/bel_parser/language/version2_0/relationships/sub_process_of.rb +22 -2
- data/lib/bel_parser/language/version2_0/relationships/transcribed_to.rb +12 -2
- data/lib/bel_parser/language/version2_0/relationships/translated_to.rb +13 -2
- data/lib/bel_parser/language/version2_0/relationships/translocates.rb +16 -2
- data/lib/bel_parser/language.rb +18 -8
- data/lib/bel_parser/parser.rb +1 -0
- data/lib/bel_parser/parsers/ast/node.rb +112 -74
- data/lib/bel_parser/parsers/bel_script/set.rl +1 -1
- data/lib/bel_parser/parsers/bel_script/set_document.rb +7087 -0
- data/lib/bel_parser/parsers/bel_script/set_document.rl +97 -0
- data/lib/bel_parser/parsers/bel_script.rb +1 -0
- data/lib/bel_parser/parsers/common/common.rl +1 -1
- data/lib/bel_parser/script/parser.rb +1 -0
- metadata +8 -2
@@ -14,7 +14,8 @@ module BELParser
|
|
14
14
|
SHORT = :complex
|
15
15
|
LONG = :complexAbundance
|
16
16
|
RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::ComplexAbundance
|
17
|
-
DESCRIPTION = 'Denotes the abundance of a molecular
|
17
|
+
DESCRIPTION = 'Denotes the abundance of a molecular
|
18
|
+
omplex.'.freeze
|
18
19
|
|
19
20
|
def self.short
|
20
21
|
SHORT
|
@@ -37,7 +38,7 @@ module BELParser
|
|
37
38
|
end
|
38
39
|
|
39
40
|
module Signatures
|
40
|
-
|
41
|
+
# NamedComplexAbundanceSignature
|
41
42
|
class NamedComplexAbundanceSignature
|
42
43
|
extend BELParser::Language::Signature
|
43
44
|
|
@@ -45,19 +46,19 @@ module BELParser
|
|
45
46
|
|
46
47
|
AST = BELParser::Language::Semantics::Builder.build do
|
47
48
|
term(
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
49
|
+
function(
|
50
|
+
identifier(
|
51
|
+
function_of(ComplexAbundance))),
|
52
|
+
argument(
|
53
|
+
parameter(
|
54
|
+
prefix(
|
55
|
+
identifier(
|
56
|
+
has_namespace,
|
57
|
+
namespace_of(:*))),
|
58
|
+
value(
|
59
|
+
value_type(
|
60
|
+
has_encoding,
|
61
|
+
encoding_of(:Abundance))))))
|
61
62
|
end
|
62
63
|
private_constant :AST
|
63
64
|
|
@@ -72,7 +73,8 @@ module BELParser
|
|
72
73
|
STRING_FORM
|
73
74
|
end
|
74
75
|
end
|
75
|
-
|
76
|
+
|
77
|
+
# NamedComplexAbundanceWithLocationSignature
|
76
78
|
class NamedComplexAbundanceWithLocationSignature
|
77
79
|
extend BELParser::Language::Signature
|
78
80
|
|
@@ -80,24 +82,24 @@ module BELParser
|
|
80
82
|
|
81
83
|
AST = BELParser::Language::Semantics::Builder.build do
|
82
84
|
term(
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
85
|
+
function(
|
86
|
+
identifier(
|
87
|
+
function_of(ComplexAbundance))),
|
88
|
+
argument(
|
89
|
+
parameter(
|
90
|
+
prefix(
|
91
|
+
identifier(
|
92
|
+
has_namespace,
|
93
|
+
namespace_of(:*))),
|
94
|
+
value(
|
95
|
+
value_type(
|
96
|
+
has_encoding,
|
97
|
+
encoding_of(:Abundance))))),
|
98
|
+
argument(
|
99
|
+
term(
|
100
|
+
function(
|
101
|
+
identifier(
|
102
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Location))))))
|
101
103
|
end
|
102
104
|
private_constant :AST
|
103
105
|
|
@@ -112,7 +114,8 @@ module BELParser
|
|
112
114
|
STRING_FORM
|
113
115
|
end
|
114
116
|
end
|
115
|
-
|
117
|
+
|
118
|
+
# ComposedComplexAbundanceSignature
|
116
119
|
class ComposedComplexAbundanceSignature
|
117
120
|
extend BELParser::Language::Signature
|
118
121
|
|
@@ -120,14 +123,14 @@ module BELParser
|
|
120
123
|
|
121
124
|
AST = BELParser::Language::Semantics::Builder.build do
|
122
125
|
term(
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
126
|
+
function(
|
127
|
+
identifier(
|
128
|
+
function_of(ComplexAbundance))),
|
129
|
+
variadic_arguments(
|
130
|
+
term(
|
131
|
+
function(
|
132
|
+
identifier(
|
133
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Abundance))))))
|
131
134
|
end
|
132
135
|
private_constant :AST
|
133
136
|
|
@@ -142,7 +145,8 @@ module BELParser
|
|
142
145
|
STRING_FORM
|
143
146
|
end
|
144
147
|
end
|
145
|
-
|
148
|
+
|
149
|
+
# ComposedComplexAbundanceWithLocationSignature
|
146
150
|
class ComposedComplexAbundanceWithLocationSignature
|
147
151
|
extend BELParser::Language::Signature
|
148
152
|
|
@@ -150,19 +154,19 @@ module BELParser
|
|
150
154
|
|
151
155
|
AST = BELParser::Language::Semantics::Builder.build do
|
152
156
|
term(
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
157
|
+
function(
|
158
|
+
identifier(
|
159
|
+
function_of(ComplexAbundance))),
|
160
|
+
variadic_arguments(
|
161
|
+
term(
|
162
|
+
function(
|
163
|
+
identifier(
|
164
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Abundance))))),
|
165
|
+
argument(
|
166
|
+
term(
|
167
|
+
function(
|
168
|
+
identifier(
|
169
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Location))))))
|
166
170
|
end
|
167
171
|
private_constant :AST
|
168
172
|
|
@@ -177,7 +181,6 @@ module BELParser
|
|
177
181
|
STRING_FORM
|
178
182
|
end
|
179
183
|
end
|
180
|
-
|
181
184
|
end
|
182
185
|
|
183
186
|
SIGNATURES = Signatures.constants.map do |const|
|
@@ -7,14 +7,16 @@ module BELParser
|
|
7
7
|
module Language
|
8
8
|
module Version2_0
|
9
9
|
module Functions
|
10
|
-
# CompositeAbundance: Denotes the frequency or abundance of
|
10
|
+
# CompositeAbundance: Denotes the frequency or abundance of
|
11
|
+
# events in which members are present.
|
11
12
|
class CompositeAbundance
|
12
13
|
extend Function
|
13
14
|
|
14
15
|
SHORT = :composite
|
15
16
|
LONG = :compositeAbundance
|
16
17
|
RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::Abundance
|
17
|
-
DESCRIPTION = 'Denotes the frequency or abundance of events
|
18
|
+
DESCRIPTION = 'Denotes the frequency or abundance of events
|
19
|
+
n which members are present.'.freeze
|
18
20
|
|
19
21
|
def self.short
|
20
22
|
SHORT
|
@@ -37,7 +39,7 @@ module BELParser
|
|
37
39
|
end
|
38
40
|
|
39
41
|
module Signatures
|
40
|
-
|
42
|
+
# CompositeAbundanceSignature
|
41
43
|
class CompositeAbundanceSignature
|
42
44
|
extend BELParser::Language::Signature
|
43
45
|
|
@@ -45,14 +47,14 @@ module BELParser
|
|
45
47
|
|
46
48
|
AST = BELParser::Language::Semantics::Builder.build do
|
47
49
|
term(
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
50
|
+
function(
|
51
|
+
identifier(
|
52
|
+
function_of(CompositeAbundance))),
|
53
|
+
variadic_arguments(
|
54
|
+
term(
|
55
|
+
function(
|
56
|
+
identifier(
|
57
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Abundance))))))
|
56
58
|
end
|
57
59
|
private_constant :AST
|
58
60
|
|
@@ -67,7 +69,6 @@ module BELParser
|
|
67
69
|
STRING_FORM
|
68
70
|
end
|
69
71
|
end
|
70
|
-
|
71
72
|
end
|
72
73
|
|
73
74
|
SIGNATURES = Signatures.constants.map do |const|
|
@@ -7,14 +7,18 @@ module BELParser
|
|
7
7
|
module Language
|
8
8
|
module Version2_0
|
9
9
|
module Functions
|
10
|
-
# Degradation: Denotes the frequency or abundance of events
|
10
|
+
# Degradation: Denotes the frequency or abundance of events
|
11
|
+
# in which a member is degraded in some way such that it is no
|
12
|
+
# longer a member.
|
11
13
|
class Degradation
|
12
14
|
extend Function
|
13
15
|
|
14
16
|
SHORT = :deg
|
15
17
|
LONG = :degradation
|
16
18
|
RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::Abundance
|
17
|
-
DESCRIPTION = 'Denotes the frequency or abundance of events
|
19
|
+
DESCRIPTION = 'Denotes the frequency or abundance of events
|
20
|
+
n which a member is degraded in some way such
|
21
|
+
hat it is no longer a member.'.freeze
|
18
22
|
|
19
23
|
def self.short
|
20
24
|
SHORT
|
@@ -37,7 +41,7 @@ module BELParser
|
|
37
41
|
end
|
38
42
|
|
39
43
|
module Signatures
|
40
|
-
|
44
|
+
# DegradationSignature
|
41
45
|
class DegradationSignature
|
42
46
|
extend BELParser::Language::Signature
|
43
47
|
|
@@ -45,14 +49,14 @@ module BELParser
|
|
45
49
|
|
46
50
|
AST = BELParser::Language::Semantics::Builder.build do
|
47
51
|
term(
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
52
|
+
function(
|
53
|
+
identifier(
|
54
|
+
function_of(Degradation))),
|
55
|
+
argument(
|
56
|
+
term(
|
57
|
+
function(
|
58
|
+
identifier(
|
59
|
+
return_type_of(BELParser::Language::Version2_0::ReturnTypes::Abundance))))))
|
56
60
|
end
|
57
61
|
private_constant :AST
|
58
62
|
|
@@ -67,7 +71,6 @@ module BELParser
|
|
67
71
|
STRING_FORM
|
68
72
|
end
|
69
73
|
end
|
70
|
-
|
71
74
|
end
|
72
75
|
|
73
76
|
SIGNATURES = Signatures.constants.map do |const|
|
@@ -7,14 +7,16 @@ module BELParser
|
|
7
7
|
module Language
|
8
8
|
module Version2_0
|
9
9
|
module Functions
|
10
|
-
# Fragment: Denotes a protein fragment, e.g., a product of
|
10
|
+
# Fragment: Denotes a protein fragment, e.g., a product of
|
11
|
+
# proteolytic cleavage.
|
11
12
|
class Fragment
|
12
13
|
extend Function
|
13
14
|
|
14
15
|
SHORT = :frag
|
15
16
|
LONG = :fragment
|
16
17
|
RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::Fragment
|
17
|
-
DESCRIPTION = 'Denotes a protein fragment, e.g., a product of
|
18
|
+
DESCRIPTION = 'Denotes a protein fragment, e.g., a product of
|
19
|
+
roteolytic cleavage.'.freeze
|
18
20
|
|
19
21
|
def self.short
|
20
22
|
SHORT
|
@@ -37,7 +39,7 @@ module BELParser
|
|
37
39
|
end
|
38
40
|
|
39
41
|
module Signatures
|
40
|
-
|
42
|
+
# FragmentWithRangeSignature
|
41
43
|
class FragmentWithRangeSignature
|
42
44
|
extend BELParser::Language::Signature
|
43
45
|
|
@@ -68,7 +70,8 @@ module BELParser
|
|
68
70
|
STRING_FORM
|
69
71
|
end
|
70
72
|
end
|
71
|
-
|
73
|
+
|
74
|
+
# FragmentWithRangeDescriptorSignature
|
72
75
|
class FragmentWithRangeDescriptorSignature
|
73
76
|
extend BELParser::Language::Signature
|
74
77
|
|
@@ -91,7 +94,7 @@ module BELParser
|
|
91
94
|
any),
|
92
95
|
value(
|
93
96
|
value_type(
|
94
|
-
encoding_of(:*))))))
|
97
|
+
encoding_of(:*))))))
|
95
98
|
end
|
96
99
|
private_constant :AST
|
97
100
|
|
@@ -106,7 +109,6 @@ module BELParser
|
|
106
109
|
STRING_FORM
|
107
110
|
end
|
108
111
|
end
|
109
|
-
|
110
112
|
end
|
111
113
|
|
112
114
|
SIGNATURES = Signatures.constants.map do |const|
|
@@ -7,14 +7,16 @@ module BELParser
|
|
7
7
|
module Language
|
8
8
|
module Version2_0
|
9
9
|
module Functions
|
10
|
-
# FromLocation: Denotes the from cellular location of the
|
10
|
+
# FromLocation: Denotes the from cellular location of the
|
11
|
+
# abundance.
|
11
12
|
class FromLocation
|
12
13
|
extend Function
|
13
14
|
|
14
15
|
SHORT = :fromLoc
|
15
16
|
LONG = :fromLocation
|
16
17
|
RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::FromLocation
|
17
|
-
DESCRIPTION = 'Denotes the from cellular location of the
|
18
|
+
DESCRIPTION = 'Denotes the from cellular location of the
|
19
|
+
bundance.'.freeze
|
18
20
|
|
19
21
|
def self.short
|
20
22
|
SHORT
|
@@ -37,7 +39,7 @@ module BELParser
|
|
37
39
|
end
|
38
40
|
|
39
41
|
module Signatures
|
40
|
-
|
42
|
+
# FromLocationSignature
|
41
43
|
class FromLocationSignature
|
42
44
|
extend BELParser::Language::Signature
|
43
45
|
|
@@ -45,19 +47,19 @@ module BELParser
|
|
45
47
|
|
46
48
|
AST = BELParser::Language::Semantics::Builder.build do
|
47
49
|
term(
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
50
|
+
function(
|
51
|
+
identifier(
|
52
|
+
function_of(FromLocation))),
|
53
|
+
argument(
|
54
|
+
parameter(
|
55
|
+
prefix(
|
56
|
+
identifier(
|
57
|
+
has_namespace,
|
58
|
+
namespace_of(:*))),
|
59
|
+
value(
|
60
|
+
value_type(
|
61
|
+
has_encoding,
|
62
|
+
encoding_of(:Location))))))
|
61
63
|
end
|
62
64
|
private_constant :AST
|
63
65
|
|
@@ -72,7 +74,6 @@ module BELParser
|
|
72
74
|
STRING_FORM
|
73
75
|
end
|
74
76
|
end
|
75
|
-
|
76
77
|
end
|
77
78
|
|
78
79
|
SIGNATURES = Signatures.constants.map do |const|
|