First version of switchable parser