A COOL compiler in java