Git Product home page Git Product logo

minduscript's Introduction

Minduscript

Minduscript is a structured programming language, which can be compiled into Mindustry processor assembly code.

How to compile Minduscript

For example, to compile file test.ms, run bat command:

Minduscript.exe -i test.ms -o test.asm

Then the test.ms file will be compiled into test.asm, after which you can copy the content of test.asm into a mindustry processor.
Run Minduscript.exe without arguments to show the help.

Overview

As you will see, Minduscript code looks like js.
But the main difference is that Minduscript's function does not support recursive calling.
Here's an example of minduscript:

assembly test; ? declare the assembly name

function main() ? the entry function
{
	using bank1,display1; ? using outer component from game
	var n=50; ? local variable
	bank1[1]=1; ? accessing memory component
	bank1[2]=1;
	for(var i=3;i<=n;i=i+1) ? for loop
	{
		bank1[i]=bank1[i-1]+bank1[i-2];
	}
	# print bank1[n] # ? inline asm code
	# printflush display1 #
}

minduscript's People

Contributors

qiu233 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.