Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

MindustryCompiler-0.8-py3-none-any.whl (20.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page