eolang 0.30.2 → 0.31.0

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.
package/README.md CHANGED
@@ -18,7 +18,7 @@ First, you install [npm][npm-install] and [Java SE][java-se].
18
18
  Then, you install [eolang][npm] package:
19
19
 
20
20
  ```bash
21
- npm install -g eolang@0.30.1
21
+ npm install -g eolang@0.30.2
22
22
  ```
23
23
 
24
24
  Then, you write a simple [EO](https://www.eolang.org) program in `hello.eo` file
@@ -66,9 +66,7 @@ There are also commands that help manipulate with XMIR and EO sources
66
66
  * `audit` inspects all required packages and reports their status
67
67
  * `foreign` inspects all objects found in the program after the `assemble` step
68
68
  * `sodg` generates `.sodg` from `.xmir`, further rederable as XML or [Dot][dot]
69
- * `phi` generates `.phi` files from `.xmir` files
70
- * `unphi` generates `.xmir` files from `.phi` files
71
- * `print` generates `.eo` files from `.phi` files
69
+ * `print` generates `.eo` files from `.xmir` files
72
70
  * `generate_comments` generates `.json` files with LLM-generated
73
71
  documentation for `.eo` structures
74
72
  * `docs` generates HTML documentation from `.xmir` files
package/eo-version.txt CHANGED
@@ -1 +1 @@
1
- 0.56.7
1
+ 0.57.0
package/home-tag.txt CHANGED
@@ -1 +1 @@
1
- 0.56.7
1
+ 0.57.0
package/mvnw/pom.xml CHANGED
@@ -26,7 +26,7 @@
26
26
  <dependency>
27
27
  <groupId>org.junit.jupiter</groupId>
28
28
  <artifactId>junit-jupiter-api</artifactId>
29
- <version>5.13.1</version>
29
+ <version>5.13.2</version>
30
30
  <scope>compile</scope>
31
31
  </dependency>
32
32
  <dependency>
package/package.json CHANGED
@@ -26,7 +26,7 @@
26
26
  "grunt-contrib-clean": "^2.0.1",
27
27
  "grunt-eslint": "^25.0.0",
28
28
  "grunt-mocha-cli": "^7.0.0",
29
- "mocha": "^11.7.0",
29
+ "mocha": "^11.7.1",
30
30
  "patch-package": "^8.0.0"
31
31
  },
32
32
  "engines": {
@@ -57,5 +57,5 @@
57
57
  "postinstall": "node scripts/postinstall.js",
58
58
  "test": "mocha --timeout 1200000"
59
59
  },
60
- "version": "0.30.2"
60
+ "version": "0.31.0"
61
61
  }
@@ -14,14 +14,12 @@ const path = require('path');
14
14
  */
15
15
  module.exports = function(opts) {
16
16
  return mvnw(
17
- ['jeo:unroll-phi', 'jeo:assemble']
17
+ ['jeo:assemble']
18
18
  .concat(flags(opts))
19
19
  .concat(
20
20
  [
21
21
  `-Djeo.version=${opts.jeoVersion}`,
22
- `-Djeo.unroll-phi.sourcesDir=${path.resolve(opts.target, opts.xmirs)}`,
23
- `-Djeo.unroll-phi.outputDir=${path.resolve(opts.target, opts.unrolled)}`,
24
- `-Djeo.assemble.sourcesDir=${path.resolve(opts.target, opts.unrolled)}`,
22
+ `-Djeo.assemble.sourcesDir=${path.resolve(opts.target, opts.xmirs)}`,
25
23
  `-Djeo.assemble.outputDir=${path.resolve(opts.target, opts.classes)}`,
26
24
  ]
27
25
  ),
package/src/eoc.js CHANGED
@@ -24,11 +24,9 @@ const {program} = require('commander'),
24
24
  clean: require('./commands/clean'),
25
25
  foreign: require('./commands/foreign'),
26
26
  parse: require('./commands/parse'),
27
- phi: require('./commands/phi'),
28
27
  print: require('./commands/print'),
29
28
  register: require('./commands/register'),
30
29
  sodg: require('./commands/sodg'),
31
- unphi: require('./commands/unphi'),
32
30
  lint: require('./commands/lint'),
33
31
  docs: require('./commands/docs'),
34
32
  generate_comments: require('./commands/generate_comments'),
@@ -177,47 +175,6 @@ program.command('sodg')
177
175
  }
178
176
  });
179
177
 
