cardillan / mindcode

A high level language for Mindustry Logic (mlog) and Mindustry Schematics.
http://mindcode.herokuapp.com/
MIT License
87 stars 13 forks source link

Errors when compiling unary plus/minus #175

Open cardillan opened 2 weeks ago

cardillan commented 2 weeks ago

The unary plus operator isn't supported at all. This is not a very serious problem, but we'd want to have them.

Unary minus doesn't work with binary and hexadecimal literals: print(-0xFF); gives an error. Again, not so much of a problem.

Both issues will be fixed in the rewritten grammar/parser which is being currently worked on.