bel_parser 1.0.0.alpha.43 → 1.0.0.alpha.44
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/bel_parser/expression/model/statement.rb +0 -1
- data/lib/bel_parser/parsers/bel_script/define_annotation.rb +1540 -1468
- data/lib/bel_parser/parsers/bel_script/define_annotation.rl +5 -0
- data/lib/bel_parser/script/state/namespace_definition.rb +0 -1
- data/lib/bel_parser/script/state/set.rb +1 -1
- metadata +1 -1
@@ -67,6 +67,10 @@
|
|
67
67
|
action define_annotation_end {
|
68
68
|
trace('DEFINE_ANNOTATION define_annotation_end')
|
69
69
|
annotation_definition_node = annotation_definition()
|
70
|
+
|
71
|
+
name = @buffers.delete(:annotation_definition_name)
|
72
|
+
annotation_definition_node <<= keyword(name)
|
73
|
+
|
70
74
|
domain = @buffers.delete(:annotation_definition_domain)
|
71
75
|
unless domain.nil?
|
72
76
|
annotation_definition_node <<= domain
|
@@ -157,6 +161,7 @@
|
|
157
161
|
@eof(define_annotation_node_eof)
|
158
162
|
%define_annotation_end
|
159
163
|
%yield_define_annotation
|
164
|
+
NL
|
160
165
|
;
|
161
166
|
}%%
|
162
167
|
=end
|
@@ -18,7 +18,6 @@ module BELParser
|
|
18
18
|
resource_reader = script_context[:resource_reader]
|
19
19
|
|
20
20
|
keyword, domain = ast_node.children
|
21
|
-
require 'pry'; binding.pry unless domain
|
22
21
|
if domain.url?
|
23
22
|
prefix = keyword.identifier.string_literal
|
24
23
|
url = unquote(domain.child.string.string_literal)
|
@@ -23,7 +23,7 @@ module BELParser
|
|
23
23
|
name_string = name_node.identifier.string_literal
|
24
24
|
case
|
25
25
|
when is_citation?(name_string)
|
26
|
-
handle_citation(value_node, script_context)
|
26
|
+
handle_citation(value_node.children[0], script_context)
|
27
27
|
when is_support?(name_string)
|
28
28
|
handle_support(value_node, script_context)
|
29
29
|
when value_node.children[0].is_a?(LIST_NODE)
|