Code Monkey home page Code Monkey logo

the-jimpiler's Introduction

How to use the Jimbo Programming Language (pre-alpha/early development build)

  1. Install the required packages (if not already installed)
sudo apt update
sudo apt upgrade
sudo apt install llvm g++
  1. Compile the Jimbo compiler.

This is done thorugh the shell file jimpilier.sh. Simply run

./jimpilier.sh main.cpp

This will output a new executable file called jmb. In the current iteration, this file dumps LLVM-IR to stderr. This setup will remain until I have the foundations & syntax of the language complete; once that part is done, I'll begin working on the LLVM passes to optimize what it puts out. After that, i'll work on having this compile directly into asm

  1. Run the Jimbo compiler

I have included is a test file, test.txt that demonstrates some of the features included in the Jimbo programming language. Feel free to test off of this, or create new files to run them in. Here is the shell command that I use to test any code I write:

./jmb test.txt &> jmb.ll ; lli jmb.ll

I plan to have Jimbo files use a .jmb file extension, but this is currently low on my priority list.

Check out my progress

Right now my main priority is getting the language off the ground (When i'm not in class); once I do that, I plan of updating the file setup to be more easy to navigate and clean. Until then, jimpilier.h will be a big monolith of a file for anything compiler related. I have various TODO markers spread out throughout jimpilier.h reminding me that I still have a lot of progress to make. Feel free to take a look through and see my progress!

the-jimpiler's People

Contributors

chowchowsonic avatar

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.