EOorg.EOeolang.EOheap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eo-math Show documentation
Show all versions of eo-math Show documentation
Math Primitives for EO Programming Language
/*
* This file was auto-generated by eolang-maven-plugin
* on 2022-07-15T10:40:32.909Z. Don't edit it,
* your changes will be discarded on the next build.
*
* The EO sources were compiled to XMIR on
* 2022-07-15T10:39:57.756178Z by the compiler v.0.24.0.
*/
package EOorg.EOeolang;
import org.eolang.*;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
@XmirObject(name = "heap", oname = "heap", source = "/home/r/repo/target/eo/04-pull/org/eolang/heap.eo")
public final class EOheap extends PhDefault {
public EOheap(final Phi sigma) {
super(sigma);
this.add("size", new AtFree(/* default */));
this.add("malloc", new AtOnce(new AtComposite(this, rho -> {
Phi ret = new EOheap$EOmalloc(rho);
ret = new PhLocated(ret, 31, 2);
return ret;
})));
this.add("free", new AtOnce(new AtComposite(this, rho -> {
Phi ret = new EOheap$EOfree(rho);
ret = new PhLocated(ret, 36, 2);
return ret;
})));
this.add("pointer", new AtOnce(new AtComposite(this, rho -> {
Phi ret = new EOheap$EOpointer(rho);
ret = new PhLocated(ret, 42, 2);
return ret;
})));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy