Giter VIP home page Giter VIP logo

c2logic's Introduction

SuperStormer's GitHub stats

Top Langs

c2logic's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

c2logic's Issues

Update instruction set

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.

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.