-
Notifications
You must be signed in to change notification settings - Fork 10
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
110 changed files
with
250 additions
and
265 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
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 |
---|---|---|
|
@@ -24,9 +24,9 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.49.4 | ||
+rt jvm org.eolang:eo-runtime:0.50.0 | ||
+rt node eo2js-runtime:0.0.0 | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# The object encapsulates a chain of bytes, adding a few | ||
# convenient operations to it. Objects like `int`, `string`, | ||
|
@@ -55,7 +55,7 @@ | |
error | ||
sprintf | ||
"Can't convert non 8 length bytes to a number, bytes are %x" | ||
* | ||
* ^ | ||
|
||
# Equals to another object. | ||
[b] > eq /org.eolang.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,7 +23,7 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# Compile Time Instruction (CTI). | ||
# | ||
|
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 | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# The object dataizes `target`, makes new instance of `bytes` from given data and behaves as result | ||
# `bytes`. | ||
|
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,9 +23,9 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.49.4 | ||
+rt jvm org.eolang:eo-runtime:0.50.0 | ||
+rt node eo2js-runtime:0.0.0 | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# 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,7 +23,7 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# The object is a FALSE boolean state. | ||
[] > false | ||
|
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 |
---|---|---|
|
@@ -24,9 +24,9 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang.fs | ||
+rt jvm org.eolang:eo-runtime:0.49.4 | ||
+rt jvm org.eolang:eo-runtime:0.50.0 | ||
+rt node eo2js-runtime:0.0.0 | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# Directory in the file system. | ||
# Apparently every directory is a file. | ||
|
@@ -40,10 +40,9 @@ | |
if. > @ | ||
^.exists | ||
^ | ||
seq | ||
* | ||
mkdir | ||
^ | ||
seq * | ||
mkdir | ||
^ | ||
|
||
# Makes a directory together with all required | ||
# parent directories. | ||
|
@@ -64,10 +63,9 @@ | |
walked.length > len! | ||
if. > @ | ||
^.exists | ||
seq | ||
* | ||
rec-delete walked 0 | ||
^ | ||
seq * | ||
rec-delete walked 0 | ||
^ | ||
^ | ||
|
||
# Deletes files and directories in current directory recursively. | ||
|
@@ -79,12 +77,11 @@ | |
if. > @ | ||
^.len.eq index | ||
true | ||
seq | ||
* | ||
tup.tail.deleted.exists | ||
^.rec-delete | ||
tup.head | ||
index.plus 1 | ||
seq * | ||
tup.tail.deleted.exists | ||
^.rec-delete | ||
tup.head | ||
index.plus 1 | ||
|
||
# Creates an empty temporary file in the current directory. | ||
[] > tmpfile | ||
|
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 |
---|---|---|
|
@@ -24,9 +24,9 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang.fs | ||
+rt jvm org.eolang:eo-runtime:0.49.4 | ||
+rt jvm org.eolang:eo-runtime:0.50.0 | ||
+rt node eo2js-runtime:0.0.0 | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# The file object in the filesystem. | ||
[path] > file | ||
|
@@ -45,10 +45,9 @@ | |
if. > @ | ||
^.exists | ||
^ | ||
seq | ||
* | ||
touch | ||
^ | ||
seq * | ||
touch | ||
^ | ||
|
||
# Creates new empty file. | ||
# | ||
|
@@ -61,10 +60,9 @@ | |
[] > deleted | ||
if. > @ | ||
^.exists | ||
seq | ||
* | ||
delete | ||
^ | ||
seq * | ||
delete | ||
^ | ||
^ | ||
|
||
# Deletes the file and returns `true`. | ||
|
@@ -156,23 +154,20 @@ | |
sprintf | ||
"File must exist for given access mod: '%s'" | ||
* access | ||
seq | ||
* | ||
^.touched.touch | ||
process-file | ||
^ | ||
seq * | ||
^.touched.touch | ||
process-file | ||
^ | ||
if. | ||
truncate | ||
seq | ||
* | ||
^.deleted.delete | ||
^.touched.touch | ||
process-file | ||
^ | ||
seq | ||
* | ||
process-file | ||
^ | ||
seq * | ||
^.deleted.delete | ||
^.touched.touch | ||
process-file | ||
^ | ||
seq * | ||
process-file | ||
^ | ||
|
||
# Process current file in the provided scope. | ||
# | ||
|
@@ -219,10 +214,9 @@ | |
sprintf | ||
"Can't read from file with provided access mode '%s'" | ||
* ^.^.^.^.^.access | ||
seq | ||
* | ||
read-bytes | ||
^.^.input-block read-bytes | ||
seq * | ||
read-bytes | ||
^.^.input-block read-bytes | ||
|
||
# Bytes read from file input stream | ||
# | ||
|
@@ -261,10 +255,9 @@ | |
sprintf | ||
"Can't write to file with provided access mode '%s'" | ||
* ^.^.^.^.^.access | ||
seq | ||
* | ||
^.^.written-bytes buffer | ||
^.^.output-block | ||
seq * | ||
^.^.written-bytes buffer | ||
^.^.output-block | ||
|
||
# Bytes written to file output 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 |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang.fs | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# A `path` represents a path that is hierarchical and composed of a sequence of | ||
# directory and file name elements separated by a special separator or delimiter. | ||
|
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 |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang.fs | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# Temporary directory. | ||
# For Unix/MacOS uses the path supplied by the first environment variable | ||
|
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 | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# Non-conditional forward and backward jumps. | ||
# Forward jump instantly returns provided object to `g.forward` without touching | ||
|
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 |
---|---|---|
|
@@ -24,9 +24,9 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.49.4 | ||
+rt jvm org.eolang:eo-runtime:0.50.0 | ||
+rt node eo2js-runtime:0.0.0 | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# The 16 bits signed integer. | ||
# Here `as-bytes` must be a `bytes` 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 |
---|---|---|
|
@@ -24,9 +24,9 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.49.4 | ||
+rt jvm org.eolang:eo-runtime:0.50.0 | ||
+rt node eo2js-runtime:0.0.0 | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# The 32 bits signed integer. | ||
# Here `as-bytes` must be a `bytes` 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 |
---|---|---|
|
@@ -24,9 +24,9 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang | ||
+rt jvm org.eolang:eo-runtime:0.49.4 | ||
+rt jvm org.eolang:eo-runtime:0.50.0 | ||
+rt node eo2js-runtime:0.0.0 | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# The 64 bits signed integer. | ||
# Here `as-bytes` must be a `bytes` 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,7 +23,7 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang.io | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# Makes an `input` from bytes. | ||
# Here `bts` is sequence of bytes or an object that can be dataized | ||
|
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 |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
+architect [email protected] | ||
+home https://github.com/objectionary/eo | ||
+package org.eolang.io | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# The `console` object is basic I/O object that allows to | ||
# interact with operation system console. | ||
|
@@ -116,10 +116,9 @@ | |
"read" | ||
* posix.stdin-fileno size | ||
self. > @ | ||
seq | ||
* | ||
read-bytes | ||
^.^.input-block read-bytes | ||
seq * | ||
read-bytes | ||
^.^.input-block read-bytes | ||
|
||
# Write given `buffer` to console. | ||
# Here `buffer` is either sequence of bytes or and object that can be | ||
|
@@ -140,13 +139,12 @@ | |
# Returns new instance of `output-block` ready to write again. | ||
[buffer] > write | ||
self. > @ | ||
seq | ||
* | ||
code. | ||
posix | ||
"write" | ||
* posix.stdout-fileno buffer buffer.size | ||
^.^.output-block | ||
seq * | ||
code. | ||
posix | ||
"write" | ||
* posix.stdout-fileno buffer buffer.size | ||
^.^.output-block | ||
|
||
# Windows console. | ||
# It uses kernel32.dll system function calls to read/write standard inputs/outputs. | ||
|
@@ -174,10 +172,9 @@ | |
"ReadFile" | ||
* win32.std-input-handle size | ||
self. > @ | ||
seq | ||
* | ||
read-bytes | ||
^.^.input-block read-bytes | ||
seq * | ||
read-bytes | ||
^.^.input-block read-bytes | ||
|
||
# Write given `buffer` to console. | ||
# Here `buffer` is either sequence of bytes or and object that can be | ||
|
@@ -198,10 +195,9 @@ | |
# Returns new instance of `output-block` ready to write again. | ||
[buffer] > write | ||
self. > @ | ||
seq | ||
* | ||
code. | ||
win32 | ||
"WriteFile" | ||
* win32.std-output-handle buffer buffer.size | ||
^.^.output-block | ||
seq * | ||
code. | ||
win32 | ||
"WriteFile" | ||
* win32.std-output-handle buffer buffer.size | ||
^.^.output-block |
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 | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# Dead input is an input that reads from nowhere and always | ||
# returns empty sequence of bytes `--`. | ||
|
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 | ||
+version 0.49.4 | ||
+version 0.50.0 | ||
|
||
# Dead output is an output that writes to nowhere. | ||
[] > dead-output | ||
|
Oops, something went wrong.
658b6d9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yegor256 It is not a good idea to push directly to the default branch
master
. You've earned -16 points. Next time, create a new branch, push your changes over there, then make a pull request and merge it. Even if you are flying solo, contributing via pull requests is a good practice. Your running balance is -8.