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(#77): Add compile goal to benchmark integration test #79

Merged
merged 11 commits into from
Jan 15, 2024
Prev Previous commit
Next Next commit
feat(#77): implement multimiplication compilation
volodya-lombrozo committed Jan 15, 2024
commit 971f74e8372e997750fdfcc52fb698542f36418d
6 changes: 5 additions & 1 deletion src/main/java/org/eolang/opeo/ast/Mul.java
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@
*/
package org.eolang.opeo.ast;

import java.util.ArrayList;
import java.util.List;
import org.xembly.Directive;
import org.xembly.Directives;
@@ -69,6 +70,9 @@ public Iterable<Directive> toXmir() {

@Override
public List<AstNode> opcodes() {
throw new UnsupportedOperationException("Not implemented yet");
final List<AstNode> res = new ArrayList<>(0);
res.addAll(this.left.opcodes());
res.addAll(this.right.opcodes());
return res;
}
}