factor out the tree walking/visitor code that was in compile.py
2 files changed