Restructure compiler source