A compiler for educational purposes