compile code to ASM Mindusty, jump instruction can use ref instead of line number
Project description
MindustryCompiler
a langage that compile to mindustry asm code,
What's mindustry asm ? Here is a nice starting guide with in game screenshots: How To Use Procesors in 6.0
The language created here is a subset of what I call mindustry asm code named Mindustry Logic by it's creator
features
-
all mindustry asm code are valide as it
-
jump to a reference:
... jump bottom always true true <--- jump to #ref bottom ... #ref bottom <--- set ref anywhere ...
-
comments:
// this is a comment #ref loop // another comment after some blank lines
coming soon
-
improve jump conition:
-
if condition:
-
else, else if:
-
multiple condition:
-
function:
current usage
-
compile a file :
> mindc fileName
exemple, in this folder:
> mindc tests/identicalCode/3-comments.code
-
get the result in clipboard to just past it in mindustry :
> mindc --ctrlC tests/identicalCode/3-comments.code
-
run interactive to play with it :
> mindc --interactive
Installation
you need python to run this software
-
check that you have it
type in your shell/terminal :
python3 --version
must give you something like:
Python 3._._
-
if you don't have it, install it :
you could dowload python from here
install mindustry compiler
-
with python package manager:
python3 -m pip install ___
to run it, type:
mindc
-
or download this git and run
__main__.py
file to run it:python3 compiler/__main__.py
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for MindustryCompiler-0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd89dd37de43236b12436ccddf33982e4937adbe3f71d53f01dae1f3b3eecd3b |
|
MD5 | 127d93bebfd71cef3e7a90a4685f2334 |
|
BLAKE2b-256 | b15be164109ef0fe515521201372732cc54cbde57e1c83c4aa54e9632ca1660e |