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

feat(#65): Decompilation of simple constructs #70

Merged
merged 16 commits into from
Jan 15, 2024

Conversation

volodya-lombrozo
Copy link
Member

@volodya-lombrozo volodya-lombrozo commented Jan 12, 2024

In this PR I tried to decompile simple EO constructs related to 'benchmark' example.

Here we decompile high-level code generated by opeo-maven-plugin and transform it to low-level code acceptable by jeo-maven-plugin.

Closes: #65


PR-Codex overview

This PR focuses on adding the opcodes() method to various classes in the codebase.

Detailed summary

  • Added the opcodes() method to the AstNode interface.
  • Implemented the opcodes() method in multiple classes, throwing an UnsupportedOperationException for now.
  • Added the opcodes() method to the Literal class, returning a list of opcodes based on the object type.
  • Added the disableCounting() method to the Opcode class to disable opcodes counting for tests.
  • Added the opcodes() method to the Opcode class, returning a list containing the opcode itself.

The following files were skipped due to too many changes: src/main/java/org/eolang/opeo/ast/Literal.java, src/main/java/org/eolang/opeo/ast/Label.java, src/test/resources/xmir/Bar.xmir, src/main/java/org/eolang/opeo/ast/OpcodeName.java, src/main/java/org/eolang/opeo/compilation/OpeoNodes.java, src/test/java/org/eolang/opeo/compilation/OpeoNodesTest.java

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@volodya-lombrozo volodya-lombrozo marked this pull request as ready for review January 15, 2024 09:07
@volodya-lombrozo
Copy link
Member Author

@rultor merge

@rultor
Copy link
Contributor

rultor commented Jan 15, 2024

@rultor merge

@volodya-lombrozo OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit 0008217 into objectionary:master Jan 15, 2024
8 checks passed
@rultor
Copy link
Contributor

rultor commented Jan 15, 2024

@rultor merge

@volodya-lombrozo Done! FYI, the full log is here (took me 3min)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpeoNodes.java:90-94: Parse AST from high-level XMIR....
2 participants