Refactored #process for Parser and associated tests.