Skip to content

[WIP] Rust implementation of (a subset of) Java compiler

Notifications You must be signed in to change notification settings

cnguy/mini-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini-Java implements a subset of Java, in Rust.

class Test {
    void main() {
        writeInt(factorial(12));
    }

    int factorial(int i) {
        int p;
        p = 1;
        while (i > 1) {
            p = p * i;
            i = i - 1;
        }
        return p;
    }
}

Progress:

[x] does not exactly mean done. It just means I consider it done. There may still be bugs (e.g. no overflow is accounted for in Lexer right now)

  • Lexer
  • Parser (Recursive Descent, LL(1)) (in-progress)
  • Code Generator
  • Semantic Checker
  • Garbage Collection
  • JIT Compiler

About

[WIP] Rust implementation of (a subset of) Java compiler

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages