objectionary / normalizer

Command Line Normalizer of 𝜑-calculus Expressions
https://www.objectionary.com/normalizer/
7 stars 2 forks source link

Run normalizer on the `spring-fat` archive #379

Open deemp opened 1 month ago

deemp commented 1 month ago

Here's the archive (spring-fat.zip).

deemp commented 1 month ago

@volodya-lombrozo, what is the "main" PHI file in the spring-fat.zip archive?

volodya-lombrozo commented 1 month ago

@deemp I don't clearly understand what is the "main" PHI file, but all the files we are interested in are placed in ./spring-fat/org/eolang/jeo/spring. I've checked the archive and it doesn't contain the necessary Factorial.phi file. Could you try to print PHI expressions one more time with the newest opeo-maven-plugin version?

deemp commented 1 month ago

@volodya-lombrozo, I got phi-expressions.zip with the latest opeo-maven-plugin. I do see Factorial.phi. Is this the "main file" (the file that we should normalize)?

deemp commented 1 month ago

@fizruk, I got a parsing error.

normalizer dataize --recursive --minimize-stuck-terms --as-package org/eolang/jeo/spring/Factorial.phi 
normalizer: An error occurred when parsing the input program:
syntax error at line 19, column 22 before `access-j$d'
volodya-lombrozo commented 1 month ago

@volodya-lombrozo, I got phi-expressions.zip with the latest opeo-maven-plugin. I do see Factorial.phi. Is this the "main file" (the file that we should normalize)?

@deemp Yes

volodya-lombrozo commented 1 month ago

@fizruk, I got a parsing error.

normalizer dataize --recursive --minimize-stuck-terms --as-package org/eolang/jeo/spring/Factorial.phi 
normalizer: An error occurred when parsing the input program:
syntax error at line 19, column 22 before `access-j$d'

@deemp I will create an issue for that. Thank you. Could you provide a bit of context, please? Which version of normalizer you are using and where I can get it?

deemp commented 1 month ago

I use normalizer from the last commit on master.

You can install the normalizer from the repository (link).

fizruk commented 1 month ago

@fizruk, I got a parsing error.

It appears that Fibonacci.phi contains invalid syntax:

              j$d ↦ ξ.field(
                α0 ↦ access-j$d ↦ ξ.int(
                  Δ ⤍ 00-00-00-00-00-00-00-02
                ),
                α1 ↦ descriptor-j$d ↦ ξ.string(
                  Δ ⤍ 49-
                ),
                α2 ↦ signature-j$d ↦ ξ.string(
                  Δ ⤍ --
                ),
                α3 ↦ value-j$d ↦ ξ.int(
                  Δ ⤍ --
                )
              ),

I do not think that α0 ↦ access-j$d ↦ ... is valid? @maxonfjvipon perhaps, this concerns eo phi?