180
- program.command('phi')
181
- .description('Generate PHI files from XMIR')
182
- .option(
183
- '--phi-input <dir>',
184
- 'Directory where XMIR files for translation to PHI are taken (relative to --target)',
185
- '2-optimize'
186
- )
187
- .option(
188
- '--phi-output <dir>',
189
- 'Directory where translated PHI files are stored (relative to --target)',
190
- 'phi'
191
- )
192
- .action((str, opts) => {
193
- clear(str);
194
- if (program.opts().alone === undefined) {
195
- coms().register(program.opts())
196
- .then((r) => coms().assemble(program.opts()))
197
- .then((r) => coms().phi({...program.opts(), ...str}));
198
- } else {
199
- coms().phi({...program.opts(), ...str});
200
- }
201
- });
202
-
203
- program.command('unphi')
204
- .option('--tests', 'Add "+tests" meta to result XMIR files')
205
- .option(
206
- '--unphi-input <dir>',
207
- 'Directory where PHI files for translation to XMIR are taken (relative to --target)',
208
- 'phi'
209
- )
210
- .option(
211
- '--unphi-output <dir>',
212
- 'Directory where translated XMIR files are stored (relative to --target)',
213
- 'unphi'
214
- )
215
- .description('Generate XMIR files from PHI files')
216
- .action((str, opts) => {
217
- clear(str);
218
- coms().unphi({...program.opts(), ...str});
219
- });
220
-
221
178
  program.command('print')
222
179
  .description('Generate EO files from XMIR files')
223
180
  .option(
@@ -410,11 +367,6 @@ program.command('jeo:assemble')
410
367
  'Directory with .xmir files (relative to --target)',
411
368
  'xmir'
412
369
  )
413
- .option(
414
- '--unrolled <dir>',
415
- 'Directory with unrolled .xmir files (relative to --target)',
416
- 'unrolled'
417
- )
418
370
  .option(
419
371
  '--classes <dir>',
420
372
  'Directory with .class files (relative to --target)',
package/src/version.js CHANGED
@@ -6,6 +6,6 @@
6
6
  // The values here are replaced automatically by the .rultor.yml script,
7
7
  // at the "release" pipeline:
8
8
  module.exports = {
9
- what: '0.30.2',
10
- when: '2025-06-23'
9
+ what: '0.31.0',
10
+ when: '2025-07-02'
11
11
  };
@@ -1,37 +0,0 @@
1
- /*
2
- * SPDX-FileCopyrightText: Copyright (c) 2022-2025 Objectionary.com
3
- * SPDX-License-Identifier: MIT
4
- */
5
-
6
- const rel = require('relative');
7
- const path = require('path');
8
- const {gte} = require('../demand');
9
- const {mvnw, flags} = require('../mvnw');
10
-
11
- /**
12
- * Command to convert .XMIR files into .PHI files.
13
- * @param {Object} opts - All options
14
- * @return {Promise} of assemble task
15
- */
16
- module.exports = function(opts) {
17
- gte('EO parser', opts.parser, '0.35.2');
18
- const target = path.resolve(opts.target),
19
- input = path.resolve(opts.target, opts.phiInput);
20
- console.debug('Reading .XMIR files from %s', rel(input));
21
- const output = path.resolve(opts.target, opts.phiOutput);
22
- console.debug('Writing .PHI files to %s', rel(output));
23
- return mvnw(
24
- ['eo:xmir-to-phi']
25
- .concat(flags(opts))
26
- .concat(
27
- [
28
- `-Deo.phiInputDir=${input}`,
29
- `-Deo.phiOutputDir=${output}`,
30
- ]
31
- ),
32
- opts.target, opts.batch
33
- ).then((r) => {
34
- console.info('XMIR files converted into PHI files at %s', rel(target));
35
- return r;
36
- });
37
- };
@@ -1,37 +0,0 @@
1
- /*
2
- * SPDX-FileCopyrightText: Copyright (c) 2022-2025 Objectionary.com
3
- * SPDX-License-Identifier: MIT
4
- */
5
-
6
- const rel = require('relative');
7
- const path = require('path');
8
- const {mvnw, flags} = require('../mvnw');
9
- const {gte} = require('../demand');
10
-
11
- /**
12
- * Command to convert .PHI files into .XMIR files.
13
- * @param {Object} opts - All options
14
- * @return {Promise} of assemble task
15
- */
16
- module.exports = function(opts) {
17
- gte('EO parser', opts.parser, '0.35.2');
18
- const input = path.resolve(opts.target, opts.unphiInput);
19
- console.debug('Reading .PHI files from %s', rel(input));
20
- const output = path.resolve(opts.target, opts.unphiOutput);
21
- console.debug('Writing .XMIR files to %s', rel(output));
22
- return mvnw(
23
- ['eo:phi-to-xmir']
24
- .concat(flags(opts))
25
- .concat(
26
- [
27
- `-Deo.unphiInputDir=${input}`,
28
- `-Deo.unphiOutputDir=${output}`,
29
- opts.tests ? '-Deo.unphiMetas=+tests' : ''
30
- ]
31
- ),
32
- opts.target, opts.batch
33
- ).then((r) => {
34
- console.info('PHI files converted into XMIR files at %s', rel(output));
35
- return r;
36
- });
37
- };