bel_parser 1.0.0.alpha.43-java → 1.0.0.alpha.44-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bel_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha.43
4
+ version: 1.0.0.alpha.44
5
5
  platform: java
6
6
  authors:
7
7
  - Anthony Bargnesi