Basic compiler written in Java