Embryo Library Documentation
Embryo LibraryThese routines are used for Embryo.
Embryo is a tiny library designed to interpret limited Small programs compiled by the included compiler,
embryo_cc. It is mostly a cleaned up and smaller version of the original Small abstract machine. The compiler is mostly untouched.
To use Embryo in your code, you need to do at least the following:
- Include Embryo.h.
- Load the Embryo program using one of the Program Creation and Destruction Functions.
- Set up the native calls with embryo_program_native_call_add.
- Create a virtual machine with embryo_program_vm_push.
- Then run the program with embryo_program_run.
Clean up compiler code.
Proper overview of the operation of the interpreter, that is how the heap, stack, virtual machines, etc fit together.