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.
 
 
 
 
Larry Xue f8adc5919b fixed bug with loop cond jump 5 years ago
c2logic fixed bug with loop cond jump 5 years ago
examples fixed bug with loop cond jump 5 years ago
include initial commit 5 years ago
.clang-format initial commit 5 years ago
.clang-tidy initial commit 5 years ago
.gitignore initial commit 5 years ago
.pylintrc initial commit 5 years ago
.style.yapf initial commit 5 years ago
LICENSE initial commit 5 years ago
README.md fixed bug with loop cond jump 5 years ago
compile_flags.txt initial commit 5 years ago
mypy.ini initial commit 5 years ago
setup.py fixed bug with loop cond jump 5 years ago

README.md

c2logic

Compiles C code to Mindustry logic.

Usage

python3 -m c2logic filename -O optimization_level

where filename is a string and optimization_level is an int

See examples for API sample usage.

Documentation

TODO

See include/mindustry.h.

Unsupported Features

  • drawing
  • getlink
  • memory cell read/write
  • do-while
  • continue
  • goto
  • actual functions
  • structs
  • enums

Some of these features may be worked around using _asm().