Git Product home page Git Product logo

joc's Introduction

JOC - Johan-Oskar Compiler

A compiler implemented for the MiniJava language as part of the DD2488 (komp14) course at KTH, Royal Institute of Technology.

Backends

The compiler supports jasmin assembler output for the Java Virtual Machine as well as ARM assembler and experimental support for X86_64. Future versions is also expected to contain a JavaScript backend for execution in a web browser or Node.js (or similar).

Building

Run ant all to build the compiler. It will

  1. fetch dependencies
  2. build the compiler
  3. package it into a JAR file and
  4. run a testcase to verify the build.

Testing

The compiler comes with some test cases used in the course. It is by no means a complete test suite, but it catches many of the obvious bugs a compiler can experience. The tests are divided into 4 groups

  • compile - Expected to compile, but no demands on ability to execute.
  • noncompile - Should fail during compilation. Syntax and semantical errors are here.
  • execute - Code that both compiles and executes. Comes with a file containing expected outputs.
  • nonexecute - Code that should compile, but results in various errors during execution. Like a stack overflow or invalid memory access.

joc's People

Contributors

victorystick avatar zephyyrr avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

zephyyrr

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.