objectionary / dedup

Deduplication of Objects in EO Programs

Home Page:https://www.eolang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logo

EO principles respected here DevOps By Rultor.com We recommend IntelliJ IDEA

mvn PDD status codecov Maven Central Hits-of-Code Lines of code License

It is a command-line tool that takes a directory with XMIR files and creates a new directory with modified XMIR files: two or more objects that are semantically equivalent are replaced with a single object.

Consider the following EO program:

while.
  x
  [i]
    stdout > @
      "Hello!\n"
if.
  t.lt 0
  []
    stdout > @
      "Hello!\n"
  nop

This code may be modified as such:

[i] > a
  stdout > @
    "Hello!\n"
while.
  x
  a
if.
  t.lt 0
  a
  nop

How to Contribute

Fork repository, make changes, send us a pull request. We will review your changes and apply them to the master branch shortly, provided they don't violate our quality standards. To avoid frustration, before sending us your pull request please run full Maven build:

$ mvn clean install -Pqulice

You will need Maven 3.3+ and Java 8+.

About

Deduplication of Objects in EO Programs

https://www.eolang.org

License:MIT License