BOAST 0.96 → 0.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/BOAST.gemspec +1 -1
- data/lib/BOAST/Algorithm.rb +5 -1
- metadata +2 -2
data/BOAST.gemspec
CHANGED
data/lib/BOAST/Algorithm.rb
CHANGED
|
@@ -252,6 +252,10 @@ module BOAST
|
|
|
252
252
|
return Expression::new(BOAST::Division,self,x)
|
|
253
253
|
end
|
|
254
254
|
|
|
255
|
+
def address
|
|
256
|
+
return Expression::new("&",nil,self)
|
|
257
|
+
end
|
|
258
|
+
|
|
255
259
|
def dereference
|
|
256
260
|
return Expression::new("*",nil,self)
|
|
257
261
|
end
|
|
@@ -281,7 +285,7 @@ module BOAST
|
|
|
281
285
|
s += ")" if (oper == "*" or oper == "/")
|
|
282
286
|
end
|
|
283
287
|
s += " " unless oper == "++" or oper == "."
|
|
284
|
-
s += oper
|
|
288
|
+
s += oper unless ( oper == "&" and BOAST::get_lang == BOAST::FORTRAN )
|
|
285
289
|
s += " " unless oper == "." or oper == "&" or ( oper == "*" and op1.nil? )
|
|
286
290
|
if op2 then
|
|
287
291
|
s += "(" if (oper == "*" or oper == "/" or oper == "-")
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: BOAST
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.97'
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-06-
|
|
12
|
+
date: 2014-06-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: narray
|