parser - with termination option