No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

lib.h 1.3KB

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include "config.h"
  3. #include "types.h"
  4. sen_error sen_systems_startup();
  5. void sen_systems_shutdown();
  6. sen_vm* sen_allocate_vm(i32 stack_size, i32 heap_size, i32 heap_min_size,
  7. i32 vertex_packet_num_vertices);
  8. void sen_free_vm(sen_vm* vm);
  9. void sen_reset_vm(sen_vm* vm);
  10. sen_env* sen_allocate_env();
  11. void sen_free_env(sen_env* env);
  12. sen_result_program sen_compile_program(char* source, sen_word_lut* word_lut,
  13. i32 program_max_size);
  14. sen_result_program sen_compile_program_with_genotype(char* source, sen_genotype* genotype,
  15. sen_word_lut* word_lut,
  16. i32 program_max_size);
  17. sen_error sen_unparse_with_genotype(sen_cursor* out_cursor, char* source,
  18. sen_genotype* genotype, sen_word_lut* word_lut);
  19. sen_error sen_simplify_script(sen_cursor* out_cursor, char* source, sen_word_lut* word_lut);
  20. sen_genotype* sen_deserialize_genotype(sen_cursor* cursor);
  21. sen_result_trait_list sen_compile_trait_list(char* source, sen_word_lut* word_lut);
  22. bool sen_serialize_trait_list(sen_trait_list* trait_list, sen_cursor* cursor);
  23. sen_trait_list* sen_deserialize_trait_list(sen_cursor* cursor);