java to memory-diagram compiler