Releases: dwysocki/mini-java
Releases · dwysocki/mini-java
Completed Compiler
Probably Complete
Update project.clj Added initialization before use check (in the most hacky way possible). Also made some minor fixes and improvements.
Compiling Successfully
The compiler now successfully compiles any valid program. Still needs to report a few errors.
Turing complete?
An impressive subset of the language is now implemented, enough that I believe it is now turing complete.
The features include:
- if/while/print
- arithmetic/logic operators
- local assignment and referencing
- object instantiation
- calling functions of no arguments
Compiles trivial programs
Successfully compiling programs which only contain a main class with a single print statement printing an integer literal. It's not much, but it's something.
Phase 2
Lookup Table
Implemented a lookup table for classes, methods, and variables. Also implemented appropriate errors when duplicates are given.