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.

34 lines
809 B

5 years ago
  1. # c2logic
  2. Compiles C code to Mindustry logic. Still in beta, so compiled output may not be fully optimized.
  3. # Installation
  4. `pip install git+https://github.com/SuperStormer/c2logic`
  5. # Usage
  6. Run the command line tool using:
  7. `c2logic filename -O optimization_level`
  8. where `filename` is a string and `optimization_level` is an integer.
  9. When developing your script, you can include `c2logic/builtins.h` located in the python include directory(location depends on system, mine is at `~/.local/include/python3.8/`)
  10. See [examples](./examples) for API sample usage.
  11. # Documentation
  12. See `include/builtins.h` for API definitions.
  13. # Unsupported Features
  14. - drawing
  15. - getlink
  16. - memory cell read/write
  17. - actual functions
  18. - structs
  19. - enums
  20. Some of these features may be worked around using `asm()`.