Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalization of xi seems to be incorrect #293

Open
fizruk opened this issue Apr 17, 2024 · 0 comments
Open

Normalization of xi seems to be incorrect #293

fizruk opened this issue Apr 17, 2024 · 0 comments
Assignees
Labels
(dataization) Related to dataization (normalization rules) Related to normalization rules (normalizer) Related to the normalizer application priority 1

Comments

@fizruk
Copy link
Collaborator

fizruk commented Apr 17, 2024

Example:

normalizer dataize --recursive --rules ~/git/objectionary/normalizer/eo-phi-normalizer/test/eo/phi/rules/yegor.yaml --dependency-file bool.phi --dependency-file bytes.phi bool-tests.phi

Output:

{ ⟦ org ↦ ⟦ eolang ↦ ⟦ true-as-bool ↦ ξ.as-bytes.as-bool, λ ⤍ Package ⟧, λ ⤍ Package ⟧, λ ⤍ Package ⟧ }

Expected:

{ ⟦ org ↦ ⟦ eolang ↦ ⟦ true-as-bool ↦ ⟦ Δ ⤍ 01- ⟧, λ ⤍ Package ⟧, λ ⤍ Package ⟧, λ ⤍ Package ⟧ }

Files used

cat bool.phi
{
  ⟦
    org ↦ ⟦
      eolang ↦ ⟦
        bool ↦ ⟦
          as-bytes ↦ ∅,
          φ ↦ ξ.as-bytes
        ⟧,
        λ ⤍ Package
      ⟧,
      λ ⤍ Package
    ⟧
  ⟧
}
cat bytes.phi
{
  ⟦
    org ↦ ⟦
      eolang ↦ ⟦
        bytes ↦ ⟦
          Δ ⤍ ∅,
          as-bool ↦ ⟦
            φ ↦ ξ.ρ.eq(
              α0 ↦ Φ.org.eolang.bytes(
                Δ ⤍ 01-
              )
            )
          ⟧
        ⟧,
        λ ⤍ Package
      ⟧,
      λ ⤍ Package
    ⟧
  ⟧
}
cat bool-tests.phi
{
  ⟦
    org ↦ ⟦
      eolang ↦ ⟦
        true-as-bool ↦ ⟦
          φ ↦ Φ.org.eolang.bool(
            as-bytes ↦ Φ.org.eolang.bytes(
              Δ ⤍ 01-
            )
          ).as-bool
        ⟧,
        λ ⤍ Package
      ⟧,
      λ ⤍ Package
    ⟧,
    λ ⤍ Package
  ⟧
}
@fizruk fizruk self-assigned this Apr 17, 2024
@deemp deemp added (normalizer) Related to the normalizer application (normalization rules) Related to normalization rules (dataization) Related to dataization labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(dataization) Related to dataization (normalization rules) Related to normalization rules (normalizer) Related to the normalizer application priority 1
Projects
None yet
Development

No branches or pull requests

2 participants