A simple compiler for learning.