-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
236 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.29.5 | ||
+version 0.29.5 | ||
+rt jvm org.eolang:eo-runtime:0.29.6 | ||
+version 0.29.6 | ||
|
||
# Turns an object into a φ-term | ||
[x] > as-phi /string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.29.5 | ||
+version 0.29.5 | ||
+rt jvm org.eolang:eo-runtime:0.29.6 | ||
+version 0.29.6 | ||
|
||
[] > bool | ||
# Equal to another object? | ||
|
@@ -61,10 +61,3 @@ | |
^ | ||
01- | ||
00- | ||
|
||
# Converts this to hash | ||
[] > as-hash | ||
if. > @ | ||
^ | ||
1231 | ||
1237 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,13 +20,11 @@ | |
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
# SOFTWARE. | ||
|
||
+alias org.eolang.collections.bytes-as-array | ||
+alias org.eolang.collections.list | ||
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.29.5 | ||
+version 0.29.5 | ||
+rt jvm org.eolang:eo-runtime:0.29.6 | ||
+version 0.29.6 | ||
|
||
[] > bytes | ||
# Equals to another object | ||
|
@@ -78,20 +76,6 @@ | |
[] > as-bytes | ||
^ > @ | ||
|
||
# Converts this to hash | ||
[] > as-hash | ||
reduced. > @ | ||
list | ||
bytes-as-array ^ | ||
1 | ||
[a b] | ||
plus. > @ | ||
times. | ||
31 | ||
a | ||
as-int. | ||
(0.as-bytes.and b).right 54 | ||
|
||
# Concatenation of two byte sequences: | ||
# the current and the provided one, | ||
# as a new sequence | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.29.5 | ||
+version 0.29.5 | ||
+rt jvm org.eolang:eo-runtime:0.29.6 | ||
+version 0.29.6 | ||
|
||
# This object is doing exactly the same as "memory", but allows | ||
# you to store objects, not only data. In other words, it doesn't | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.29.5 | ||
+version 0.29.5 | ||
+rt jvm org.eolang:eo-runtime:0.29.6 | ||
+version 0.29.6 | ||
|
||
# Compile Time Instruction. | ||
# Make possible to highlight deprecated methods. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.29.5 | ||
+version 0.29.5 | ||
+rt jvm org.eolang:eo-runtime:0.29.6 | ||
+version 0.29.6 | ||
|
||
# This object must be used in order to terminate the program | ||
# due to an error. Just make a copy of it with any encapsulated object. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.29.5 | ||
+version 0.29.5 | ||
+rt jvm org.eolang:eo-runtime:0.29.6 | ||
+version 0.29.6 | ||
|
||
[] > float | ||
# Tests that $ = x | ||
|
@@ -103,12 +103,3 @@ | |
|
||
# Converts this to bytes | ||
[] > as-bytes /bytes | ||
|
||
# Converts this to hash | ||
[] > as-hash | ||
as-int. > @ | ||
xor. | ||
as-bytes | ||
right. | ||
as-bytes | ||
32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.29.5 | ||
+version 0.29.5 | ||
+rt jvm org.eolang:eo-runtime:0.29.6 | ||
+version 0.29.6 | ||
|
||
# Non-conditional forward and backward jumps. Returns TRUE | ||
# if the backward jump happened, an object provided to | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.29.5 | ||
+version 0.29.5 | ||
+rt jvm org.eolang:eo-runtime:0.29.6 | ||
+version 0.29.6 | ||
|
||
# Emulation of random-access memory (RAM). | ||
[size] > heap | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.29.5 | ||
+version 0.29.5 | ||
+rt jvm org.eolang:eo-runtime:0.29.6 | ||
+version 0.29.6 | ||
|
||
[] > int | ||
# Tests that $ = x | ||
|
@@ -101,12 +101,3 @@ | |
|
||
# Converts this to bytes | ||
[] > as-bytes /bytes | ||
|
||
# Converts this to hash | ||
[] > as-hash | ||
as-int. > @ | ||
xor. | ||
as-bytes | ||
right. | ||
as-bytes | ||
32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang.io | ||
+rt jvm org.eolang:eo-runtime:0.29.5 | ||
+version 0.29.5 | ||
+rt jvm org.eolang:eo-runtime:0.29.6 | ||
+version 0.29.6 | ||
|
||
[] > stdin | ||
# Consumes only one line from the standard input stream | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang.io | ||
+rt jvm org.eolang:eo-runtime:0.29.5 | ||
+version 0.29.5 | ||
+rt jvm org.eolang:eo-runtime:0.29.6 | ||
+version 0.29.6 | ||
|
||
[text] > stdout /bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.29.5 | ||
+version 0.29.5 | ||
+rt jvm org.eolang:eo-runtime:0.29.6 | ||
+version 0.29.6 | ||
|
||
# Storage of data in memory. | ||
[] > memory /? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.29.5 | ||
+version 0.29.5 | ||
+rt jvm org.eolang:eo-runtime:0.29.6 | ||
+version 0.29.6 | ||
|
||
# Not a number | ||
[] > nan | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.29.5 | ||
+version 0.29.5 | ||
+rt jvm org.eolang:eo-runtime:0.29.6 | ||
+version 0.29.6 | ||
|
||
# Negative infinity | ||
[] > negative-infinity | ||
|
@@ -98,31 +98,30 @@ | |
is-nan-or-zero | ||
terms.at index > term! | ||
nan | ||
[] | ||
if. > @ | ||
acc.gt 0.0 | ||
times-rec | ||
* | ||
if. | ||
is-term-gt-zero term > term-gt-zero | ||
acc | ||
neg-inf | ||
index.plus 1 > next-index | ||
terms | ||
infs | ||
is-nan-or-zero | ||
is-term-gt-zero | ||
times-rec | ||
* | ||
if. | ||
term-gt-zero | ||
acc | ||
pos-inf | ||
next-index | ||
terms | ||
infs | ||
is-nan-or-zero | ||
is-term-gt-zero | ||
if. | ||
acc.gt 0.0 | ||
times-rec | ||
* | ||
if. | ||
is-term-gt-zero term > term-gt-zero | ||
acc | ||
neg-inf | ||
index.plus 1 > next-index | ||
terms | ||
infs | ||
is-nan-or-zero | ||
is-term-gt-zero | ||
times-rec | ||
* | ||
if. | ||
term-gt-zero | ||
acc | ||
pos-inf | ||
next-index | ||
terms | ||
infs | ||
is-nan-or-zero | ||
is-term-gt-zero | ||
|
||
if. > @ | ||
eq. | ||
|
@@ -193,10 +192,6 @@ | |
nan | ||
^ | ||
|
||
# Negation of $ | ||
[] > neg | ||
positive-infinity > @ | ||
|
||
# Difference between $ and x | ||
[x...] > minus | ||
^.as-bytes > neg-inf-as-bytes! | ||
|
@@ -285,31 +280,30 @@ | |
is-nan-or-infinite | ||
terms.at index > term! | ||
nan | ||
[] | ||
if. > @ | ||
acc.gt 0.0 | ||
div-rec | ||
* | ||
if. | ||
is-term-gte-zero term > term-gte-zero | ||
acc | ||
neg-inf | ||
index.plus 1 > next-index | ||
terms | ||
infs | ||
is-nan-or-infinite | ||
is-term-gte-zero | ||
div-rec | ||
* | ||
if. | ||
term-gte-zero | ||
acc | ||
pos-inf | ||
next-index | ||
terms | ||
infs | ||
is-nan-or-infinite | ||
is-term-gte-zero | ||
if. | ||
acc.gt 0.0 | ||
div-rec | ||
* | ||
if. | ||
is-term-gte-zero term > term-gte-zero | ||
acc | ||
neg-inf | ||
index.plus 1 > next-index | ||
terms | ||
infs | ||
is-nan-or-infinite | ||
is-term-gte-zero | ||
div-rec | ||
* | ||
if. | ||
term-gte-zero | ||
acc | ||
pos-inf | ||
next-index | ||
terms | ||
infs | ||
is-nan-or-infinite | ||
is-term-gte-zero | ||
|
||
if. > @ | ||
eq. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.29.5 | ||
+version 0.29.5 | ||
+rt jvm org.eolang:eo-runtime:0.29.6 | ||
+version 0.29.6 | ||
|
||
# Object that always is TRUE | ||
[args...] > nop | ||
|
Oops, something went wrong.