Skip to content

Commit

Permalink
Release 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cardillan committed Oct 23, 2024
1 parent ac9c03c commit 5c77278
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTING.markdown
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Contributing

There's currently a bunch of issues marked with the `help wanted` label. You can also have a look [here](https://github.com/cardillan/mindcode/discussions/167).

## Guidelines

Mindcode uses JDK17, Maven and Spring Boot.
Expand Down
2 changes: 1 addition & 1 deletion doc/syntax/SYNTAX.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Supporting tools:
* [Command line tool](TOOLS-CMDLINE.markdown)
* [Mlog Watcher](TOOLS-MLOG-WATCHER.markdown)
* [Schematics Refresher](TOOLS-REFRESHER.markdown)
* [Mlog Decompiler](TOOLS-REFRESHER.markdown)
* [Mlog Decompiler](TOOLS-MLOG-DECOMPILER.markdown)

Additional information on Mindcode and Mindustry Logic:

Expand Down
1 change: 0 additions & 1 deletion doc/syntax/TOOLS-CMDLINE.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ run options:
Options to specify if and how to run the compiled code on an emulated processor. The emulated processor is much
faster than Mindustry processors, but can't run instructions which obtain information from the Mindustry World. Sole
exceptions are memory cells (cell1 to cell9) and memory banks (bank1 to bank9), which can be read and written.
--run run the compiled code on an emulated processor.
--run-steps {1..1000000000}
Expand Down
3 changes: 2 additions & 1 deletion doc/syntax/TOOLS-MLOG-DECOMPILER.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

The Mlog Decompiler allows to **partially decompile** an existing mlog file into Mindcode. The resulting file cannot be compiled by Mindcode right away, but needs to be manually edited to create loops, conditional statements, functions and other high-level control structures that may be directly or indirectly present in the original mlog.

The decompiler is mainly useful to produce expressions and function calls in the correct Mindcode syntax, saving time and possible mistakes that would otherwise be needed to rewrite mlog into Mindcode by hand.
The decompiler is mainly useful to produce expressions and function calls in the correct Mindcode syntax, saving some time and possibly helping to avoid some mistakes
compared to a manual rewrite of the entire mlog code from scratch.

Mlog can be decompiled by both the [command line tool](TOOLS-CMDLINE.markdown) and the [web application](http://mindcode.herokuapp.com/mlog-decompiler).

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring.version>4.3.5.RELEASE</spring.version>
<revision>2.3.0</revision>
<revision>2.4.0</revision>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ void addRunOptions(Subparser subparser, CompilerProfile defaults) {
Options to specify if and how to run the compiled code on an emulated processor. The emulated \
processor is much faster than Mindustry processors, but can't run instructions which obtain information \
from the Mindustry World. Sole exceptions are memory cells (cell1 to cell9) and memory banks \
(bank1 to bank9), which can be read and written.
""");
(bank1 to bank9), which can be read and written.""");

runOptions.addArgument("--run")
.help("run the compiled code on an emulated processor.")
Expand Down
3 changes: 2 additions & 1 deletion webapp/src/main/resources/templates/mlog-decompiler.ftlh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
be directly compiled by Mindcode.</strong> Jump instructions in the original mlog are transcribed as <strong>if</strong>
and <strong>goto</strong> statements which aren't supported by Mindcode and must be rewritten using conditional
statements, loops and other high-level constructs. The decompiler is mainly useful to produce expressions and
function calls in the correct Mindcode syntax.
function calls in the correct Mindcode syntax, saving some time and possibly helping to avoid some mistakes
compared to a manual rewrite of the entire mlog code from scratch.
</p>

<div class="w-full">
Expand Down

0 comments on commit 5c77278

Please sign in to comment.