/mindustry-logic-preprocessor

Fixed and changed for personal use

Primary LanguagePython

Mindustry Logic Preprocessor

What does it do?

This tool preprocesses a custom variant of Mindustry Logic (similar to Assembly). It takes as input either a file or stdin, and outputs to either a file or stdout.

Currently, this tool supports:

  • Labels
    jump :label1 notEqual @unit null
    ubind @mono
    label1:
    end
    
    becomes
    jump 3 notEqual @unit null
    ubind @mono
    end
    

Requirements

Usage

Examples of how to use this tool are:

  • python mproc.py -f input.txt
  • python mproc.py -f input.txt -o output.txt
  • cat input.txt | python mproc.py