forest-qtree: Implement a qtree emulator.