Embryo Library Documentation

- Version:
- 0.0.1
- Date:
- 2004
What is 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.For more information about the Small language, see Brief Introduction to Small.
How to Use Embryo?
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.
- Todo:
- Clean up compiler code.
- Todo:
- Proper overview of the operation of the interpreter, that is how the heap, stack, virtual machines, etc fit together.