{"id":22065874,"url":"https://github.com/qiu233/minduscript","last_synced_at":"2025-03-23T18:17:41.748Z","repository":{"id":191136749,"uuid":"371409974","full_name":"Qiu233/Minduscript","owner":"Qiu233","description":"A compiler of a designed language for mindustry's processors.","archived":false,"fork":false,"pushed_at":"2022-06-13T01:49:22.000Z","size":174,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T00:30:20.388Z","etag":null,"topics":["compiler","mindustry","processor","script"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Qiu233.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-05-27T14:51:58.000Z","updated_at":"2023-08-28T07:32:02.000Z","dependencies_parsed_at":"2023-08-28T10:09:17.006Z","dependency_job_id":null,"html_url":"https://github.com/Qiu233/Minduscript","commit_stats":null,"previous_names":["qiu233/minduscript"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qiu233%2FMinduscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qiu233%2FMinduscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qiu233%2FMinduscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qiu233%2FMinduscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Qiu233","download_url":"https://codeload.github.com/Qiu233/Minduscript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245144977,"owners_count":20568056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compiler","mindustry","processor","script"],"created_at":"2024-11-30T19:22:24.027Z","updated_at":"2025-03-23T18:17:41.554Z","avatar_url":"https://github.com/Qiu233.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minduscript\nMinduscript is a structured programming language, which can be compiled into Mindustry processor assembly code.\n\n# How to compile Minduscript\nFor example, to compile file test.ms, run bat command:  \n```bat\nMinduscript.exe -i test.ms -o test.asm\n```\nThen the test.ms file will be compiled into test.asm, after which you can copy the content of test.asm into a mindustry processor.  \nRun Minduscript.exe without arguments to show the help.\n\n# Overview\nAs you will see, Minduscript code looks like js.  \nBut the main difference is that Minduscript's function does not support recursive calling.  \nHere's an example of minduscript:\n\n```js\nassembly test; ? declare the assembly name\n\nfunction main() ? the entry function\n{\n\tusing bank1,display1; ? using outer component from game\n\tvar n=50; ? local variable\n\tbank1[1]=1; ? accessing memory component\n\tbank1[2]=1;\n\tfor(var i=3;i\u003c=n;i=i+1) ? for loop\n\t{\n\t\tbank1[i]=bank1[i-1]+bank1[i-2];\n\t}\n\t# print bank1[n] # ? inline asm code\n\t# printflush display1 #\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqiu233%2Fminduscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqiu233%2Fminduscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqiu233%2Fminduscript/lists"}