HDLRuby 3.8.1 → 3.8.2
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.
- checksums.yaml +4 -4
- data/lib/HDLRuby/hruby_high.rb +27 -27
- data/lib/HDLRuby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 577e7c67c74a13f9b7eaddd7f81a8d4e305166f99578593137119badcb6bb3e4
|
4
|
+
data.tar.gz: 27df50e612a43ac6926a3a5666d3525804b470aba69c447cf180706306a1ce1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37d75e1958a3c872be569ba2ef461c2d5deea8fe4f67f80bc010ec6d30d223a4506803851f2635e7c04d84ce182d042060a7d4ee54ea1d1b246bdb5d57975df3
|
7
|
+
data.tar.gz: 0bb675a07412101cf1265b485d7696b36629617298846cbe1c5ac531b779ee20d898c7d90474c001ddbe45eb3fcd9c739c1afe23d02800d0fbc27441d1a46bb0
|
data/lib/HDLRuby/hruby_high.rb
CHANGED
@@ -1391,7 +1391,7 @@ module HDLRuby::High
|
|
1391
1391
|
# * the else part is defined through the helse method.
|
1392
1392
|
# * a behavior is created to enclose the hif.
|
1393
1393
|
def hif(condition, mode = nil, &ruby_block)
|
1394
|
-
return if self.metaif(condition,&ruby_block)
|
1394
|
+
# return if self.metaif(condition,&ruby_block)
|
1395
1395
|
# Ensure there is a block.
|
1396
1396
|
ruby_block = proc {} unless block_given?
|
1397
1397
|
self.par do
|
@@ -1406,7 +1406,7 @@ module HDLRuby::High
|
|
1406
1406
|
#
|
1407
1407
|
# NOTE: added to the hif of the last behavior.
|
1408
1408
|
def helse(mode = nil, &ruby_block)
|
1409
|
-
return if self.metaelse(&ruby_block)
|
1409
|
+
# return if self.metaelse(&ruby_block)
|
1410
1410
|
# Ensure there is a block.
|
1411
1411
|
ruby_block = proc {} unless block_given?
|
1412
1412
|
# There is a ruby_block: the helse is assumed to be with
|
@@ -1423,13 +1423,13 @@ module HDLRuby::High
|
|
1423
1423
|
# with a +condition+ that when met lead
|
1424
1424
|
# to the execution of the block in +mode+ generated by the +ruby_block+.
|
1425
1425
|
def helsif(condition, mode = nil, &ruby_block)
|
1426
|
-
meta = self.metaelsif(condition,&ruby_block)
|
1427
|
-
if meta == :toif then
|
1428
|
-
|
1429
|
-
|
1430
|
-
elsif meta then
|
1431
|
-
|
1432
|
-
end
|
1426
|
+
# meta = self.metaelsif(condition,&ruby_block)
|
1427
|
+
# if meta == :toif then
|
1428
|
+
# # Must be converted to hif.
|
1429
|
+
# return self.hif(condition,mode, &ruby_block)
|
1430
|
+
# elsif meta then
|
1431
|
+
# return
|
1432
|
+
# end
|
1433
1433
|
# Ensure there is a block.
|
1434
1434
|
ruby_block = proc {} unless block_given?
|
1435
1435
|
# There is a ruby_block: the helse is assumed to be with
|
@@ -1449,7 +1449,7 @@ module HDLRuby::High
|
|
1449
1449
|
# * the when part is defined through the hwhen method.
|
1450
1450
|
# * a new behavior is created to enclose the hcase.
|
1451
1451
|
def hcase(value)
|
1452
|
-
return if self.metacase(value)
|
1452
|
+
# return if self.metacase(value)
|
1453
1453
|
self.par do
|
1454
1454
|
hcase(value)
|
1455
1455
|
end
|
@@ -1460,7 +1460,7 @@ module HDLRuby::High
|
|
1460
1460
|
#
|
1461
1461
|
# Can only be used once.
|
1462
1462
|
def hwhen(match, mode = nil, &ruby_block)
|
1463
|
-
return if self.metawhen(match,&ruby_block)
|
1463
|
+
# return if self.metawhen(match,&ruby_block)
|
1464
1464
|
# Ensure there is a block.
|
1465
1465
|
ruby_block = proc {} unless block_given?
|
1466
1466
|
# There is a ruby_block: the helse is assumed to be with
|
@@ -2785,7 +2785,7 @@ module HDLRuby::High
|
|
2785
2785
|
obj = self
|
2786
2786
|
::HDLRuby::High.cur_block.delete_statement!(obj)
|
2787
2787
|
# Handles the metaprogramming.
|
2788
|
-
return obj if self.metaif(condition,proc { add_statement(obj) })
|
2788
|
+
# return obj if self.metaif(condition,proc { add_statement(obj) })
|
2789
2789
|
# Creates the if statement.
|
2790
2790
|
stmnt = If.new(condition) { add_statement(obj) }
|
2791
2791
|
# Add it to the current block.
|
@@ -4134,10 +4134,10 @@ module HDLRuby::High
|
|
4134
4134
|
# NOTE: the else part is defined through the helse method.
|
4135
4135
|
def hif(condition)
|
4136
4136
|
# Handles the metaprogramming.
|
4137
|
-
if self.metaif(condition,proc { left <= right }) then
|
4138
|
-
|
4139
|
-
|
4140
|
-
end
|
4137
|
+
# if self.metaif(condition,proc { left <= right }) then
|
4138
|
+
# High.top_user.delete_connection!(self)
|
4139
|
+
# return
|
4140
|
+
# end
|
4141
4141
|
|
4142
4142
|
# Creates the behavior.
|
4143
4143
|
left, right = self.left, self.right
|
@@ -4528,7 +4528,7 @@ module HDLRuby::High
|
|
4528
4528
|
# NOTE: the else part is defined through the helse method.
|
4529
4529
|
# def hif(condition, mode = nil, &ruby_block)
|
4530
4530
|
def hif(condition, mode = self.mode, &ruby_block)
|
4531
|
-
return if self.metaif(condition,&ruby_block)
|
4531
|
+
# return if self.metaif(condition,&ruby_block)
|
4532
4532
|
# Ensure there is a block.
|
4533
4533
|
ruby_block = proc {} unless block_given?
|
4534
4534
|
# Creates the if statement.
|
@@ -4540,7 +4540,7 @@ module HDLRuby::High
|
|
4540
4540
|
#
|
4541
4541
|
# Can only be used once.
|
4542
4542
|
def helse(mode = nil, &ruby_block)
|
4543
|
-
return if self.metaelse(&ruby_block)
|
4543
|
+
# return if self.metaelse(&ruby_block)
|
4544
4544
|
# Ensure there is a block.
|
4545
4545
|
ruby_block = proc {} unless block_given?
|
4546
4546
|
# There is a ruby_block: the helse is assumed to be with
|
@@ -4557,13 +4557,13 @@ module HDLRuby::High
|
|
4557
4557
|
# with a +condition+ that when met lead
|
4558
4558
|
# to the execution of the block in +mode+ generated by the +ruby_block+.
|
4559
4559
|
def helsif(condition, mode = nil, &ruby_block)
|
4560
|
-
meta = self.metaelsif(condition,&ruby_block)
|
4561
|
-
if meta == :toif then
|
4562
|
-
|
4563
|
-
|
4564
|
-
elsif meta then
|
4565
|
-
|
4566
|
-
end
|
4560
|
+
# meta = self.metaelsif(condition,&ruby_block)
|
4561
|
+
# if meta == :toif then
|
4562
|
+
# # Must be converted to hif.
|
4563
|
+
# return self.hif(condition,mode, &ruby_block)
|
4564
|
+
# elsif meta then
|
4565
|
+
# return
|
4566
|
+
# end
|
4567
4567
|
# Ensure there is a block.
|
4568
4568
|
ruby_block = proc {} unless block_given?
|
4569
4569
|
# There is a ruby_block: the helse is assumed to be with
|
@@ -4584,7 +4584,7 @@ module HDLRuby::High
|
|
4584
4584
|
#
|
4585
4585
|
# NOTE: the when part is defined through the hwhen method.
|
4586
4586
|
def hcase(value)
|
4587
|
-
return if self.metacase(value)
|
4587
|
+
# return if self.metacase(value)
|
4588
4588
|
# Creates the case statement.
|
4589
4589
|
self.add_statement(Case.new(value))
|
4590
4590
|
end
|
@@ -4594,7 +4594,7 @@ module HDLRuby::High
|
|
4594
4594
|
#
|
4595
4595
|
# Can only be used once.
|
4596
4596
|
def hwhen(match, mode = nil, &ruby_block)
|
4597
|
-
return if self.metawhen(match,&ruby_block)
|
4597
|
+
# return if self.metawhen(match,&ruby_block)
|
4598
4598
|
# Ensure there is a block.
|
4599
4599
|
ruby_block = proc {} unless block_given?
|
4600
4600
|
# There is a ruby_block: the helse is assumed to be with
|
data/lib/HDLRuby/version.rb
CHANGED