Split parse.cpp into usual file structure