bel_parser 1.0.0.alpha.52-java → 1.0.0.alpha.53-java
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/namespace.rb +1 -0
- data/lib/bel_parser/expression/model/parameter.rb +11 -1
- data/lib/bel_parser/expression/model/statement.rb +1 -0
- data/lib/bel_parser/expression/model/term.rb +1 -0
- data/lib/bel_parser/language/specification.rb +4 -0
- data/lib/bel_parser/language/version1_0.rb +1 -0
- data/lib/bel_parser/language/version2_0.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20b61bb214b0a7323c103ebc274994cd636c5416
|
4
|
+
data.tar.gz: ea9bb59270a4658e68e703c861f392e3b2cf6a45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ec021ec5185740497b528112306887f84e9cf10411495bc30f8299c476df81c995b20fb89dda073045dee994657fd546748f01637d0147256559b69b32c5a75
|
7
|
+
data.tar.gz: 7022cafaaf0474cff631d1a003661a956117d988df9abfbdb3dd64e1780306105b643a9350dd48f27b91a8f68163602dd3976281521dacb03bbaac786fbc5496
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.alpha.
|
1
|
+
1.0.0.alpha.53
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'bel_parser/quoting'
|
2
|
+
require 'bel_parser/parsers/ast/node'
|
2
3
|
|
3
4
|
module BELParser
|
4
5
|
module Expression
|
@@ -87,7 +88,16 @@ module BELParser
|
|
87
88
|
return nil if ast.nil? ||
|
88
89
|
!ast.is_a?(BELParser::Parsers::AST::Parameter)
|
89
90
|
namespace = ast_to_namespace(ast.prefix, namespace_hash)
|
90
|
-
|
91
|
+
value = ast.value.children[0].string_literal
|
92
|
+
if namespace
|
93
|
+
namespace[value]
|
94
|
+
else
|
95
|
+
BELParser::Expression::Model::Parameter.new(
|
96
|
+
nil, # nil namespace
|
97
|
+
value,
|
98
|
+
nil # nil encoding
|
99
|
+
)
|
100
|
+
end
|
91
101
|
end
|
92
102
|
end
|
93
103
|
end
|