Quick start
Clone and enter the project repository.
git clone https://github.com/objectionary/eo-phi-normalizer --recurse-submodules
cd eo-phi-normalizer
Install eo-phi-normalizer
- see Installation.
Save a PHI
program to a file.
cat > celsius.phi <<EOM
{
⟦
c ↦ Φ.org.eolang.float (
as-bytes ↦ 25.0
),
result ↦ ξ.c.times (
x ↦ 1.8
)
.plus (
x ↦ 32.0
),
λ ⤍ Package
⟧
}
EOM
Dataize the program recursively.
eo-phi-normalizer dataize \
--recursive \
--rules eo-phi-normalizer/test/eo/phi/rules/new.yaml \
--dependency-file 'eo-phi-normalizer/data/0.38.0/org/eolang/float.phi' \
--dependency-file 'eo-phi-normalizer/data/0.38.0/org/eolang/bytes.phi' \
celsius.phi
{
⟦
c ↦ Φ̇.float(
as-bytes ↦ 25.0
),
result ↦ ξ.c.times(
x ↦ 1.8
).plus(
x ↦ 32.0
),
λ ⤍ Package
⟧
}