Skip to content

Commit 93fd3cb

Browse files
committed
bug(objectionary#302): update
1 parent 53d5371 commit 93fd3cb

File tree

110 files changed

+604
-524
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+604
-524
lines changed

make/jvm/pom.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<artifactId>jvm</artifactId>
1010
<version>1.0-SNAPSHOT</version>
1111
<properties>
12-
<eo.version>0.52.0</eo.version>
12+
<eo.version>0.53.0</eo.version>
1313
<stack-size>32M</stack-size>
1414
<heap-size>2G</heap-size>
1515
</properties>
@@ -43,8 +43,7 @@
4343
<id>objects</id>
4444
<goals>
4545
<goal>register</goal>
46-
<goal>assemble</goal>
47-
<goal>lint</goal>
46+
<goal>compile</goal>
4847
<goal>transpile</goal>
4948
</goals>
5049
<configuration>
@@ -58,9 +57,7 @@
5857
<phase>generate-test-sources</phase>
5958
<goals>
6059
<goal>register</goal>
61-
<goal>deps</goal>
62-
<goal>assemble</goal>
63-
<goal>lint</goal>
60+
<goal>compile</goal>
6461
<goal>transpile</goal>
6562
</goals>
6663
<configuration>

objects/org/eolang/bytes.eo

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
+spdx SPDX-FileCopyrightText Copyright (c) 2016-2025 Objectionary.com
2-
+spdx SPDX-License-Identifier: MIT
31
+alias org.eolang.txt.sprintf
42
53
+home https://github.com/objectionary/eo
64
+package org.eolang
7-
+rt jvm org.eolang:eo-runtime:0.52.0
5+
+rt jvm org.eolang:eo-runtime:0.53.0
86
+rt node eo2js-runtime:0.0.0
9-
+version 0.52.0
7+
+version 0.53.0
8+
+spdx SPDX-FileCopyrightText Copyright (c) 2016-2025 Objectionary.com
9+
+spdx SPDX-License-Identifier: MIT
10+
+unlint rt-without-atoms
11+
+unlint empty-object
1012

1113
# The object encapsulates a chain of bytes, adding a few
1214
# convenient operations to it. Objects like `int`, `string`,
@@ -65,36 +67,33 @@
6567
"Can't convert non 2 length bytes to i16, bytes are %x"
6668
* $
6769

68-
# Equals to another object.
69-
# A condition where two objects have the same value or content.
70-
[b] > eq /org.eolang.bool
70+
# Returns `org.eolang.true` if current sequence of bytes equals to another object.
71+
# Before the actual comparison the object `b` is dataized.
72+
[b] > eq ?
7173

72-
# Total number of bytes.
73-
# The complete count of bytes used to represent data.
74-
[] > size /org.eolang.number
74+
# Returns total amount of current bytes as `org.eolang.number`.
75+
[] > size ?
7576

76-
# Represents a sub-sequence inside the current one.
77-
[start len] > slice /org.eolang.bytes
77+
# Represents a sub-sequence of `org.eolang.bytes` inside the current one.
78+
[start len] > slice ?
7879

79-
# Calculate the bitwise and operation.
80-
[b] > and /org.eolang.bytes
80+
# Calculate the bitwise AND operation and returns result as `org.eolang.bytes`.
81+
[b] > and ?
8182

82-
# Calculate the bitwise or operation.
83-
[b] > or /org.eolang.bytes
83+
# Calculate the bitwise OR operation and returns result as `org.eolang.bytes`.
84+
[b] > or ?
8485

85-
# Calculate the bitwise xor operation.
86-
[b] > xor /org.eolang.bytes
86+
# Calculate the bitwise XOR operation and returns result as `org.eolang.bytes`.
87+
[b] > xor ?
8788

88-
# Calculate the bitwise not operation.
89-
[] > not /org.eolang.bytes
89+
# Calculate the bitwise NOT operation and returns result as `org.eolang.bytes`.
90+
[] > not ?
9091

9192
# Calculate the bitwise left shift.
9293
right x.neg > [x] > left
9394

94-
# Calculate the bitwise right shift.
95-
[x] > right /org.eolang.bytes
95+
# Calculate the bitwise right shift and returns result as `org.eolang.bytes`.
96+
[x] > right ?
9697

97-
# Concatenation of two byte sequences:
98-
# the current and the provided one,
99-
# as a new sequence.
100-
[b] > concat /org.eolang.bytes
98+
# Concatenation of two byte sequences and returns result as `org.eolang.bytes`.
99+
[b] > concat ?

objects/org/eolang/cti.eo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
+spdx SPDX-FileCopyrightText Copyright (c) 2016-2025 Objectionary.com
2-
+spdx SPDX-License-Identifier: MIT
31
42
+home https://github.com/objectionary/eo
53
+package org.eolang
6-
+version 0.52.0
4+
+version 0.53.0
5+
+spdx SPDX-FileCopyrightText Copyright (c) 2016-2025 Objectionary.com
6+
+spdx SPDX-License-Identifier: MIT
77

88
# Compile Time Instruction (CTI).
99
#

objects/org/eolang/dataized.eo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
+spdx SPDX-FileCopyrightText Copyright (c) 2016-2025 Objectionary.com
2-
+spdx SPDX-License-Identifier: MIT
31
42
+home https://github.com/objectionary/eo
53
+package org.eolang
6-
+version 0.52.0
4+
+version 0.53.0
5+
+spdx SPDX-FileCopyrightText Copyright (c) 2016-2025 Objectionary.com
6+
+spdx SPDX-License-Identifier: MIT
77

88
# The object dataizes `target`, makes new instance of `bytes` from given data and behaves as result
99
# `bytes`.

objects/org/eolang/error.eo

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
+spdx SPDX-FileCopyrightText Copyright (c) 2016-2025 Objectionary.com
2-
+spdx SPDX-License-Identifier: MIT
31
42
+home https://github.com/objectionary/eo
53
+package org.eolang
6-
+rt jvm org.eolang:eo-runtime:0.52.0
4+
+rt jvm org.eolang:eo-runtime:0.53.0
75
+rt node eo2js-runtime:0.0.0
8-
+version 0.52.0
6+
+version 0.53.0
7+
+spdx SPDX-FileCopyrightText Copyright (c) 2016-2025 Objectionary.com
8+
+spdx SPDX-License-Identifier: MIT
99
+unlint unit-test-missing
10+
+unlint rt-without-atoms
11+
+unlint empty-object
1012

1113
# This object must be used in order to terminate the program
1214
# due to an error. Just make a copy of it with any encapsulated object.
1315
# The first attempt to dataize it will lead to runtime error and program
1416
# termination. The only way to catch such an error is by using
1517
# the `try` object.
16-
[message] > error /org.eolang.error
18+
[message] > error ?

objects/org/eolang/false.eo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
+spdx SPDX-FileCopyrightText Copyright (c) 2016-2025 Objectionary.com
2-
+spdx SPDX-License-Identifier: MIT
31
42
+home https://github.com/objectionary/eo
53
+package org.eolang
6-
+version 0.52.0
4+
+version 0.53.0
5+
+spdx SPDX-FileCopyrightText Copyright (c) 2016-2025 Objectionary.com
6+
+spdx SPDX-License-Identifier: MIT
77
+unlint unit-test-missing
88

99
# The object is a FALSE boolean state.

objects/org/eolang/fs/dir.eo

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
+spdx SPDX-FileCopyrightText Copyright (c) 2016-2025 Objectionary.com
2-
+spdx SPDX-License-Identifier: MIT
31
+alias org.eolang.txt.sprintf
42
53
+home https://github.com/objectionary/eo
64
+package org.eolang.fs
7-
+rt jvm org.eolang:eo-runtime:0.52.0
5+
+rt jvm org.eolang:eo-runtime:0.53.0
86
+rt node eo2js-runtime:0.0.0
9-
+version 0.52.0
7+
+version 0.53.0
8+
+spdx SPDX-FileCopyrightText Copyright (c) 2016-2025 Objectionary.com
9+
+spdx SPDX-License-Identifier: MIT
10+
+unlint rt-without-atoms
11+
+unlint empty-object
1012

1113
# Directory in the file system.
1214
# Apparently every directory is a file.
@@ -28,15 +30,16 @@
2830

2931
# Makes a directory together with all required
3032
# parent directories.
33+
# Returns `org.eolang.true` object.
3134
#
3235
# Attention! The object is for internal usage only, please
3336
# don't use it programmatically outside of `dir` object.
34-
[] > mkdir /org.eolang.true
37+
[] > mkdir ?
3538

3639
# Goes though all files in the directory, recursively
3740
# finding them with the `glob` provided.
38-
# Returns `tuple` of all files in the directory.
39-
[glob] > walk /org.eolang.tuple
41+
# Returns `org.eolang.tuple` of all files in the directory.
42+
[glob] > walk ?
4043

4144
# Deletes directory and all files in it, recursively.
4245
# Returns the deleted directory.
@@ -75,11 +78,11 @@
7578
* file
7679

7780
# Creates an empty temporary file in the current directory and
78-
# returns absolute path to it as `string`.
81+
# returns absolute path to it as `org.eolang.string`.
7982
#
8083
# Attention! The object is for internal usage only, please
8184
# don't use the object programmatically outside of the `dir` object.
82-
[] > touch /org.eolang.string
85+
[] > touch ?
8386

8487
# Opens the file for I/O operations.
8588
# Since current file is a directory - returns an `error`.

objects/org/eolang/fs/file.eo

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
+spdx SPDX-FileCopyrightText Copyright (c) 2016-2025 Objectionary.com
2-
+spdx SPDX-License-Identifier: MIT
31
+alias org.eolang.txt.sprintf
42
53
+home https://github.com/objectionary/eo
64
+package org.eolang.fs
7-
+rt jvm org.eolang:eo-runtime:0.52.0
5+
+rt jvm org.eolang:eo-runtime:0.53.0
86
+rt node eo2js-runtime:0.0.0
9-
+version 0.52.0
7+
+version 0.53.0
8+
+spdx SPDX-FileCopyrightText Copyright (c) 2016-2025 Objectionary.com
9+
+spdx SPDX-License-Identifier: MIT
10+
+unlint rt-without-atoms
11+
+unlint empty-object
1012

1113
# The file object in the filesystem.
1214
[path] > file
@@ -15,11 +17,11 @@
1517
# Convert the `file` to the `path`.
1618
(QQ.fs.path path).determined > as-path
1719

18-
# Returns `true` if current file is a directory, returns `false` otherwise.
19-
[] > is-directory /org.eolang.bool
20+
# Returns `org.eolang.true` if current file is a directory, returns `org.eolang.false` otherwise.
21+
[] > is-directory ?
2022

21-
# Returns `true` if file with current `path` exists in filesystem.
22-
[] > exists /org.eolang.bool
23+
# Returns `org.eolang.true` if file with current `path` exists in filesystem.
24+
[] > exists ?
2325

2426
# If current file exists - returns the file.
2527
# If current file does not exist - create an empty file
@@ -33,11 +35,11 @@
3335
touch
3436
^
3537

36-
# Creates new empty file.
38+
# Creates new empty file and returns `org.eolang.true`.
3739
#
3840
# Attention! The object is for internal usage only, please
3941
# don't use the object programmatically outside of `file` object.
40-
[] > touch /org.eolang.true
42+
[] > touch ?
4143

4244
# If current file exists - deletes it and returns it.
4345
# If current file does not exist - just returns it.
@@ -50,27 +52,27 @@
5052
^
5153
^
5254

53-
# Deletes the file and returns `true`.
55+
# Deletes the file and returns `org.eolang.true`.
5456
#
5557
# Attention! The object is for internal usage only, please
5658
# don't use the object programmatically outside of `file` object.
57-
[] > delete /org.eolang.true
59+
[] > delete ?
5860

59-
# Gets the file size and returns it in bytes.
60-
[] > size /org.eolang.number
61+
# Gets the file size in bytes and returns it as `org.eolang.number`.
62+
[] > size ?
6163

6264
# Move current file to `target`, making and returning a new `file` from it.
6365
[target] > moved
6466
as-file. > @
6567
file move
6668

6769
# Tries to move file from `^.path` to `target`
68-
# and returns path of moved file as `string`.
69-
# Returns `error` is failed to move the file.
70+
# and returns path of moved file as `org.eolang.string`.
71+
# Returns `org.eolang.error` is failed to move the file.
7072
#
7173
# Attention! The object is for internal usage only, please
7274
# don't use the object programmatically outside of `file` object.
73-
[] > move /org.eolang.string
75+
[] > move ?
7476

7577
# Opens the file.
7678
#
@@ -156,22 +158,22 @@
156158
#
157159
# Here file stream is open, then the stream is passed to `scope`,
158160
# then given `scope` is dataized and stream is closed.
159-
# Returns `true` if there are no errors occurred while `scope`
160-
# dataization, returns `error` otherwise.
161+
# Returns `org.eolang.true` if there are no errors occurred while `scope`
162+
# dataization, returns `org.eolang.error` otherwise.
161163
#
162164
# The object is stream-safe, which means that stream is closed anyway,
163165
# even if errors are occurred while `scope` dataization.
164166
#
165167
# Attention! The object is for internal usage only, please
166168
# don't use the object programmatically outside of the `file` object.
167-
[] > process-file /org.eolang.true
169+
[] > process-file ?
168170

169171
# File stream.
170172
# The objects provides an API for using file as input or output.
171173
[] > file-stream
172174
# Read `size` amount of bytes from file input stream.
173175
# Returns new instance of `input-block` with `buffer` read from file, or
174-
# returns `error` if access mode does not allow reading operations.
176+
# returns `org.eolang.error` if access mode does not allow reading operations.
175177
[size] > read
176178
((input-block --).read size).this > @
177179

@@ -185,7 +187,7 @@
185187

186188
# Read `size` amount of bytes from file input stream.
187189
# Returns new instance of `input-block` with `buffer` read from file, or
188-
# returns `error` if provided access mode does not allow reading operations.
190+
# returns `org.eolang.error` if provided access mode does not allow reading operations.
189191
[size] > read
190192
^.^.read-bytes size > read-bytes!
191193
this. > @
@@ -201,11 +203,11 @@
201203
read-bytes
202204
input-block read-bytes
203205

204-
# Bytes read from file input stream
206+
# Bytes, as `org.eolang.bytes`, read from file input stream.
205207
#
206208
# Attention! The object is for internal usage only, please
207209
# don't use the object programmatically outside of `file` object.
208-
[size] > read-bytes /org.eolang.bytes
210+
[size] > read-bytes ?
209211

210212
# Write given `buffer` to file output stream.
211213
# Here `buffer` is either sequence of bytes or and object that can be
@@ -242,8 +244,8 @@
242244
written-bytes buffer
243245
output-block
244246

245-
# Bytes written to file output stream.
247+
# Writes given `buffer` of bytes to file output stream and returns `org.eolang.true`.
246248
#
247249
# Attention! The object is for internal usage only, please
248250
# don't use the object programmatically outside of `file` object.
249-
[buffer] > written-bytes /org.eolang.true
251+
[buffer] > written-bytes ?

objects/org/eolang/fs/path.eo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
+spdx SPDX-FileCopyrightText Copyright (c) 2016-2025 Objectionary.com
2-
+spdx SPDX-License-Identifier: MIT
31
+alias org.eolang.fs.dir
42
+alias org.eolang.fs.file
53
+alias org.eolang.sys.os
@@ -9,7 +7,9 @@
97
108
+home https://github.com/objectionary/eo
119
+package org.eolang.fs
12-
+version 0.52.0
10+
+version 0.53.0
11+
+spdx SPDX-FileCopyrightText Copyright (c) 2016-2025 Objectionary.com
12+
+spdx SPDX-License-Identifier: MIT
1313

1414
# A `path` represents a path that is hierarchical and composed of a sequence of
1515
# directory and file name elements separated by a special separator or delimiter.

0 commit comments

Comments
 (0)