superstormer / c2logic Goto Github PK
View Code? Open in Web Editor NEWCompiles C code to Mindustry logic.
License: MIT License
Compiles C code to Mindustry logic.
License: MIT License
I was super happy to see your project since I've been looking for a mindustry assembly compiler and was scared I would have to write a compiler backend from scratch. This being said, there have been additions to the instruction set and I was willing to update code to include these instructions, but looking at the way compiler.py is implemented there seems to be a lot of finickiness I would have to overcome. For example, the @Unit constant and sensor instruction. With the current implementation, the '@' character is unable to be externed in c code, thus using Edit: that part is easy
Another thing I see as problematic is the sheer number of instructions added since the start of the project. In my view, parsing include/builtins.h for instruction declaration dynamically may be better than statically defining them all in instructions.py. The methods for processing instruction arguments are also hardcoded (eg elif name == "radar"
), but again with the amount of instructions added generalization may be a good idea.
Considering the scope of the project, I don't really expect you to put in weekends into it and I am willing to take the project under my wing if you no longer are interested. If however you are still interested, just point me in the direction you want to go and I'll do my best to contribute to the compiler.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.